‎2006 May 28 2:31 PM
i have data in <FS_ESSR> in 1 prog
how i can make import to this value (<FS_ESSR>)
in another prog
‎2006 May 28 3:44 PM
Rani,
I am guessing that this variable is referring to ESSR structure.
So, wherever you are exporting it.
EXPORT <FS_ESSR> TO MEMORY ID 'ABC'.
And the place where you want to import this.
FIELD-SYMBOLS : <FS_ESSR> TYPE ESSR.
IMPORT <FS_ESSR> FROM MEMORY ID 'ABC'.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 May 28 2:39 PM
‎2006 May 28 2:40 PM
Export the value to memory and import it from the another program. The following is the syntax
EXPORT obj1 ... objn TO MEMORY.
Hope it helps.
Sunil Achyut
‎2006 May 28 3:44 PM
Rani,
I am guessing that this variable is referring to ESSR structure.
So, wherever you are exporting it.
EXPORT <FS_ESSR> TO MEMORY ID 'ABC'.
And the place where you want to import this.
FIELD-SYMBOLS : <FS_ESSR> TYPE ESSR.
IMPORT <FS_ESSR> FROM MEMORY ID 'ABC'.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 May 28 6:04 PM
Ravi,
this won't work: Field-symbols are just address pointers. and <FS_ESSR> is not yet assigned to any storage area (variable). IMPORT statement will copy a value to a target variable. So if a variable (or table line) is assigned to a field-symbol, the value of the assigned vaiable can be exported to memory. Import must be to a local variable.
So this should be
Data:
ls_essr type essr.
IMPORT ls_essr from memory ID 'ABC'.
if you like, you may ASSIGN ls_essr to <FS_ESSR>.
Regards,
Clemens
‎2006 May 28 4:19 PM
Hi Rani
Here is the help you can go thru for transfering data between programs.
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm">Passing Data Between Programs</a>
Refer to the example programs
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba50035c111d1829f0000e829fbfe/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba50035c111d1829f0000e829fbfe/frameset.htm</a>
Regds
Manohar