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

IMPORT/EXPORT problem.

Former Member
0 Likes
703

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
657

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.

3 REPLIES 3
Read only

Former Member
0 Likes
658

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.

Read only

Former Member
0 Likes
657

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>

Read only

Former Member
0 Likes
657

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.