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
-
Go to the Application and User Management work center, in the OData Services view.
-
Change the filter to Custom OData Services.
-
Click on New, add a name to the service and open it.
-
Choose the business object Customer Invoice Request.
-
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:
Keywords
odata service, credit memo, customer invoice request, A2X, ManageCustomerInvoiceRequestIn , KBA , SRD-CRM-INV , Customer Invoicing , How To