Application Development 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: 

submit and getting the data from the called program

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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