Symptom
An External Customer Invoice Request is being uploaded via the web service ManageCustomerInvoiceRequestIn. The system successfully uploads these External Customer Invoice Requests, but it is desired to know how the status e.g. To Be Invoiced can be influenced.
Environment
SAP Business ByDesign
Resolution
The SettlementPriorityCode influences the creation and release of an invoice from an invoice request. By setting the settlement priority code the creation of a customer invoice is triggered for the customer invoice request.
If the code is 2 then the system will first check if a down payment request exists before invoicing the invoice request. If a down payment exists, the customer invoice request will be created with the status To Be Invoiced. If it does not the system will directly create an invoice and the External Customer Invoice Request will have the status Processed.
If code 1 is selected, if the invoice request is consistent an invoice will be created and released immediately without checking for a down payment request and the External Customer Invoice Request will have the status Processed.
If the SettlementPriorityCode is not passed at all the system will create the External Customer Invoice Request with the status To Be Invoiced. So, if it is needed to create just the External Customer Invoice Request in status To Be Invoiced, the SettlementPriorityCode have to be removed from the XML.
Keywords
Release; Invoice; Web Service; automatic; Invoice Request , KBA , AP-CI-CIR , Customer Invoice Request , How To