cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Return value for API_SALES_ORDER_SRV

werner_daehn
Active Contributor
0 Kudos
4,046

I have a couple of problems when it comes to ABAP Restful Programming Model. I'd like to use the sales order create as an example but actually my questions are more generic.

Maybe you can point me into the proper direction...

  1. When you create a sales order via BAPIs, you get a return information: What is the sales order number being created, planned delivery dates etc. This oData endpoint does not seem to return anything of that sort. The oData response does include a reference URI (does it?) and I can use that to read the created sales order. Does that work and is that the suggested approach?
  2. The oData protocol would support functions as well. Why is there no simple method to wrap each BAPI into an oData function? And if there is, why use POST calls and oData entities?
  3. Looking at the API Hub, only a tiny subsection of the required S/4Hana APIs are available. What about the others? Are they worked on? I do not see much progress here so wonder if other technologies are in the makings.
  4. If two API calls need to be executed in one transaction (COMMIT WORK) I would use an oData call with $batch. That is the only option, there is no oData API equivalent to the BAPI Commit, is there?

Appreciate your pointers!

Accepted Solutions (1)

Accepted Solutions (1)

Kangkana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please not that the response payload has the sales order number along with many other information

bala_sikkal
Explorer
0 Kudos
Hi Dears,

Answers (1)

Answers (1)

bala_sikkal
Explorer
0 Kudos

Dears, 

As per the API we have successfully created the sales order.

But in IDOC Process We have better Monitoring Functionality from VA02 under relationship Tab of GOS objects. So we can easily identify that this Sales order created from this Source System Via This IDOC at anytime.

Can we have the Same functionality While using this service API_SALES_ORDER_SRV that this Sales order is Created VIA this API with this DATA from a Third party system ?... to track the same via VA02/VA03 with Link. So that i can track anytime that this sales order from where via what ...