Computers and Technology

How to Develop an ABAP Console Application?

ABAP is a very powerful and reliable high-level programming language that allows its users to develop apps for their ERP systems. But most people hesitate to use it and prefer to hire developers for developing apps for their ERP systems. However, creating apps using ABAP is not that difficult as it appears to be. You can easily develop an app for your ERP system with adequate information about ABAP and little patience. Keeping this in mind, today we are going to show you how you can create a console application using ABAP development tools (ADT). To learn about ADT in detail feel free to enroll yourself in the SAP ABAP Online Training in India.

Here’s how you can create a console application using ADT.

How to Create an ABAP Console Application?

Following are the steps that you can follow to create an ABAP console application:

  1. Launch ADT and tap on the “Window” tab.
  2. Now tap on the “Perspective” option and then tap on the “Open Perspective” option.
  3. After that, hit the “Other” option.
  4. Now hit the “ABAP” option. After that hit “Open.”
  5. Next, tap on the “File” tab and then tap on the “New project” option.
  6. Now hit the “Other” option and select the “ABAP Cloud Project” option from the dropdown menu and then hit “Next.”
  7. Next, tap on the “Use Cloud Foundry Environment” option which is present in the “SAP BTP Cloud Foundry Environment” section.
  8. Now hit/click “Next.”
  9. Next, you have to submit your connection settings details. To do this, first select your region using the dropdown menu that is present near the “Region” option.
  10. Now enter your email and password in the “Email” and “Password” fields and then hit “Next.”
  11. Next, you have to submit your service instance details. To do this, first, enter the name of your organization in the “Organization” field.
  12. Now type “dev” in the “Space” field.
  13. Next, select the “default_abap-trial” option from the dropdown menu that is present near the “Service instance” option and then hit “Next.”
  14. Now tap on the “Open Logon Page in Browser” option to be authenticated automatically,
  15. Next, submit your login credentials if asked.
  16. Now navigate back to ADT and hit the “Finish” option.
  17. Next, right-click on the “ZLocal” package and then tap on the “New” option. After that, tap on the “Package” option.
  18. Now enter “ZPACKAGE_XXX” in the “Name” field.
  19. Next, enter “My Package XXX” in the “Description” field.
  20. Now tap on the “Add to favorite packages” checkbox and then hit “Next.”
  21. Next, tap on the “Create a new request” option.
  22. Now type “TR1234” in the “Request Description” field and hit “Finish.”
  23. Next, right-click on your new package and then tap on the “New” option.
  24. Now tap on the “Class” option to add a new class to your package.
  25. Next, enter “Z_CLASS_XXX” in the “Name” field and “My class XXX” in the “Description” field.
  26. Now hit “Next.”
  27. Next tap on the “Choose from requests in which I am involved” option and select your request (TR1234).
  28. Now hit “finish” to create your class.
  29. Next, you have to implement the interface by specifying the interface in the public section. To do this type “INTERFACES IF_OO_ADT_CLASSRUN” in the public section.
  30. Now navigate to the class implementation and create a main method. To do this type “METHOD if_oo_adt_classrun~main” in the class implementation.
  31. After that, type “out->write (‘Hello World!’)” below it.
  32. Now you have to save and activate your changes. To do this, use the following shortcut keys: “Ctrl+S” (For saving changes) and “Ctrl+F3” (For activating changes).
  33. Next, right-click on your class and tap on the “Run as” option.
  34. Finally, tap on the “ABAP Application” option to run and test your console app.


There you have it, a simple guide that you can use for creating an ABAP application using ADT. So, carefully follow all the steps and instructions of this guide and you will be able to create an app using ADT without any difficulty. However, if you want to learn about developing apps using ADT in detail feel free to join the SAP ABAP Training Institute in Gurgaon.

Leave a Reply

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

Back to top button