Getting started with ABAP
Remarks#
ABAP is a programming language developed by SAP for programming business applications in the SAP environment.
Previously only procedural, ABAP is now also an object-oriented language thanks to the ABAP Objects enhancement.
Versions#
Version | Release Date |
---|---|
ABAP 7.50 | 2015-10-20 |
ABAP 7.40 | 2012-11-29 |
ABAP 7.0 | 2006-04-01 |
ABAP 6.40 | 2004-04-01 |
ABAP 6.20 | 2002-04-01 |
ABAP 6.10 | 2001-07-01 |
ABAP 4.6C | 2001-04-01 |
ABAP 4.6A | 1999-12-01 |
ABAP 4.5 | 1999-03-01 |
ABAP 4.0 | 1998-06-01 |
ABAP 3.0 | 1997-02-20 |
Hello World
PROGRAM zhello_world.
START-OF-SELECTION.
WRITE 'Hello, World!'.
Instead of printing to the console, ABAP writes values to a list which will be displayed as soon as the main logic was executed.
Hello World in ABAP Objects
PROGRAM zhello_world.
CLASS main DEFINITION FINAL CREATE PRIVATE.
PUBLIC SECTION.
CLASS-METHODS: start.
ENDCLASS.
CLASS main IMPLEMENTATION.
METHOD start.
cl_demo_output=>display( 'Hello World!' ).
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
main=>start( ).