Code: Alles auswählen.
CLASS lcl_test DEFINITION.
PUBLIC SECTION.
METHODS m EXPORTING e TYPE i
RETURNING VALUE(r) TYPE i.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_test IMPLEMENTATION.
METHOD m.
e = 1.
r = 1.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
DATA e TYPE i.
DATA(class) = NEW lcl_test( ).
data(i) = class->m( IMPORTING e = e ).
Code: Alles auswählen.
METHOD read_table.
* IMPORTING is_key TYPE ts_key
* CHANGING ct_table TYPE tt_table
* RETURNUNG rr_line TYPE REF TO ts_line.
READ TABLE ct_table REFERENCE INTO rr_line
WITH KEY feld1 = is_key-feld1 feld2 = is_key-feld2 ...
ENDMETHOD.
Code: Alles auswählen.
IF NOT lo->meth( [EXPORTING ... ] IMPORTING ET_BAPIRET2 = lt_bapiret2 ).
Fehlerbehandlung
ENDIF.