Hi,
I came across this in threads and iam also in use of this but why to use sumit xxxx(what is xxxxx mean) and CALL FUNCTION 'LIST_FROM_MEMORY'
DATA: LISTOBJ LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.
DATA: WRITES LIKE LISTZEILE OCCURS 0 WITH HEADER LINE.
SUBMIT XXXXX EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJ
EXCEPTIONS
NOT_FOUND = 1.
IF SY-SUBRC = 0.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
LISTOBJECT = LISTOBJ
LISTASCI = WRITES.
ENDIF.