on 04-12-2007 8:58 PM
Hello All,
I am trying to create a standard sales order using a Web Service and having some problems.
I am using BAPI_SALESORDER_CREATEFROMDAT2 and it is working EXCEPT that it needs to be followed immediately by a BAPI_TRANSACTION_COMMIT for the sales order to be saved in the database.
There doesn't seem to be any session state being saved between my first request and my second so the COMMIT doesn't work.
Can anybody tell me how session state is maintained in Web Services on the NetWeaver platform?
Or is there another SOA service that will do the COMMIT as part of its operation?
Any help would be GREATLY appreciated!
Thanks
sorry, this post was accidentially.
Message was edited by:
Anton Wenzelhuemer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Randy i faced a similar problem some time back.
Since thie BAPI works only when the COMMIT is called the wrapper should take care of this as mentioned above.
Here is the tutorial which will depicts how to wrap an RFC to make it as a webservice.
Easiset solution is if you can somehow get hold of the ESA service
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Many thanks for this Karthik!
Why can't I get hold of the ESA service? I try to log on to the site but it refuses me.
On my system the Web Service Creation Wizard (depicted in the example you sent me) times out so I can't actually create the service.
There's a support package for this but I've never installed one so I am stuck until I can find someone here who knows how to do it.
Isn't this fun?
Hi Randy,
If you install the SAP ERP ES (enterprise service pack), you will get a ready list of standard list of enterprise services. Out of these, the enterprise services for creating/editing sales order are also there. To check out, please go to the Enterprise Service Workplace https://www.sdn.sap.com/irj/sdn/esworkplace and check the Ent. Services at http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/smdisplay.asp?id=7AB0BCC20B1611DA1...
Regards
Nilay
Hi Randy,
I assume you have been able to enter the ES Workplace successfully. I also faced the same "timeout" problem this morning. This is a temporary problem as I have access these definitions many time in the past. So, either you can retry or access the Enterprise service directly through the WebGUI http://erp.esworkplace.sap.com/sap/bc/gui/sap/its/webgui?sap-system-login-basic_auth=X&sap-client=80.... You can also try the Enterprise Service Registry http://xi.esworkplace.sap.com:50200/webdynpro/dispatcher/sap.com/tcesiesperui/Menu.
Regards
Nilay
Hi Randy,
One quick workaround can be to create a wrapper around BAPI_SALESORDER_CREATEFROMDAT2. The wrapper after call to BAPI will call commit work.
Expose this wrapper as web service and your purpose will be solved.
Regards,
Gajendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.