Symptom
In an OData Service created for the PointOfSaleTransaction Business Object, you are trying to use the BO Action 'Cancel', but the corresponding Point-of-Sale Transaction is not cancelled.
Environment
SAP Business ByDesign
Reproducing the Issue
In an OData Service, the correct Function was added:
- Go to the Application and User Management work center.
- Open the OData Services view.
- Filter by Custom OData Services.
- Find the OData Service ABC (Where ABC Represents the Service Name of an OData Service for the PointOfSaleTransaction BO).
- Highlight hte OData Service and click on Edit.
- With the OData Service open, click the Function Imports tab.
Here, a Function was correctly added as POST for BO Action 'Cancel'.
However, when sending an OData POST request with the intent of cancelling a Point-of-Sale Transaction, the system returns a 200 HTTP code ('OK') but the transaction is not cancelled.
Cause
This Function is not supported by the OData services for PointOfSaleTransaction. The cancel option is shown under the 'Function Imports' of the custom OData Service because the Action 'Cancel' is released as PSM in the backend, but the cancellation is not possible through OData currently.
Resolution
This is the expected system behavior.
Keywords
OData, webservice, point-of-sale, POS, transaction, function, cancel, cancellation, import, BO action. , KBA , AP-POS-POS , Point-of-Sale Transaction , Problem
SAP Knowledge Base Article - Public