‎2008 Oct 07 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
‎2008 Oct 07 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.
‎2009 Jan 15 2:58 PM
short answer: it is not overwritten, every instance has its own space for variables