08-28-2006 2:56 PM
Hi,
I am updating an customized infotype using BDC in user exit ZXPADU02 based on status in infotype 0000, while updating the customized infotype i am getting error as 'Person is already being processed by user(myself). What is this error and how to rectify it ?
08-28-2006 9:21 PM
The User Exit ZXPADU02 gets triggered in the PAI of an infotype ie you are editing an infotype record of an employee.. so the employee's record is locked.. If you put a BDC in the User exit , you are in effect trying to update the same employee...hence the error message.. There are a couple of ways to get around such a scenario.. put the BDC in another Report program & call it in the User Exit with a SUBMIT.. AND RETURN statement.. or put the BDC in a function module & call the function as a separate TASK..
~Suresh
08-29-2006 5:27 AM
hi , I have already put the BDc in another program and calling it in User Exit, But I dont know about Submit and return , How to use those ?
thanks to suresh , but pls help me more on the above point.
08-29-2006 5:42 AM
before calling any EMP first u have to ENQUEUE the EMP after the Operations u have to DEQUEUE the EMP , in that case u cannt gett these kind of Errors.
Regards
Prabhu
08-29-2006 6:14 AM
when do u want me to call the enqueue function , ? If I am not wrong, the enqueue is already called by SAP for the same perner on 0000, only then while updating for the same perner we get this error.
pls tell me how to use that commit and return,
pls let me know if i am wrong, then I will try your solution too , but what is EMP ?.
thanks.