Skip to content

Instantly share code, notes, and snippets.

@larshp
Created May 16, 2016 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larshp/3addc848283719c573f03fba4e459f14 to your computer and use it in GitHub Desktop.
Save larshp/3addc848283719c573f03fba4e459f14 to your computer and use it in GitHub Desktop.
REPORT zfoobar.
START-OF-SELECTION.
DATA: lt_table TYPE TABLE OF i,
lv_value LIKE LINE OF lt_table.
APPEND 2 TO lt_table.
APPEND 2 TO lt_table.
PERFORM run.
CLASS lcl_class DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: static IMPORTING iv_foo TYPE i.
ENDCLASS.
CLASS lcl_class IMPLEMENTATION.
METHOD static.
WRITE: / iv_foo.
READ TABLE lt_table INTO lv_value INDEX 1.
WRITE: / iv_foo.
ENDMETHOD.
ENDCLASS.
FORM run.
LOOP AT lt_table INTO lv_value.
lcl_class=>static( sy-tabix ).
ENDLOOP.
ENDFORM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment