WTF Solution

How to Create Your First ABAP Program in SAP GUI in Just 10 Steps

I know you are interested to learn Advance Business Application Programming (ABAP) Language in SAP, But you does not know how to write the first ABAP program in SAP GUI application. Then follow some simple steps to create your first ABAP program in SAP GUI, with an image example. 

Step- 1 (Open SAP Logon Application)

Double-click on the SAP Logon application icon or open the SAP Logon application. Then go to the connection screen. For new user connection list is blank, first you need to create connection. The connection means you need to connect your sap server to sap gui application using server details. For details ask your ABAP trainer or System Administrator or instituter. Double-click on your connections, Those connections are already created. Then go to the login screen.

open sap logon app

Connections or sever details

Enter user name and password (Those user name and password are given by the your ABAP trainer or System Administrator or institution or company). Then go to SAP Home screen. Please see the client code and descriptions, these are available in the screen.

GUI logon screen

Step- 2 (Go to ABAP Editor Initial Screen)

Enter Transaction code SE38 in the search box. Then go to ABAP Editor Initial Screen. "SE38" is the tcode or transaction code of ABAP Editor.

ABAP Editor

Step-3 (Create New First ABAP Program)

Enter the program name in the text field with following some rules and click the 'Create' button. Then go to the ABAP program attribute change screen.

Create a program name with some rules:-

  • Program name start with 'Y' or 'Z' character only, Because other character or alphabets are reserved in SAP internal uses.
  • Program name can not take any space, If required then use underscore ( _ ).

Step-4 (ABAP Program Attribute Change Screen)

Enter the program Title,  select the program Type is Executable program , and click the save button. Then go to the create object directory entry screen.

Program title and other details

Step-5 (Save from Local Object)

After opening the create object directory entry screen, can't type any package name only click the local object button. It means this object can't transport to other system and this object or program used only for practice purposes. Then go to the report screen.

object directory entry screen

Step-6 (Write First ABAP Code)

Start writing code in this report screen.

First ABAP Code

Code Here,

&---------------------------------------------------------------------
*& Report ZRP_FIRST_PROGRAM
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*

REPORT ZRP_FIRST_PROGRAM.

WRITE 'HELLO WORLD.' .

Step-7 (Save the ABAP Code)

Save that program using the Ctrl + S button otherwise click on the save icon.

Save the ABAP Code

Step-8 (Error Check from the Code)

Check that program using Ctrl + F2 button otherwise, click on the check icon.

Error check from the code

Step-9 (Active the ABAP code)

Active that program using the Ctrl + F3 button otherwise click on the Active icon. After click open a inactive object screen, select your program or object and click enter button or click correct icon.

Active the ABAP code
Inactive Object List

Step-10 (Execute or Run the ABAP Program)

After Active, run that program or direct processing using the F8 button otherwise click on the direct processing icon. Then go to the output screen and see the output. If edit or change that program, Then enter the back button.

Run the ABAP Program

Output:

First abap program output

Congratulations, you have successfully run the first ABAP program in SAP GUI application.

Read more: What is SAP ? or SAP ERP Software

Leave a Reply

Your email address will not be published. Required fields are marked *