‎2009 Jun 29 2:24 PM
Dear experts,
Hope you had a good weekend.
I'm trying to communicate two programs, in the sense, I'm calling an executable program from an other executable program using 'submit'.
Now my requirement is that, based on the return parameter of the called program the calling program has to behave differently.
So I thought of exporting a variable from the called program and importing the same variable in the calling program and based on that value, I can manipulate the logic.
My only requirement now is can any one provide me with the synatx on how to export a variable(data x type c) from the called program and import the same.
In short syntax for export and import to memory.
Thanks for all.
-Amit
‎2009 Jun 29 2:47 PM
Hi Amith,
<li>In the Called program EXPORT statement has to be used to send the variable value to ABAP memory.
<li>In the Calling program IMPORT statement has to be used to to get the value from ABAP memory.
EXPORT <field> TO MEMORY ID 'TOABAP' "TOABAP is uniq memory id.
Thanks
Venkat.OIMPORT <field> FROM MEMORY ID 'TOABAP' "TOABAP is uniq memory id.
‎2009 Jun 29 2:32 PM
Same parameters must be defined in both program. Sytax will be like below.
Export <parameter> to memory id `XX`.
Import <parameter> from memory id `XX`.
Try to give a unique memory ID.
Edited by: Gungor Ozcelebi on Jun 29, 2009 3:32 PM
‎2009 Jun 29 2:47 PM
Hi Amith,
<li>In the Called program EXPORT statement has to be used to send the variable value to ABAP memory.
<li>In the Calling program IMPORT statement has to be used to to get the value from ABAP memory.
EXPORT <field> TO MEMORY ID 'TOABAP' "TOABAP is uniq memory id.
Thanks
Venkat.OIMPORT <field> FROM MEMORY ID 'TOABAP' "TOABAP is uniq memory id.
‎2009 Jun 29 2:50 PM
Press F1 / Search the Google/SCN ..you get lot of posts on this.