First ABAP Program

Let us write a “Hello SAP ABAP” program.

Navigate to ABAP editor under Tools node in SAP easy access.

First-ABAP-Program-1

Double click on “ABAP Editor” to open the editor. ABAP editor can also be opened by entering t-code SE38 in the command field.

First-ABAP-Program-2

This is the ABAP editor’s initial screen. Enter the name of the program you want to create and press create. All the customer programs must begin with “Y” or “Z”.

First-ABAP-Program-3

In the next popup screen(Program attributes) enter the title for your program, select Executable program as type and press save.

First-ABAP-Program-4

Press Local Object to store the program in the temporary folder.

First-ABAP-Program-5

This is the screen where you can write the ABAP code.

First-ABAP-Program-6

Write the code. Press save, then syntax check( Ctrl + F2 ).

First-ABAP-Program-7

If there are any syntax errors, it ill be displayed at the bottom of the screen as shown above. Correct the errors and again check the syntax.

First-ABAP-Program-8

Successful syntax check message will be displayed in the status bar. Then activate( Ctrl + F3 ) the program.

First-ABAP-Program-9

In the following screen select your program and press continue. Then run(F8) the program.

First-ABAP-Program-10

The output will be displayed as shown above.


11 Comments

Leave a Reply

Your email address will not be published.


*