‎2010 Dec 02 1:00 PM
Hi,
Am SUBMITting z_report_1 from z_report_2 and the LIST is EXPORTing to MEMORY. Then, am getting back this report from memory in z_report_2 by using LIST_FROM_MEMORY. but this itab/data/report am getting in RAW format. But, I have to filter some data from this imported (from FM) report and finally I have to print the report with filtered data.
Pls. let me know How to get/convert a RAW data itab to human readbale data format, so that I will filter that data.
Thank you
‎2010 Dec 02 1:37 PM
Hi you can use FM LIST_TO_ASCI
Pass the Raw table to listobject and the text table as LISTASCI.
CALL FUNCTION 'LIST_TO_ASCI'
* EXPORTING
* LIST_INDEX = '-1'
* WITH_LINE_BREAK = ' '
* IMPORTING
* LIST_STRING_ASCII =
* LIST_DYN_ASCII =
TABLES
LISTASCI = it_list "text table
LISTOBJECT = obj_list "raw data table from memory
* EXCEPTIONS
* EMPTY_LIST = 1
* LIST_INDEX_INVALID = 2
* OTHERS = 3
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Anmol.