Application Development and Automation 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: 
Read only

Problem with employee enqueue

Former Member
0 Likes
1,109

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

7 REPLIES 7
Read only

Former Member
0 Likes
948

Hi,

Try using this Function Module "BAPI_EMPLOYEE_ENQUEUE" for Enqueue and BAPI_EMPLOYEE_DEQUEUE for dequeue

Thanks,

Arunsri B.S

Read only

0 Likes
948

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...

Read only

0 Likes
948

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

Read only

0 Likes
948

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...

Read only

0 Likes
948

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

Read only

0 Likes
948

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

Read only

0 Likes
948

Please see:

[Example for Lock Objects|http://help.sap.com/erp2005_ehp_04/helpdata/EN/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm]

Rob