10-07-2008 11:39 AM
Hi all,
I have a function module and a public web service based on this function. The web service (and therefore the function module) can be called multiple times in parallel. This function uses a global variable defined within an Include of the according function group.
Now I set this global variable at call 1 of the function, and later it's set again at call 2 of the function. When the function of call 1 now reads the variable, does it still contain the original value of function call 1, or was it overwritten by function call 2 for all running instances of this function?
Thanks in advance for your help.
Kind regards, Matthias
10-07-2008 9:10 PM
Hi,
Put the function module in a separated program type report and then do a submit statement to that report. That way the memory will be destroyed.
01-15-2009 2:58 PM
short answer: it is not overwritten, every instance has its own space for variables