- Call transaction SE38 and press enter.
- Type the name of the program starting with Z/Y (SAP convention for customizing objects) and press Create
3. Type a title for your program: example My first program title and select Executable program as attributes type and press Save
For the explanation of a specific attribute (Type, Status, ..). Set cursor on that attribute and press F1 for help. Normally, you just need to set the attribute as the screen above.
4. You will be asked to set a package where the object (here is the program) is going to be put in. For a test example we will put it in local object (without generating transport request).
5. The next screen is where you type your code
6. Write the code
- Obs. 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.
7. Save, check and activate the program. If you have any errors they will be displayed at the bottom of the page.
8. If no errors are displayed, you can process the program.
9. Next the title and the strings are displayed.
No comments:
Post a Comment