Do you Know ?

"Hello World" Program in SAP ABAP.


Let’s create the All time famous program “Hello World” J in SAP ABAP !

First, Go to Tcode: SE38 and create an executable program.



Provide program name : ZHello_World.


Select
Type : Executable program
Status : SAP Standard  Production program
Application: Sales ( can choose any)

Click Save.

Then it will ask you to save the program.


Click on  Local Object or simply give $tmp in Package.


Code:
--------------------------------------------------------------------------------------
REPORT  ZHELLO_WORLD.

data text(10) type c.

text = 'Hello World'.

write:/ text.
--------------------------------------------------------------------------------------
Press Control + F2 to check the syntax ( displays at the bottom of the screen ).

To activate the program, press Ctrl + F3.

Then it displays a window of local objects.



Simply Press Enter.


It shows Objects activated, if it doesn’t show, then something has gone wrong.

Now, Press F8 (Execute) to display the output.


That’s it, you are done with toughest program on planet earth : P.