cancel
Showing results for 
Search instead for 
Did you mean: 

How to split report list...

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can use fm LIST_TO_ASCI to convert your list, but after I think you'll miss the output characteristics (like color).

Max

Message was edited by: max bianchi

Answers (0)