‎2009 Jun 05 12:26 PM
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.
‎2009 Jun 05 12:30 PM
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
‎2009 Jun 05 3:50 PM
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.
‎2009 Jun 05 3:55 PM
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.
‎2009 Jun 08 9:39 AM
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.
‎2009 Jun 05 12:37 PM