Sample ABAP Program

Sample ABAP Program

Go to SE38 (ABAP Editor).
[ABAP Program name will start with Z or Y (Custom programs), Remaining Alphabets are predefined by SAP].

Program Name : Zrv_First _Program
{Click on Create or Press F5} {Display - F7} {Change - F6}















Title : Demo Program
Type : 1 (Executable Program)

Click on Save.
Click on Local Object (In real time we don't select Local Object).


Then We will start writing our first program not hello world. we will type Welcome to the world of SAP ABAP.
ABAP Coding

Write: 'Welcome to the world of SAP ABAP'.

P.S: Every Coding in ABAP has to be terminated by . (called as period in ABAP).

Steps to Run the program (Best Practice).

 Pretty Printer - Shift+F1 
Save - Ctrl+S
Syntax - Ctrl+F2
Activate - Ctrl+F3


Run - F8

[For Back - F3]
P.S : Before we run any program it is to be activate.

After running the program will look like the image below:



       

No comments:

Post a Comment