SAP Knowledge Base Article - Public

2686825 - Unable to Use OData Services to Create Credit Memos

Symptom

You created a custom OData service and added the business object Customer Invoice Request to create new credit memos, but you noticed that the field Type Code (field that contains the document type code "1463" for Manual Credit Memo) is not enabled to Create or Update.

Environment

SAP Business ByDesign.

Reproducing the Issue

  1. Go to the Application and User Management work center, in the OData Services view.
  2. Change the filter to Custom OData Services.
  3. Click on New, add a name to the service and open it.
  4. Choose the business object Customer Invoice Request.
  5. Add the Type Code field to the service and see it is not enabled to Create or Update.

Cause

The Type Code field is not write enabled, because its data is automatically determined based on other criteria, so it cannot be passed in the payloads by external sources.

Resolution

The field ReceivablesPropertyMovementDirectionCode decides whether the document should be a credit memo or invoice. The field is not yet enabled for OData usage, but it is available in the A2X service ManageCustomerInvoiceRequestIn.

The enablement of the field ReceivablesPropertyMovementDirectionCode in OData services is planned for a future release of the system.

See Also

The documentation about the A2X service ManageCustomerInvoiceRequestIn can be found in the link below:

Inbound Service ManageCustomerInvoiceRequestIn

Keywords

odata service, credit memo, customer invoice request, A2X, ManageCustomerInvoiceRequestIn , KBA , SRD-CRM-INV , Customer Invoicing , How To

Product

SAP Business ByDesign 1802 ; SAP Business ByDesign 1805 ; SAP Business ByDesign 1808 ; SAP Business ByDesign 1811