Skip to Content
0
Former Member
Sep 27, 2005 at 03:42 PM

How to split report list...

84 Views

Hi,

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.

(...)

SUBMIT (pprog)

USING SELECTION-SET pvari

EXPORTING LIST TO MEMORY

AND RETURN.

(...)

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = mtab_report_list

EXCEPTIONS

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 ?

Best regards,

Joan B. Altadill

CELSA SAP Admin