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 and export statements

Former Member
0 Likes
690

I am trying to use import and export statements in two different programs . The control from one program goes to another program with the function modules they have . I dont see the value while importing.

export i_field1 to memory id 'bus_ind'

import val1 to memory id 'bus_ind'

i gave only the memory id as common name

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
670

Use as

export i_field1 to memory id 'BUS_IND'

import val1 from memory id 'BUS_IND'

7 REPLIES 7
Read only

Former Member
0 Likes
670

Hi Priyanka,

Try to use Capital letters for the memory id and check.

Regards,

ravi

Read only

Former Member
0 Likes
671

Use as

export i_field1 to memory id 'BUS_IND'

import val1 from memory id 'BUS_IND'

Read only

0 Likes
670

Please make sure that the variables used are the same name and defined exactly the same in both programs.

export i_field1 = i_field1  to memory id 'BUS_IND'.
import i_field1 = i_field1  to memory id 'BUS_IND'.

Regards,

Rich Heilman

Read only

0 Likes
670

BUSIND = I_ZMNETDTL-ZBUSINESS_IND.

EXPORT BUSIND TO MEMORY ID 'BANIN'.

IMPORT BUS_IND FROM MEMORY ID 'BAN'.

can i give like this ? i have to check this program in test and want to make sure before transporting. bus_ind are the local variables in two different function modules.

Read only

0 Likes
670

i have declared both the variables as of same type.

Read only

0 Likes
670

sorry i gave the same memory id too

Read only

0 Likes
670

It is very important that the names of the variables are exactly the same and the type is the same. Please use the syntax as I have provided above and make the names the same. It will work.

Regards,

Rich Heilman