Created
May 16, 2016 11:07
-
-
Save larshp/3addc848283719c573f03fba4e459f14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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