All,
I have created a GW Service with READ, QUERY and POST. READ & QUERY are using SAP delivered BAPIs, for POST I wrote a custom BAPI so I could include the commit.
When READ or QUERY fails (ie cannot find a record with the given params), I get a message back from the service, which is great ... the issue is around POST. If the object fails to create in the POST custom BAPI (say an equipment), technically the POST was successful, but the equipment failed to create, so I would like to not return a status_code 201 and status_reason Created.
What am I missing here?
Thanks, Mike