Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Variables in Includes and parallel processing of the same function module

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.

Former Member
0 Kudos

short answer: it is not overwritten, every instance has its own space for variables