‎2011 Jul 13 7:50 PM
Hello friends,
i'm trying to pass a variable value throught programs (using submit method), but when the submit occurs, a new stack is created and i lose the variable value.
i tried transporting the value by using function modules and global variables, but it doesn't work at all.
It's good to remember that the submit is being taken under a stardard program and cannot be modified.
So, how can i solve this problem?
Regards,
Manuel
‎2011 Jul 13 8:27 PM
Hi Manuel,
SUBMIT opens a new internal mode (or internal session). More information here: http://help.sap.com/abapdocu_70/en/ABENINTERNAL_SESSION.htm
Global variables only exist in the internal mode where they were "created".
You may use ABAP memory to communicate: statements EXPORT ... TO MEMORY ID ... and IMPORT ... FROM MEMORY ID ... (you may also use shared memory).
I didn't understand your remark about the standard program, are you allowed or not to add ABAP statements in both programs?
BR
Sandra
‎2011 Jul 13 8:27 PM
Hi Manuel,
SUBMIT opens a new internal mode (or internal session). More information here: http://help.sap.com/abapdocu_70/en/ABENINTERNAL_SESSION.htm
Global variables only exist in the internal mode where they were "created".
You may use ABAP memory to communicate: statements EXPORT ... TO MEMORY ID ... and IMPORT ... FROM MEMORY ID ... (you may also use shared memory).
I didn't understand your remark about the standard program, are you allowed or not to add ABAP statements in both programs?
BR
Sandra