How to unlock PERNR?

Question: I am processing some HR data for example, an employee data with the id : 3333. (Pernr)

When i'm processing that data, that employee object is locked. I need to unlock it to process a batch program, while processing that data.

It's something to do with enqueue and dequeue but i have no idea how to do it.

Any ideas?

Thanks in advance.

Answer:
When processing HR data, you need to lock it first, using Enqueue, after processing, unlock it, using Dequeue. Go to transaction BAPI, and do search for BAPI*ENQUEUE and BAPI*DEQUEUE. You should be able to find the function modules to do the trick.

Answer:
You can do it from transaction code SM12.

Answer:
I don't think it's a good idea to unlock something that is locked unless you are the one who manually set that lock. If the employee is locked is because some other user is modifying his data.

But if the employee is locked by yourself...let me guess...are you trying to update a standard infotype within your own infotype?? If answer is yes, a batch process to update the standard infotype is not the way because you are locking yourself! In this scenario you must use dinamic measures (T588Z).

Cheers
Copyright ?2007 - 2008 www.jt77.com