SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN. CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2. DATA list_tab TYPE TABLE OF abaplist.
SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.import LISTOBJECT from memory id '%_LIST'.report z_test_1 no standard page heading.
write sy-cprog.report z_test_2.report z_test_3.
data list_tab type table of abaplist.
submit z_test_1 and return exporting list to memory.
submit z_test_2 and return exporting list to memory.
call function 'LIST_FROM_MEMORY'
tables
listobject = list_tab
exceptions
not_found = 1
others = 2.
call function 'WRITE_LIST'
tables
listobject = list_tab
exceptions
empty_list = 1
others = 2.Z_TEST_1call function 'LIST_FREE_MEMORY'.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |