You are uploading External Customer Invoice Request via the web service ManageCustomerInvoiceRequestIn. The system successfully uploads these External Customer Invoice Requests but you would like to know how the status e.g. To Be Invoiced can be influenced.
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 requests 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 you select code 1, 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 you do not pass the SettlementPriorityCode at all the system will create the External Customer Invoice Request with the status To Be Invoiced. So if you would just like to create the External Customer Invoice Request in status To Be Invoiced you have to remove the SettlementPriorityCode from your XML.
KBA , AP-CI , Customer Invoice Processing , How To