on 12-23-2008 12:08 AM
Hello,
Iu2018ve released the BAPIs GOODS_MOVEMENT_CREATE and BAPI_TRANSACTION_COMMIT as two operations in one group as Web Service. I need BAPI_TRANSACTION_COMMIT to make the changes persistent.
Now, when Iu2019m calling the GOOD_MOVEMENT BAPI first and then BAPI_TRANSACTION_COMMIT separately, nothing will happen. I think this is because I have only a stateless web service. In my creation wizard for the Web Service I found no option to create a stateful service.
I found this thread , but I cannot follow his solution at the end.
Is there another way how I can commit my transaction?
Thank you for your help!
HP
Hi HP,
In order to solve this problem you need to write a class with two methods in it. One method should be for calling the BAPI GOODS_MOVEMENT_CREATE and the other BAPI for commit i.e., BAPI_TRANSACTION_COMMIT. The trick is to use the same RFC connection object(JCO) for both the method calls. This can be done by making the connection object as public static.
Then you can expose a stateless webservice with these two operations in it.
Hope this helps.
Thanks,
Soujanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it would be better to make a proxy and call the BAPI inside it.
Instead of using BAPI_TRANSACTION_COMMIT, following statement should be used.
CALL METHOD cl_soap_commit_rollback=>commit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could create an RFC, call the BAPI and BAPI_TRANSACTION_COMMIT in this function module and expose this RFC as a Web Service
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.