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 internal table from one program to other without using IMPORT

Former Member
0 Likes
1,146

Hi Experts,

I need to pass an internal table from one program to other. However i cannot use IMPORT/EXPORT due to some reason. Any idea how this can be done?

Warm regards,

Harshad.

8 REPLIES 8
Read only

Former Member
0 Likes
782

why cant you use import???

any ways,

you can pass it as a selection parameter(range table) in the submit statement,.

one more not advised way can be storing it in databse table..

but again .. .why dont you want to use import export?

Read only

0 Likes
782

Hi,

Thanks for your reply. Actually there is some issue with production server where IMPORT/EXPORT are not working. So ic annot use them.

Warm regards,

Harshad.

Read only

0 Likes
782

HI

You can create one memory area for intertable and you use that memory area in other table .

Read only

Former Member
0 Likes
782

hi,

for passing itab from one program to another u can use

IN FIRST PROGRAM WRITE ,

perform pass_data(SECOND_PROGRAM_NAME) using ITAB.

in both the program declare itab with same structure.

if u want to do some changes in that itab and if u want it back in first program then write as

perform pass_data(SECOND_PROGRAM_NAME) using ITAB changing itab.

Read only

Former Member
0 Likes
782

Hi,

Try doing like:

EXPORT itab FROM itab TO MEMORY ID 'ITAB_ID1'

IMPORT itab FROM MEMORY ID 'ITAB_ID1'

Hope it helps

Regards

Mansi

Read only

0 Likes
782

I mentioned that i cannot EXPORT/IMPORT due to some reason on production.

Read only

0 Likes
782

harsad,

have you checked the options i suggested?

Read only

0 Likes
782

You can use shared memory for that, or a file, or a table in the database.