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

PASSING A TABLE TO ANOTHER PROGRAM

Former Member
0 Likes
593

HII FRNDS

CAN WE PASS A TABLE TO ANOTHER PROGRAM . I AM CALING THAT PROGRAM USING SUBMIT COMMAND.

tHANKX

ROHIT

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
562

Hi,

you can export and import the table from memory

  • From calling program

EXPORT it_itab TO MEMORY ID 'ZZ_MEM_ID'.

  • Within called program

IMPORT it_itab FROM MEMORY ID 'ZZ_MEM_ID'.

Regards

Frank

4 REPLIES 4
Read only

Former Member
0 Likes
562

yes through export and import command

export itab to memory id 'MID'.

import itab from memory id 'MID'.

regards

shiba dutta

Read only

Former Member
0 Likes
563

Hi,

you can export and import the table from memory

  • From calling program

EXPORT it_itab TO MEMORY ID 'ZZ_MEM_ID'.

  • Within called program

IMPORT it_itab FROM MEMORY ID 'ZZ_MEM_ID'.

Regards

Frank

Read only

Former Member
0 Likes
562

check this sample code..

DATA list_tab TYPE TABLE OF abaplist.

SUBMIT report EXPORTING LIST TO MEMORY

AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list_tab

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = list_tab.

ENDIF.

hope this helps...

Read only

0 Likes
562

OK ITS WORKING THANKS A LOT FRNDS