‎2007 May 17 3:25 PM
Hi,
I am using a import export statement in my program.
REPORT ZKATEST.
data : w_test type c value '1'.
data : w_test1 type c.
export w_test to memory id 'ZKAPIL'.
import w_test1 from memory id 'ZKAPIL'.
write : w_test1.Here the value gets exported to memory, but while importing its not getting populated (w_test1 is blank).
Please suggest the solution.
Thanks
Kapil
‎2007 May 17 4:14 PM
Hi kapil,
1. This kind of problems happen
because the variable name,
for export
and import are different.
2. While exporting,
Under memory id ZKAPIL,
Value of W_TEST is stored with the name W_TEST.
3. From the syntax,
<b>import w_test1 from memory id 'ZKAPIL'</b>
while importing, from memory id ZKAPIL,
the sysetm will , by default,
try to search the value stored under name W_TEST1.
(But it won't be found, because the orignal value is stored
under the name W_TEST and not W_TEST1)
<b>4. So just modify the syntax with this, and it will work fine.</b>
<b>import W_TEST = w_test1 from memory id 'ZKAPIL'.</b>
regards,
amit m.
‎2007 May 17 4:14 PM
Hi kapil,
1. This kind of problems happen
because the variable name,
for export
and import are different.
2. While exporting,
Under memory id ZKAPIL,
Value of W_TEST is stored with the name W_TEST.
3. From the syntax,
<b>import w_test1 from memory id 'ZKAPIL'</b>
while importing, from memory id ZKAPIL,
the sysetm will , by default,
try to search the value stored under name W_TEST1.
(But it won't be found, because the orignal value is stored
under the name W_TEST and not W_TEST1)
<b>4. So just modify the syntax with this, and it will work fine.</b>
<b>import W_TEST = w_test1 from memory id 'ZKAPIL'.</b>
regards,
amit m.
‎2007 May 17 4:26 PM
Hi,
DATA : w_test TYPE c VALUE '1'.
DATA : w_test1 TYPE c.
EXPORT w_test TO MEMORY ID 'ZKAPIL'.
<b>IMPORT w_test TO w_test1 FROM MEMORY ID 'ZKAPIL'.</b>
WRITE : w_test1.
The Statements in Bold is the change.
Regards,
Ranjit Thakur.
<b>Please Mark The Helpful Answer.</b>
‎2007 May 17 4:30 PM
name of variable should be same.
export <b>w_test</b> to memory id 'ZKAPIL'.
import <b>w_test</b> from memory id 'ZKAPIL'.
move w_test to w_test1.
write : w_test1.