05-02-2006 11:42 AM
Hello all.
I have a program wich uses the transaction PA20 with the infotype 2011 to insert time events.
The problem is that if i have the employer for wich i am inserting time events opened in transaction PA30 i cant insert time events since SAP is blocking the employer. Is there any way to unblock the employer so i can insert the time events?
I've tried DEQUEUE_EPPRELE but i had no success.
Thank you
05-02-2006 11:44 AM
05-02-2006 12:17 PM
Hi Amit.
I tried using that function but it always returns 'X' in IS_OK no matter what emplyer number i use, but in my program it still says the employer is blocked.
Thank you
Nuno Silva
05-04-2006 11:34 AM
05-04-2006 11:52 AM
05-04-2006 1:31 PM
Hi,
Ideally, if the employee is locked via PA30, you should not try to ulock it via the Program.. by doing so, you would be defeating the very purpose of the lock.. check for the lock entries in in SM12 & advise the user who locked the employee in question to complete the transaction and then run your program.
Regards,
Suresh Datti
05-04-2006 11:51 AM
Hi Nuno,
Try this func laso, to unlock the pernr.
* Unlock Pernr
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = dt_0006-pernr.
Thanks&Regards,
Siri.