You have a running ABAP application server (AS). This tutorial was created in the AS ABAP developer edition, 752, download version. For more information, see SAP Developer Community: Trials and Downloads
Click on the editor and choose Link to Editor from the Project Explorer toolbar.
step5c-link-with-editor
The relevant folders and packages will now open, showing the program in its package in the Project Explorer. This works for any Repository object.
The outline also appears:
Image depicting step3e-program-outline
Also, if you choose the Properties tab, you can see the package and application component:
Image depicting step3f-program-properties
In the Outline, you can see that the program contains a local class, Demo, with a method, Main, and, crucially, an event keyword START-OF-SELECTION. If you look in the main editor, you will see that when the associated event is triggered by the ABAP runtime environment, the program calls the method Main of the class Demo:
Image depicting step3g-start-of-selection
Without a processing block such as this, the program would not do anything. Also note, if you are completely new to ABAP, but experienced in other languages, that every ABAP statement ends with a period (.).
For more information, see ABAP Keyword Documentation: START-OF-SELECTION.
Step 4Run your program
+
Now run your program by choosing Run (F8) from the toolbar (ignore the other options for now):
Image depicting step4-run-program
An ABAP console appears. Change the name of the database table, or number of rows if you want, then choose Enter:
Image depicting step4b-console
The console displays 10 rows of the table in a new tab:
Image depicting step4c-table-in-console
Close the console.
Step 5Open a global class
+
You will now explore ABAP global classes:
Back in the main text editor for the program, scroll down till you find the class CL_DEMO_INPUT.
Image depicting step5-choose-class
This is a global class. Select it and choose Navigate (F3) from the context menu. The definition appears in a text-based editor. (The outline also appears):
Image depicting step5b-global-class
Step 6Find the class in the Project Explorer
+
If you looked in the Project Explorer for the class CL_DEMO_INPUT, you will not find it in the package SABAPDEMOS. If you look in the Properties tab, you will see that CL_DEMO_INPUT belongs to another package. You can display it in the hierarchy by right-clicking in the text editor and choosing Show In > Project Explorer:
Image depicting step6-show-in-proj-explorer
The class appears in its package, SABAP_DEMOS_INPUT:
Image depicting step6b-class-in-package
Step 7Open a function module
+
Finally you will look at function modules.
Function modules are managed in function groups and provide two main benefits:
They allow you to encapsulate and reuse global functions in an ABAP system.
They are also a very powerful feature, in that SAP delivers many built-in function modules โ both general such as date and time, or remote system information, and module specific, such as HCM or FI. See these two lists for more details:
Function modules are now obsolete for new development. You should now use ABAP Objects for modularization. However, you should be familiar with them, since you may need to maintain them or use an existing function module. For more information on obsolete ABAP language elements, see the ABAP Keyword Documentation: Function Modules.
Now you will inspect a function module:
In the Project Explorer, in the package SABAPDEMOS, expand Source Code Library > Function Groups, then expand the group DEMO_SPFLI > Function Modules. You will see 2 function modules:
Image depicting step7-find-fm
Choose (double-click on) READ_SPFLI_INTO_TABLE. The function module opens in a text-based editor:
Image depicting step7b-fm-in-editor
Now run your function module by choosing Run (F8) from the toolbar (ignore the other options for now).
The initial screen should look like this. Choose Run (F8) again.
Image depicting step7-test-fm-1
Double-click on the text 4 entries.
The output should look roughly like this.
Image depicting step7c-test-fm-output
Step 8Test yourself
+
And that’s it. You should now be familiar with the most important ABAP Repository objects and the relationship between them.
You can now work through the tutorial mission Get Started with ABAP Development.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 8
1. Add a package to Favorites2. Expand the package3. Expand the programs folder4. Run your program5. Open a global class6. Find the class in the Project Explorer7. Open a function module8. Test yourself
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.