‎2008 Apr 10 9:01 PM
Hi,
I' am using call transaction to update certain data of employees (PERNR). After that I' am trying to lock the same pernr. But sometimes I' am not able to lock the PERNR. The reason it seems the transaction in call statement is still executed. How to complete the execution of call transaction and then proceed further?
Thanks in advance.
Aravind
‎2008 Apr 11 3:10 AM
Hi Aravind, 1.Which update mode you are using whether it is A or S. If you use Update mode 'A' Asynchronous Update. It will be ok. 2.How are you locking the employee? in the same transaction call when updating infotype itself , are u locking ? If yes, I think it is somewhat problematic. Instead update the infotype and again use Call transaction to lock the employee. Regards, Venkat.O
‎2008 Apr 11 3:10 AM
Hi Aravind, 1.Which update mode you are using whether it is A or S. If you use Update mode 'A' Asynchronous Update. It will be ok. 2.How are you locking the employee? in the same transaction call when updating infotype itself , are u locking ? If yes, I think it is somewhat problematic. Instead update the infotype and again use Call transaction to lock the employee. Regards, Venkat.O
‎2008 Apr 11 8:09 PM
Hi Venkat,
Right now, I' am using synchronous mode of update.
It is a program and the 'call transaction' is done first which will update infotype records and immedietly after call transaction I' am locking the employee.
Also can you let me know why you felt asynchronous mode will work aganist synchronous mode.
Thanks in advance.
Aravind
‎2008 Apr 11 9:07 PM
Hi Aravind, When I gave message i thought differently. Synchrounous update only right, because the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors. I still want to know whether you are locking the the employee no after updating infotype or locking the record of the infotype. because we have lock indicator for infotypes. Regards, Venkat.O
‎2008 Apr 15 2:51 PM
‎2009 Oct 27 2:59 AM
‎2008 Apr 11 10:01 AM
HI
ther's nothing related to transaction
use FM -BAPI_EMPLOYEE_ENQUEUE
to lock the pernr before updating the employees information
then use call transaction method.
Please reward points
‎2008 Apr 11 11:05 AM
Are you locking the pernr or locking the record of pernr for the infotype ? Regards, Venkat.O