I have recently started using OData V4 to provide REST services for SAP-external systems.The service should provide the call to a validation function with a given set of input parameters and should return the input structure plus a 'VALIDE' parameter and a table with potential messages.
I have chosen use to the ‚action import‘ mechanism and created a navigation property to the message structure in the model definition.
How do I enforce the expanded view of the result? Unfortunately, an explicit ‚expand‘ in the URI is not permitted for POST methods.
Any help is highly appreciated!
How have you built your OData V4 services ? Have you used a V4 Service Binding and the ABAP RESTful Application Programming Model ?
Or are you using a code based implementation using the SAP Gateway OData V4 framework API's?
What is the release you are working on ?
NW 7.5<x> SP <YY> , SAP S/4HANA 20<xx> FSP<Y>
This feature is available as of SAP NetWeaver AS ABAP 7.55 SP00.
According to the following note it is also available in SAP NetWeaver AS ABAP 7.52 SP09, but has unfortunately not been downported to 750.
You can test this in a system with the appropriate release by using a POST request on the following URL
and using the following payload:
"TeamID" : "TEAM_01",
"Budget" : 700.00