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...

11 Steps 1 min read Medium

Step-by-Step Guide

  1. 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. ,,
  2. Step 2: Type the name of the program starting with Z/Y (SAP convention for customizing objects) and press Create

  3. Step 3: Type a title for your program: example My first program title and select Executable program as attributes type and press Save

  4. Step 4: You will be asked to set a package where the object (here is the program) is going to be put in.

  5. Step 5: You will be asked to set a request.

  6. Step 6: The next screen is where you type your code.

  7. Step 7: Write the code Obs.

  8. Step 8: check and activate the program.

  9. Step 9: If no errors are displayed

  10. Step 10: you can process the program.

  11. 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

S

Sara Wells

Writer and educator with a focus on practical pet care knowledge.

71 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: