Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unblocking employer

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

Hi nuno,

1. HR_ECM_DEQUEUE_PERNR

regards,

amit m.

0 Kudos

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

0 Kudos

Hello

Anybody got any other ideas on this?

Thank you

Nuno Silva

0 Kudos

Hi Nuno,

Try this fm:

HRCM_EMPLOYEE_DEQUEUE

Regards,

Ravi

0 Kudos

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

Former Member
0 Kudos

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.