SAP Function SAVE_LIST - Save list

Parameter Reference Type Length Default Optional Text
FORCE_WRITE CHAR1 C 1 X Force WRITE before saving
LIST_INDEX 0 '0' X List index

Parameter Reference Length Optional Text
LISTOBJECT ABAPLIST 1004 Container for list object

Exception Text
LIST_INDEX_INVALID Invalid list index (LIST_INDEX)


Saving a list
The specified list is returned to the contain LISTOBJECT. You can thenprocess the container like any other internal table (for example, usingEXPORT to export it to the database or to memory).
SAVE_LIST is noto suitable for saving lists produced during backgroundprocessing.

Description
If the parameter is set to 'X', a WRITE/SPACE statement is triggeredbefore the list is saved to memory. This WRITE statement forces thelast line of the list to be output.

Value range
SPACE, 'X'.

Default
SPACE
Index of the list that you want to save (corresponds to the contents ofthe system field SY-LSIND when the list is created).
Container for receiving the list object (internal table with structureABAPLIST).