SAP Knowledge Base Article - Public

3683686 - BO Action Cancel not Working for PointOfSaleTransaction OData

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: 

  1. Go to the Application and User Management work center.
  2. Open the OData Services view.
  3. Filter by Custom OData Services.
  4. Find the OData Service ABC (Where ABC Represents the Service Name of an OData Service for the PointOfSaleTransaction BO).
  5. Highlight hte OData Service and click on Edit.
  6. 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

Product

SAP Business ByDesign all versions