Code: Alles auswählen.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = CONV PROGNAME( SY-REPID ) ##OPERATOR[PROGNAME]
DYNUMB = CONV SYCHAR04( SY-DYNNR ) ##OPERATOR[SYCHAR04]
TABLES
DYNPFIELDS = DYNPFIELDS.
Code: Alles auswählen.
REPORT ZTEST_CONV.
CLASS test_conv DEFINITION.
PUBLIC SECTION.
CLASS-METHODS with_reference
IMPORTING
tabix TYPE i.
ENDCLASS.
CLASS test_conv IMPLEMENTATION.
METHOD with_reference.
sy-tabix = 4.
WRITE tabix.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
WRITE: 'Wenn mit "conv" eine lokale Hilfsvariable erzeugt wird, wird die Ausgabe von erwartet:'. NEW-LINE.
WRITE: 1, 4. NEW-LINE.
WRITE: 'Tatsaechlich'. NEW-LINE.
sy-tabix = 1.
test_conv=>with_reference( tabix = conv i( sy-tabix ) ).
WRITE sy-tabix.