2006 Oct 16 12:19 PM
Hi .
We have 1 SAP std program and 1 Z program for asset allocation.We need to combine these report.I need the data of SAP report in Z report. These is one table ITAB_DATA in SAP report which contains all data for display ALV.I want this data in my Z program.
I WANT TO TRANSFER THE DATA OF SAP TABLE ITAB_DATA INTO MY INTERNAL TABLE WRITTEN IN Z.i THEN WANT TO MANUPULATE THIS DATA
I have written the following code.
data t_listobject like ABAPLIST occurs 0 with header line.
submit RAGITT_ALV01 via selection-screen
USING SELECTION-SET 'TEST17247'
exporting list to memory
and return.
if sy-subrc = 0.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = t_listobject
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
BUT DATA IN t_listobject IS IN RAW format. I want actual data. Plz suggest.
2006 Oct 16 12:33 PM
if u want to get the Internal table data from another program then u have to use
SUBMIT program
and u have to use command IMPORT iteb_tab from Memory ID 'PBC' , and in that SAP program u have to call EXPORT of itab_tab.
Regards
Prabhu
2006 Oct 16 12:32 PM
Hi,
Your approach is right.
After that use Function moduel LIST_TO_ASCI
to get the data in the desired format.
Rgds,
HR
2006 Oct 16 12:33 PM
if u want to get the Internal table data from another program then u have to use
SUBMIT program
and u have to use command IMPORT iteb_tab from Memory ID 'PBC' , and in that SAP program u have to call EXPORT of itab_tab.
Regards
Prabhu