I've developed a program that submits a report and retrieves its output wiht the function module LIST_FROM_MEMORY:
DATA: mtab_report_list LIKE abaplist OCCURS 0 WITH HEADER LINE.
USING SELECTION-SET pvari
EXPORTING LIST TO MEMORY
CALL FUNCTION 'LIST_FROM_MEMORY'
listobject = mtab_report_list
not_found = 1
OTHERS = 2.
The output of the called report contains in fact two lists: same query but different list orderings, and I want to generate two separate outputs, calling the function module WRITE_LIST twice. But I don't know how to truncate the output table from LIST_FROM_MEMORY, type ABAPLIST, because data is in RAW format and I cannot understand it.
Any idea ?
Joan B. Altadill
CELSA SAP Admin