Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert from RAW format data itab to human readable format data?

Former Member
0 Likes
764

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

1 REPLY 1
Read only

Former Member
0 Likes
507

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.