Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Gateway Service with Custom BAPI for POST

$
0
0

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


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>