Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ENQUEUE / BAPI_PERSDATA_CHANGE / DEQUEUE from .Net using WebServices

Sorry for a long post, but I thought it would be necessary for some one to really help me.

-

-


I am trying to change Employee Personal Data by calling BAPI_PERSDATA_CHANGE

from .Net through the WebService created by using Function Module-> WebService Wizard.

I know that I must call the following three BAPI's in that sequence:

BAPI_EMPLOYEE_ENQUEUE

BAPI_PERSDATA_CHANGE

BAPI_EMPLOYEE_DEQUEUE

-

-


First problem (which is solved, thanks to André) was that I got the error

"The employee/applicant is not locked yet".

The external call from .Net to BAPI_EMPLOYEE_ENQUEUE did not lock the record (as seen in SM12), however, if I call BAPI_EMPLOYEE_ENQUEUE in SE37, it did lock the record as seen in SM12.

As outlined in the following whitepaper of Juergen and André, I changed the Webservice to use State Oriented Communication.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/004975cc-2a7f-2a10-f8a8-82b90ff07396

Now the record remains locked so that I am able to change the Data by BAPI_PERSDATA_CHANGE.

-

-


Now I have the second part of the problem:

When I call BAPI_EMPLOYEE_DEQUEUE in the same session, instead of removing the lock entries (as seen by SM12), it adds one more entry, and the employee remains locked. So the question now is - how to successfully Dequeue it?

Here is a copy of entries after Enqueue, change, and Dequeue:

800 MZZZZZB 13:26:31 E PLOGI 80001CP00010358 0 1

800 MZZZZZB 13:26:31 E PREL 80000001273############################## 1 1

800 MZZZZZB 13:27:07 E BUT000 8000000002083 0 1

Can any one help how to unlock Employee record by calling BAPI_EMPLOYEE_DEQUEUE from .net environment ?

Thanks a lot...

-

-


P.S.

In principle, what we need to do is exactly same as in following link, but without using IBM Websphere:

http://publib.boulder.ibm.com/infocenter/wpfhelp/v6r0m2/index.jsp?topic=/com.bowstreet.designer.doc/designer/sap_transaction.htm

-

-


Best regards,

MB

Former Member
Not what you were looking for? View more on this topic or Ask a question