Suche…


Bemerkungen

ABAP ist eine von SAP entwickelte Programmiersprache zur Programmierung von Geschäftsanwendungen im SAP-Umfeld.

Früher nur prozedural, ist ABAP dank der Erweiterung von ABAP Objects jetzt auch eine objektorientierte Sprache.

Versionen

Ausführung Veröffentlichungsdatum
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

Hallo Welt

PROGRAM zhello_world.
START-OF-SELECTION.
    WRITE 'Hello, World!'.

Anstatt auf die Konsole zu drucken, schreibt ABAP Werte in eine Liste, die angezeigt wird, sobald die Hauptlogik ausgeführt wurde.

Hallo Welt 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( ).


Modified text is an extract of the original Stack Overflow Documentation
Lizenziert unter CC BY-SA 3.0
Nicht angeschlossen an Stack Overflow