‎2012 Jun 19 10:16 AM
Hello Gurus,
Based on my understand, global variable can be shared / changed by function modules that shares the same function pool. So if function modules is being invoked simultaneously, the change on one global variable will impact the value of the same variable on the other instance of function module. Is my understanding right so that the developers shall never use a global variable in a Idoc inbound processing function module?
YN Mao
‎2012 Jun 19 12:54 PM
The global function group memory is shared within the same internal session. In parallel IDoc processing, you will have separate internal (likely even external) sessions, so there should not be a conflict.
See also http://help.sap.com/abapdocu_731/en/ABENMEMORY_ORGANIZATION.htm
However as a programming guideline, using global variables should be reduced as much as possible anyway.
Thomas
‎2012 Jun 19 12:54 PM
The global function group memory is shared within the same internal session. In parallel IDoc processing, you will have separate internal (likely even external) sessions, so there should not be a conflict.
See also http://help.sap.com/abapdocu_731/en/ABENMEMORY_ORGANIZATION.htm
However as a programming guideline, using global variables should be reduced as much as possible anyway.
Thomas