2010 Sep 08 6:04 AM
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
2010 Sep 08 6:53 AM
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.
hi wallagh and abap user,
thanks for your response guys. its really worked the values passed sucessfully.
thanks& regards
karthe
2010 Sep 08 6:53 AM
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.
2010 Sep 08 7:09 AM
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'.
2010 Sep 08 8:32 AM
hi wallagh and abap user,
thanks for your response guys. its really worked the values passed sucessfully.
thanks& regards
karthe
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |