Working with ABAP Development Tools (Quick Launch)
This Quick Launch page aims to provide you with the compact knowledge you may need when working with ABAP Development Tools for SAP NetWeaver during the introductory or training period. Find the complete version including cheat sheets in the IDE (Help > Help Contents > ABAP Development User Guide > Getting Started > Quick Launch)
Getting Started…
- To start, create an ABAP project. An ABAP project always represents one system connection. TIP: To be able to work in multiple ABAP systems in parallel, you only need to create one additional ABAP project.
- Open ABAP development objects in your project using Ctrl + Shift + A. or double-click the corresponding node in the ABAP project.
- Browse the contents of an ABAP system in the Project Explorer. The root of an ABAP project contains a list of ABAP packages that are grouped either under the favorites list (Favorite Packages) or the System Library node. You can find the development objects simply by expanding the package node.
- Add ABAP packages that are relevant for your work to the list of favorites.
- Use Link with Editor
: whenever you change an object in the editor, this object will be selected in the expanded Project Explorer tree.
- Use the Outline view to display the structure of a development object.
- Add a new ABAP development object (for example: a new class) to a package by selecting the package and using the context menu New > ABAP Class
Working with the Editor
- You can open multiple development objects in multiple editor tabs.
- Search for references to your development object using the Where-Used
function (Ctrl + Shift + G) .
- Open the Quick Outline in the editor using Ctrl + O.
- Navigate the source code using F3 or Ctrl + Click.
- To navigate between editors, click the back or forward arrow key on the toolbar.
- To switch between the class, its local types or its ABAP Unit test classes, use the bottom tabs of the class editor.
- Press F2 to display the signature of a class or method.
Writing ABAP Source Code
- To change the source simply start typing directly in the editor.
- Use code completion (Ctrl + Space) in the editor.
- Insert source code templates using code completion and then Shift + Enter.
- Start the ABAP language help with F1 in the source code editor.
- Format the complete source code (Shift + F1) or a source code block (Ctrl + Shift + F1) within the editor.
- Activate one or multiple development objects using the corresponding icons in the toolbar.
- Compare source code objects, even across different ABAP systems, using the Compare with function in the context menu of the editor or Project Explorer.
Running ABAP Unit Tests
- Run ABAP Unit tests for one or multiple development objects using the context menu Run As > ABAP Unit Test or Ctrl+ Shift + F10 in the editor or Project Explorer
- ABAP Unit test results are displayed automatically for you in the ABAP Unit Runner view.
Running ABAP Programs and Test Environments
- Run ABAP programs or test environment for classes or function modules using the context menu Run As > ABAP Application in the Project Explorer or by pressing F8.
Working with ABAP Runtime Errors (ABAP Short Dumps)
- If a runtime error occurs in a program that you have started, the IDE will alert you to an ABAP feed with a small window. However, you can also subscribe to an ABAP feed from the ABAP repository. To subscribe to an additional ABAP feed, press Ctrl + 3 and select Feed Reader.
Getting User Assistance Support
- The Welcome page (Help > Welcome) provides a standardized set of pages that introduce the ABAP Development Tools to new users.
- To access the complete reference user guide in the context of standard ABAP development, choose Help > Contents > ABAP Development User Guide.
- Press F1 to request context-sensitive help for a given tool or UI component.
- The cheat sheets provided will guide you interactively through some essential tasks.
- The ABAP Samples Gallery (Help > Welcome > Samples) allows you to take a look at the source code of a variety of ABAP samples that are available in your development system.
Most Common Keyboard Shortcuts
Development Objects |
Source Code Editing |
||
Ctrl + Shift + A |
Open development object |
Shift + F1 |
Format source code (Pretty Printer) |
Ctrl + Shift + N |
New development object |
Ctrl + Shift + F1 |
Format source block |
Ctrl + S |
Save development object |
Ctrl + < |
Add comment |
Ctrl + F2 |
Check development object |
Ctrl + Shift + < |
Remove comment |
Ctrl + F3 |
Activate development object |
Ctrl + Space |
Code completion |
Navigation |
Search and Help |
||
F3 |
Open source code |
Ctrl + Shift + G |
Where-used list |
Alt + Left |
Backward navigation |
F1 |
Show context-sensitive help |
Alt + Right |
Forward navigation |
F2 |
Show tooltip description |
thanks a lot.
Hi Olga, thanks for this blog.
One question : Is possible create/change ABAP text elements ( report ) via ABAP tools or still need SAP GUI ?
BR, Christiano.
Hi Christiano,
you can create programs/reports using ABAP Development Tools. But in order to create text elements you still have to use SAPGUI.
Regards,
Olga.
Hi Olga, thanks for your assistance...
The ABAP Development Tools based on IDE Eclipse is fine and certainly will improve our productivity. Nowadays I use this IDE in my client after system upgrade to ABAP 7.31.
I installed the HANA Studio with ADT package. This is very nice, one tool with all those perspectives together in same IDE.
Again, thank you for sharing this usefull blog with us. 🙂
BR, Christiano.
Hi Christiano,
As Olga Said, you need to use SAP GUI to maintain report text, but a cool thing is if the text element is already create you can select the text id right click and navigate, this will open a SAP GUI session in an eclipse tab you can modify it, or create new ones, the navigation from eclipse doesn't work if the text is not already created 🙁 but something is something 🙂
Cheers!
Luis
Thanks Luís... I think new features will appear in each new version of ADT...
BR,Christiano.
Hi Christiano,
there is a nice shgortcut in the report editor to navigate to the text elements in the SAP GUI. Just right click in the report editor and choose from the context menu "OPEN OTHERS->TEXT ELEMENTS" and you are in the text element editor.
Regards,
Thomas.
I didn't know this one!
Thanks!
Luis
Thanks Thomas.
BR, Christiano.
Hi Thomas,
I don't see this option, right click on the editor, "open declaration", "open abap type hierarchy f4"....no Open others", am I blind? 😕
Cheers!
Luis
Hi Luis,
sorry to disappoint you. It is only working with 7.4.
We will downport that also to 7.31.
Regards,
Thomas.
🙁
Hi Christiano,
Thanks for sharing the blog.
regards,
Gurunath
Hi Gurunath,
this blog was created by Olga Dolinskaja, not by me. 😉
ABAP Development Tools is a very interesting choice, is not it ?
BR, Christiano.
Hi Olga,
thanks for a - once more - very insightful blog.
Just one additional entry for your list:
<Ctrl> + <Shift> + <F10> also launches ABAP unit tests.
Regards,
Chris
Hi Chris,
thanks for keeping an eye on ADT 🙂 I've added the ABAP Unit Test shortcut to the document.
Best,
Olga.
Just one key away with <Ctrl> + <Shift> + <F11> you can launch the ABAP unit test with coverage.
Hi Olga,
Thank you!
Ravi
Thanks Olga
Thats a nice post
🙂
Excited to try!!
Hello Olga Dolinskaja,
Thanks for document.It is really helpful.
Waiting to hear from you more.
Thanks
Katrice
Nice Blog. It will save a lot of time. Thanks 🙂
Hello everyone!, I wan´t to know if it´s possible to download content or code stored in the backend to maintain a backup of my source codes. Like massdownloader.
Thanks!
Hi Abraham,
there is a solution in Eclipse to export project content as a ZIP File:
1.) You go to menu File and cjoose option Export ....
2.) On the upcoming popup you choose General->Archive File
3.) Now you choose the contetn that you want to export:
Now the objects are stored in the zip as Files in the eclipse specific format.
The only thing you have to take care is that this only works for sources that were already displayed in eclipse. Because only in that case we store the file in the local file system.
Give it try if that procedure fits to your needs and let me know.
Regaqrds,
Thomas.
I think you're looking for http://saplink.org
thanks for sharing
thanks for this very useful information. 🙂
Thank You for the Info!
Thanks for useful information.
Very useful
Thank you a lot Olga!
Very useful information!
Hi,
i am working on sap-btp in eclipse and i want to create a json file but cl_gui_frontend_Services are not permitted in eclipse.
is there is any function to create a json file or is there any function to create a text file in sap btp