If you wish to display text in any of your reports that needs to be printed, then you can make use of text elements. It is a good practice not to hard code the text in the programs. If the text is maintained centrally, then it can be called in any report and redundancy can be avoided. Moreover if the text needs to be changed then it can be done at one place rather than changing every instance if it is hard coded.
Text element maintenance can be done in the ABAP Workbench. It is used to maintain program text in different languages. The text that program uses can be maintained centrally for a program.
Transaction SE38 (ABAP Editor)
Menu Path >>>>> Goto--------TEXT ELEMENTS---------------Selection Text
Please check the screen shots below.
Thursday, January 24, 2008
Logon to SAP
SAP database has numerous tables. For viewing the content of a particular table SAP has provided a tool which can be accessed using some transactions. An ABAP programmer can display the data of a particular table using a report but this cab be easily achieved using the tools provided by SAP. As an ABAP programmer if you wish to quickly view the contents of a particular table the best way is to use this tool and the corresponding transactions.
Enter Transaction Code SE11.
Note that transaction SE11 can be used to Display/Change/Create database tables. Other transactions for ABAP dictionary are as follows
SE12 Display Database Tables View Data Types Domain Search Help Lock Objects
SE11 Display/Change/Create Database Tables View Data Types Domain Search Help Lock Objects
SE16 and SE16N Data Browser
Enter the Table name in this case VBAK
Click on Display.
Click on COntents as shown below or use shortcut CTRL+SHIFT+F10
Enter the desired data. In this case the sales order number.
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.