on 03-31-2016 3:05 PM
Hi,
I am trying to create a Sales Order through OData service.
I tried creating with Gateway Client and Firefox REST client.
The Response is same. 201 - Created.
But nothing being created in the backend ERP system.
Please help.
Thank you.
Ravinder.
Hi Ravinder,
If you implemented the oData service using the standard BAPI then the commit is not being issued. SAP BAPIs never issue the commit by themselves. So, inside your service implementations, after calling the BAPI, you have to call function BAPI_TRANSACTION_COMMIT.
I assume that the code above wont work because is a different LUW.
/iwbep/if_sb_dpc_comm_services~commit_work(
EXPORTING
iv_rfc_dest = 'ERP001' ) .
Regards,
Leonardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ravinder,
Are you calling COMMIT WORK after successful SO Creation ?
Please call the below code by passing the RFC Destination which is pointing to ERP System.
/iwbep/if_sb_dpc_comm_services~commit_work(
EXPORTING
iv_rfc_dest = <destination> ) .
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
Yes I feel that it is something related to COMMIT WORK, because when I am trying to create sales order with BAPI Function it is being created successfully. But When it comes to OData the response is 201 Created. But nothing happened.
I tried with your piece of code, but not succeeded.
@Emanuel Affatati (SAP NGW hub is not embedded. ERP and GW Hub are in different boxes)
This is how my systems are. I have ERP installed in one box and Netweaver Gateway Hub in another box. I created OData service in the ERP system to create sales order and I registered that service in NW Gateway hub system.
URL like this:
http://<host>:<port>/sap/opu/odata/sap/zgw_create_hybris_so_srv/CreateHybrisSOSet
Response is 201 Created, but Sales order is not being created.
Thanks you.
Hi Ashwin,
ERP | NGW Hub | |
RFC Destination | NGW001 | ERP100 |
System Alias | NGW | ERP |
NGW001 is the RFC destination created in ERP which points NW Gateway Hub.
ERP001 is the RFC destination created ti NW Gateway Hub system which points ERP system.
Which RFC destination name I need to provide.
My OData service code in in ERP system.
Thank you
Hello Ravi,
Basically you need to pass the RFC Destination used while creating the System Alias in GW Hub. Which in intern was used to add the service and activate in /iwfnd/maint_service in GW Hub
So please check the RFC Destination associated with your above service and pass accordingly in the code and check.
Regards,
Ashwin
Ravinder,
Your question is not clear.
Do you have develop a custom odata service, or is it a standard one?
Have you installed the SAP NW GW in a Hub o in an Embedded environment?
Best Regards,
Emanuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.