Professional Documents
Culture Documents
This document outlines our general product direction and should not be relied on in making a purchase decision. This
document is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue
any course of business outlined in this document or to develop or release any functionality mentioned in this
document. This document and SAP's strategy and possible future developments are subject to change and may be
changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind,
either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular
purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such
damages were caused by SAP intentionally or grossly negligent.
Table of Contents
A. Whats inside this exercise? ...................................................................................................................... 2
B. Getting Started with the ABAP Development Tools for SAP NetWeaver ................................................... 3
C. Create a Hello World program ................................................................................................................ 9
D. Advanced Functionality ........................................................................................................................... 13
E. Conclusion .............................................................................................................................................. 16
F. ADT Shortcuts......................................................................................................................................... 17
Getting Started with the ABAP Development Tools for SAP NetWeaver
Advanced functionality like forward navigation, cross-references, element info, and code completion.
B. Getting Started with the ABAP Development Tools for SAP NetWeaver
Explanation
1. Start the ABAP Development
perspective.
If not, open the ABAP
perspective via the Open
Perspective icon, select ABAP
in the popup window, and
continue with OK.
Screenshot
Explanation
4. You are in the ABAP
Screenshot
Explanation
Screenshot
Explanation
Screenshot
Explanation
Screenshot
Explanation
Screenshot
Information: You are in the ABAP development perspective and if thats the first time you experience it
you certainly feel lost with the icons, toolbars, views, and tabs within the views. So its time to say a couple
of words about the purpose of all this.
A perspective is a collection of menu bars, toolbars, and views, designed to serve best for the task at hand,
which, in our scenario, is ABAP development. Therefore, the ABAP perspective gives you the views and
tools you might probably need to do ABAP development, like the project explorer, space for the editor view
(not visible yet), the outline view, the transport organizer view, etc. You can customize all these views,
enlarge and minimize them etc. This customizing is saved, so you can restart the studio with exactly the
same settings. A useful tip for you in case you feel like you screwed up the perspective in the menu bar
you can find Windows > Reset Perspective, which will reset all views of the current perspective to the
default layout.
Screenshot
Explanation
Screenshot
10
Explanation
Screenshot
11
Explanation
ZR_HELLO_WORLD_##.
Right-click on the program in
the Project Explorer and
select Run As > ABAP
Application from the context
menu or simply use the wellknown shortcut F8.
Screenshot
12
13
D. Advanced Functionality
The following steps will help you to familiarize yourself with some advanced functionality of the ABAP
Development Tools for SAP NetWeaver. You will work with functions which you probably already know from
the ABAP development in SAP GUI.
In particular, you will be using forward navigation, cross-references, element info, and code completion.
Explanation
Screenshot
Program
ZR_HELLO_WORLD_##
(where ## is your group
number) with the code
snippet given below.
Code: ZR_HELLO_WORLD_##
REPORT zr_hello_world_00.
DATA lv_string TYPE string.
DATA lv_name TYPE sy-uname.
DATA ls_t100 TYPE t100.
lv_name = cl_abap_syst=>get_user_name( ).
lv_string = |Hello { lv_name }, welcome to the ABAP on HANA CodeJam!|.
WRITE: lv_string.
SELECT * FROM t100
INTO ls_t100
WHERE sprsl = 'E'
AND arbgb = 'S_EPM_OIA'.
WRITE: / ls_t100-text.
ENDSELECT.
Explanation
Screenshot
14
Explanation
Screenshot
15
Explanation
16
Screenshot
E. Conclusion
You have now made your first steps with the ABAP Development Tools for SAP NetWeaver. But that has
just been a very brief scratch on the surface. In the following exercises you will intensify the usage of the
ADT and we hope youll continue once youre back in your office.
Curious? Theres even a dedicated CodeJam on the ABAP Development Tools for SAP Netweaver meet
our ADT colleagues at an event near your location!
F. ADT Shortcuts
Edit
Ctrl+Shift+A Open development object
Ctrl+F2 Check development object
Ctrl+F3 Activate development object
Ctrl+Shift+F3 Activate all inactive objects
Ctrl+Space Code completion
Ctrl+1 Quick fix proposal
Ctrl+< Add comment
Ctrl+Shift+< Remove comment
Shift+F1 Format source aka pretty printer
Help
F1 ABAP keyword documentation
F2 Show code element information
Ctrl+3 Search for commands & views
Ctrl+Shift+L List all keyboard shortcuts
Navigate
F3 Open definition
Alt+Left Backward history
Alt+Right Forward history
Ctrl+T Quick hierarchy
F4 Open Type Hierarchy
Ctrl+O Quick outline
Ctrl+Shift+G Where-used list
Run, Debug
17