ABAP
Editor is used to create, edit and run the programs.
How to open ABAP
Editor?
By
navigating through the Folder structure on SAP Easy Access Pane (or) by
entering the transaction ‘SE38’ in command field.
Navigating through
folder structure.
Tools
-> ABAP Workbench -> Development -> ABAP Editor
By using transaction
technical name
You
can open ABAP Editor by entering the transaction technical name ‘SE38’ in the
command field.
Since
we are going to use ABAP editor throughout the tutorial, add this as favorite.
I already explained in my previous post ‘How to add a Favorite?’.
On
you entered the transaction ‘SE38’ in command window, it opens the window like
below.
Below
image summarizes the important sections of ABAP Editor
Create Hello World
Program
Enter
the name of the program as ‘Z_HELLO_WORLD’ and press Create button.
All
the custom programs must start with the letter ‘Z’ (or) ‘Y’.
Once
you press ‘Create’ button, it opens below window. Give some meaningful title to the application
and select the type as ‘Executable Program’ and press Save button.
Once
you press the Save button, it opens below window.
Click
the ‘Local Object’. It opens the Editor.
As
you see, by default program is in Inactive state. Update the program like
below.
Z_Hello_World
*&---------------------------------------------------------------------* *& Report Z_HELLO_WORLD *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT Z_HELLO_WORLD. Write 'Hello World'.
Save
the program by using CTRL + S. Activate the program and run the program.
First
check the program for any syntax errors. If there are no syntax error, you will
get ‘No Syntax Errors found’ message at the bottom of the window.
Now
activate the program by clicking Activate button.
Now
you can run the program. Once you run the program, you can able to see below
window.
As
you observe the title we had given is displayed in the title bar of the window
and the content of Write statement is displayed in body of the window.
That’s
it. You are done with the first steps of ABAP Programming. It is time to
explore more about ABAP syntax.
No comments:
Post a Comment