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

pass values from program to program

Former Member
0 Likes
497

hi all,

prog1:

Data: D_MEMORY1(100) value 'Exportfromprog1'. - this is the value should be passed to the 2nd program.

EXPORT D_MEMORY1

D_MEMORY2 FROM 'EXPORTING THIS FROM PROGRAM1'

TO MEMORY ID 'MEMID1'.

prog2:

EXPORT D_MEMORY1 TO MEMORY ID 'MEMID1'.

IMPORT D_MEMORY2 TO D_MEMORY1 FROM MEMORY ID 'MEMID1'.

when i execute the first prog it executes it and the secound program simultaneously. but the values are not passing

how to pass values from program to program.

regards

karthe

1 ACCEPTED SOLUTION
Read only

former_member259807
Active Participant
0 Likes
468

Hi Karthe,

you are exporting to memory with id MEMID1 in prog 1, and the first thing you do in prog 2 is exporting to the same memory id. Get rid of the export in prog 2.

3 REPLIES 3
Read only

former_member259807
Active Participant
0 Likes
469

Hi Karthe,

you are exporting to memory with id MEMID1 in prog 1, and the first thing you do in prog 2 is exporting to the same memory id. Get rid of the export in prog 2.

Read only

former_member188827
Active Contributor
0 Likes
468

try:

prog1:

Data: D_MEMORY1(100) value 'Exportfromprog1'.

EXPORT D_MEMORY1 TO MEMORY ID 'MEMID1'.

prog2:

Data: D_MEMORY1(100) .

IMPORT D_MEMORY1 FROM MEMORY ID 'MEMID1'.

Read only

0 Likes
468

hi wallagh and abap user,

thanks for your response guys. its really worked the values passed sucessfully.

thanks& regards

karthe