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

Problem with Export/Import in background

Former Member
0 Likes
1,094

Hi Experts,

I am having a requirement in which i am exporting an flag to memory from one program and importing that in another program. in foreground it is working fine. But in background it is not working. Is there any work around.

Report 1:

DATA:l_flag type c value 'X'.

free memory id 'ZFLAG'.

EXPORT L_FLAG TO MEMORY ID 'ZFLAG'.

LEAVE PROGRAM.

Report 2:

DATA:L_FLAG TYPE C.

import l_FLAG from memory id 'ZFLAG'.

free memory id 'ZFLAG'.

IF l_FLAG = 'X'.

LEAVE PROGRAM.

5 REPLIES 5
Read only

Former Member
0 Likes
622

HI,

EXPORT/IMPORT To Memory Id will not work in the background....Instead you can use these statements IMPORT/EXPORT to DATABASE

http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm

Read only

0 Likes
622

Hi,

Thanks for the reply.

I am having a requirement in which i am exporting flag not the internal table. Is there any work around for

that.

Read only

0 Likes
622

Hi,

You can export the flag to database ..it is not required to be a internal tabel. You can refer to this link..

It is explained with example

http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm

Here obj1 can be single variable..

EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key

This will work in Background not the Export to MEMORY statement.

Read only

0 Likes
622

Hi Avinash,

Thanks for the reply.I have a doubt.

EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.

As per my understanding i need to crate a entry in the database table (INDX) for the ID key.

& need to transport that entry in production as well as.

Please confirm my understanding & if there is a other work around in which we dont need

to create a entry in the data base table.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
622