‎2009 Oct 13 4:25 PM
Hi guys,
I have a problem with an ENQUEN_EMPRELE (enqueue employee)...
I make a BDC call, and after that a need to enqueue that employee because i need to make other actions in the employee... But a FM ENQUEUE_EMPRELE return that the employee is locked..
Is it a syncronism problem?
How can i solved it?
Thanks in advance,
LMS
‎2009 Oct 13 4:44 PM
Hi,
Try using this Function Module "BAPI_EMPLOYEE_ENQUEUE" for Enqueue and BAPI_EMPLOYEE_DEQUEUE for dequeue
Thanks,
Arunsri B.S
‎2009 Oct 13 5:00 PM
The FM BAPI_EMPLOYEE_ENQUEUE calls ENQUEUE_EMPRELLE... I think it will happen the same...
The strange of the case it that, this always worked...
‎2009 Oct 13 5:08 PM
Please check the spelling of your FM. You have spelled it three different ways in this thread. Do you mean ENQUEUE_EMPREL ?
If so, try specifying
_WAIT = 'X'Rob
Edited by: Rob Burbank on Oct 13, 2009 12:09 PM
‎2009 Oct 13 5:15 PM
That's an ideia but my problem in the FM DEQUEUE... and the _WAIT parameter is not there...
I'm trying the parameter _SYNCHRON.... I think maybe this parameter is related with synchronism...
‎2009 Oct 13 5:21 PM
You're not helping yourself out here. First you said that the problem was with the enqueue function. Now it's the dequeue.
Please try to thaink about what you want and explain it without contradicting yourself before posting.
In any event, if you are trying to lock an object that was locked in the BDC process, I would do what I suggested earlier. It should wait until the earlier lock is released and then lock it again for your purposes.
Rob
‎2009 Oct 13 5:25 PM
Rob,
Sorry for the confusion... You're right!
As i said in the last post, the problem is that, before a BDC call, i am calling the FM DEQUEUE_EMPRELLE.
What is happening is that, when the BDC is called, it returns that the employee is still blocked...
Once more, sorry and thanks for the help.
Luis
‎2009 Oct 13 5:37 PM
Please see:
[Example for Lock Objects|http://help.sap.com/erp2005_ehp_04/helpdata/EN/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm]
Rob