How to Create an ABAP Program
Call transaction SE38 and press enter.,Type the name of the program starting with Z/Y (SAP convention for customizing objects) and press Create , Type a title for your program: example My first program title and select Executable program as...
Step-by-Step Guide
-
Step 1: Call transaction SE38 and press enter.
For a test example we will put it in package Z_IDES , Create a new request, type a description name and then press save ,, Lines that start with * are comment lines, using * you can add comments to your code.
Obs. you have an instruction in your program:
REPORT ZTEST_FIRST_PROGRAM.
- this means that your program is an executable program.
WRITE is used to display a text and NEW-LINE is used to display the string in a new line. , If you have any errors they will be displayed at the bottom of the page. ,, -
Step 2: Type the name of the program starting with Z/Y (SAP convention for customizing objects) and press Create
-
Step 3: Type a title for your program: example My first program title and select Executable program as attributes type and press Save
-
Step 4: You will be asked to set a package where the object (here is the program) is going to be put in.
-
Step 5: You will be asked to set a request.
-
Step 6: The next screen is where you type your code.
-
Step 7: Write the code Obs.
-
Step 8: check and activate the program.
-
Step 9: If no errors are displayed
-
Step 10: you can process the program.
-
Step 11: Next the title and the strings are displayed.
Detailed Guide
For a test example we will put it in package Z_IDES , Create a new request, type a description name and then press save ,, Lines that start with * are comment lines, using * you can add comments to your code.
Obs. you have an instruction in your program:
REPORT ZTEST_FIRST_PROGRAM.
- this means that your program is an executable program.
WRITE is used to display a text and NEW-LINE is used to display the string in a new line. , If you have any errors they will be displayed at the bottom of the page. ,,
About the Author
Sara Wells
Writer and educator with a focus on practical pet care knowledge.
Rate This Guide
How helpful was this guide? Click to rate: