How to Create First ABAP Program in SAP 12 Steps Only

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

First-ABAP-program-in-SAP
STEP- 1

Double click on SAP Logon application icon or open SAP Logon application. Then go to connection screen. Double click on your connections, Those connections are already created. Then go to login screen.

SAP-Logon-application-icon-image.




SAP-connections-screen-first-abap-program


STEP- 2

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.

SAP-login-screen-first-abap-program


STEP- 3

Enter Transaction code SE38 in the search box. Then go to ABAP Editor Initial Screen.

SAP-home-screen-first-abap-program


STEP- 4

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

Create program name with some rules:-
  • Program name start with 'Y' or 'Z' character only, Because other character or  other alphabets are reserve in SAP.
  • Program name can not take any space, If required then use underscore ( _ ).

Create-SAP-ABAP-Program

STEP- 5

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

SAP-ABAP-Program-Title-Type


STEP- 6

After open create object directory entry screen, can't type any package name only click local object button. Then go to report screen.

SAP-ABAP-Local-Object-Image.


STEP- 7

Start writing of code in this report screen.

SAP-ABAP-Program-Report-Screen


Code Here,

*&---------------------------------------------------------------------*
*& Report ZRP_EXAMPLE
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT ZRP_EXAMPLE.
WRITE 'HELLO WORLD.' .

SAP-ABAP-Program-Report



STEP- 8

After write the code, save that program using Ctrl + S button otherwise click on save icon.

Save-SAP-ABAP-Program


STEP- 9

After save, check that program using Ctrl + F2 button otherwise click on check icon.

Check-SAP-ABAP-Program



STEP- 10

After check, If can not show any error, Then jump STEP-12. If show any error, Then you try to solve that error. If you does not solve that error your self, Then copy that error message and paste in our decoderp website search box and search. After search, you find this error message related post and open the post and follow the post guide to solve your error.If this ways to can not solve that error, Then comment your problem in post otherwise message in our social media page.

STEP- 11

After check, Active that program using Ctrl + F3 button otherwise click on Active icon. After click open a inactive object screen, Then click enter button or click correct icon.

Active-SAP-ABAP-Program



Active-ABAP-Program-Object


step- 12

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

Run-SAP-ABAP-Program



SAP-ABAP-Output-Screen



 Congratulation, you have successfully run a first ABAP program in SAP.

Most common ABAP syntax errors:

Post a Comment

0 Comments