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.
Saturday, January 12, 2008
Creating the first program in ABAP is easy. First you need to create a user account using transaction SU01. You can also ask the SAP basis person to create a user account for you with the appropriate authorizations. Also a developer key needs to be generated this can be taken care by the basis person. The first program should be created with the following things in mind. It should be simple, and should run as quickly as possible. It should familiarize you with all the steps involved in creating any ABAP report as it is called.
Steps to create a simple program in ABAP. 1) Login to SAP. 2) Enter the transaction code SE38 as shown in the figure. 3) Hit enter. You will then be taken to the ABAP Editor initial screen.
Enter the name starting with Y or Z as shown below. Let the source code radio button be selected and then press create.
See the attributes dialog box below.
Click on Save
Enter $tmp in development class and click on save button
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.