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

Using EXPORT / IMPORT between 2 Programs

Former Member
0 Likes
893

Hi,

I'm using EXPORT / IMPORT between 2 programs. One is a custom program, and the other is tcode FOIO.

In my custom program, I have the following code:

EXPORT it_recnvzzkopo[] TO MEMORY ID 'TEST'

In transaction code FOIO, i edited it to have the following:

IMPORT GT_RECNVZZKOPO[] FROM MEMORY ID 'TEST

However, it is not working. sy-subrc is 0 for both, but the data is not being passed.

What could be wrong with this code? Or is it NOT possible to pass data in between a custom program and a standard SAP tcode like FOIO?

Hope to hear from you soon.

Thank you.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
752

Hi,

The internal table names for export and import must be excatly same, only then it will work.

Read only

Former Member
0 Likes
752

Make the variable/internal table exactly same and try again.

Arup.

Read only

Former Member
0 Likes
752

Hi Dennis Cheng,

Pls rewrite the EXPORT statement as given below. You can use any one of the following

1) EXPORT (ITAB) to Memory id 'TEST'.

2) EXPORT ITAB from ITAB1[] to memory id 'TEST'.

Regards

Bala