02-28-2011 7:33 AM
Hi ,
I need some guide how to lock custom function e.g Z_FUNC_CALSALR, the scenario will be like this:
When ever user run program A that call this function , other user which also running Program B that call this function will be paused until the function release from lock status.
Appreciate , If any one can suggest me the work around on this.
THanks
Badz LEe
02-28-2011 8:16 AM
Hi,
Maybe you could be use a parameter Ztable.
The FM Z_FUNC_CALSALR set a flag on this table at start and reset this flag at end.
Program B has to check this flag to know if the function is running.
Regards,
Giuseppe
02-28-2011 8:16 AM
Hi,
Maybe you could be use a parameter Ztable.
The FM Z_FUNC_CALSALR set a flag on this table at start and reset this flag at end.
Program B has to check this flag to know if the function is running.
Regards,
Giuseppe
02-28-2011 10:04 AM
Hi,
Use FM:RS_ACCESS_PERMISSION to lock/Unlock your custom function module,once your function module get locked any other person could not suppose to use the same so throw a message in this case ,after every call Unlock it agian by calling same function module.
Thaks and regards,
Sree.
02-28-2011 11:55 AM
If you want to lock a function module then you have two use these two function modules
DEQUEUE_ESFUNCTION
ENQUEUE_ESFUNCTION
Pass FUNCNAME = you function module name to ENQUEUE_ESFUNCTION for locking and DEQUEUE_ESFUNCTION for unclocking.
Use these functions in your function module or outside it as required.