01-24-2008 12:17 PM
hi,
I am using SUBMIT and return, i want to get the out put of the called program back to the calling program in a internal table,
I tried using
SUBMIT ZPUR_REG WITH SELECTION-TABLE l_t_rspar AND RETURN
EXPORTING LIST TO MEMORY.
and used
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
i get data in the list _tab in different format i want in the same format as the internal table which is displayed in the called program.
Please help me with some code or idea.
Points assured
regards,
Prabhu
01-24-2008 12:20 PM
In report ZPUR_REG try exporting the internal table to abap memory (that you use to display report).
EXPORT ITAB to MEMORY ID '123'.
Import this internal table into your calling program.
You should have the same format