Monday, August 15, 2016

Create your first ABAP Program


  1. Call transaction SE38 and press enter.
  2. Type the name of the program starting with Z/Y (SAP convention for customizing objects) and press CreateImage titled 2013 08 20 14_06_51 ABAP Editor_ Initial Screen 1.png
3. Type a title for your program: example My first program title and select Executable program as attributes type and press Save
Image titled 2013 08 20 14_09_17  1.png

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.
Image titled 2013 08 20 14_24_29 ABAP Editor_ Change Report ZTEST_FIRST_PROGRAM.png



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

SAP giới thiệu mã hỗ trợ AI trong ngôn ngữ ABAP riêng của mình

SAP đã ra mắt một loạt tính năng mã hỗ trợ AI trong môi trường phát triển ứng dụng dựa trên đám mây của mình, đồng thời tham gia vào danh sá...