cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order (A2X) not showing detail when sales order is selected

inesmartins
Participant
0 Kudos

Hi,

We are trying to create a Fiori List Report app by using this API https://api.sap.com/api/API_SALES_ORDER_SRV/overview, but when we preview the app, a list of sales orders is displayed but when one is selected the screen came empty, the details of that sales order are not being displayed.

Has anyone had a similar problem? Because with some other API's we were able to see the detail, don't know why with this one is not working.

Thanks!

Enda
Product and Topic Expert
Product and Topic Expert
0 Kudos

adding tag 'S/4HANA Cloud for Sales'

gregorw
Active Contributor
0 Kudos

API_SALES_ORDER_SRV doesn't provide any annotations for Fiori Elements. Have you added them? Why do you want to create such an application as there is a standard Fiori App for Sales Order Tracking?

View Entire Topic
CE6
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Inês,
Why are you trying to build some Fiori App on top of https://api.sap.com/api/API_SALES_ORDER_SRV/overview ?

The Service is not build for UIs as there are also no description fields in the service.

Are there any features missing in the standard fiori app for Sales Orders? If yes, you can request new features via SAP Customer Influence for SAP S/4HANA Cloud Sales:
https://influence.sap.com/sap/ino/#/campaign/1170

You can enhance the Sales Order UI via Key User extensibility, you can find some examples here:
https://blogs.sap.com/2021/07/25/key-user-extensibility-in-sap-s4hana-cloud-sales/

You can also use developer extensibility to extend the existing Sales Order Application. You can find some example here:
https://extensibilityexplorer.cfapps.eu10.hana.ondemand.com/ExtensibilityExplorer/#/ExtScenario/2851

Best regards,
Christian

inesmartins
Participant
0 Kudos

Hi,

Yes, i need to enhance my Sales Order App.
Thanks a lot for the links, they have all the information that i need!

Regards,
Inês Martins

inesmartins
Participant
0 Kudos

Hello!

For example i'm trying to use the API with a PATCH request:

/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrderItemPrElement(SalesOrder='12',SalesOrderItem='10',PricingProcedureStep='145',PricingProcedureCounter='1')

And first i'm sending a GET request to fetch the CSRF Token but i'm continue getting the error: CSRF token validation failed.
I don't know why the error persists.
Also i tried on POSTMAN an got success in the request but nothing was updated.

Thanks,
Inês Martins

gregorw
Active Contributor
0 Kudos

Hi Inês,

is your client storing the cookies that are set when you do the CSRF request? You have to send them with the PATCH beside the CSRF token.

CU
Gregor