on 06-22-2008 1:27 AM
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.
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:
-
-
Best regards,
MB
Hi MB,
I would try to analyze the information that is send via the Returncodes of the function modules.
BAPIRETURN1
I would also try just to call the ENQUEUE and DEQUEUE Web Service without trying to update the data.
Do you have ABAP development authorizations ?
A solution might also be to wrap all 3 function modules in a third remote enabled funciton module that itself is published as a web service.
This way you will achieve a stateless communication.
Best regards,
André
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried ENQUEUE and DEQUEUE Web Service without trying to update the data.
Dequeue did not do any thing. Could there be some SAP Note I need to look at?
I will search that any way... Only solution seems to be to wrap 3 calls in a custom ABAP function.
That is not a preferred solution. SAP as a company needs to do some thing about this (IMHO).
Thanks for the support.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.