‎2010 Jan 25 8:53 AM
Hi all,
I have created a BAPI which is working well.
However, if I call it more than one times at the same times through RFC (php call), it doesn't work correctly.
Can anyone help me about concurrent access like this ?
Thanks,
Smoltok
‎2010 Jan 25 9:28 AM
Hi,
Is your BAPI updating some table ?
if so use lock object, consurrent read will not give any error.
Regards
Bikas
‎2010 Jan 25 9:10 AM
Therefore, a solution would be to have the possibility to make some sort of lock access... but how ?
‎2010 Jan 25 9:28 AM
Hi,
Is your BAPI updating some table ?
if so use lock object, consurrent read will not give any error.
Regards
Bikas
‎2010 Jan 25 9:39 AM
Exactly, my BAPI update some table.
I have just created and activated one lock object.
Could you have example of how to use the enqueue/dequeue system ?
‎2010 Jan 25 9:44 AM
Hello,
Before the call to your BAPI, call the function module ENQUEUE_<name of the lock object> and pass the parameters to locjk the specific entry. Now all your BAPI amd once done unlock the entry by call the function module DEQUEUE_<name of the lock object>.
Regards,
Sachin
‎2010 Jan 25 11:16 AM
Is it possible to lock many entries at the same times ? with a widlcard caracter for instance ,
‎2010 Jan 25 3:54 PM
Yes, and you don't need to create another (custom) lock object. You can use ENQUEUE_E_TABLE and specify the table name as well as the full or partial key (in the VARKEY field) in order to lock the records and then DEQUEUE_E_TABLE or DEQUEUE_ALL to release the lock(s).