SAP Knowledge Base Article - Public

3372905 - Payment created through the web service ManageCashPaymentOrderIn is not automatically clearing the invoice


You are using the web service ManageCashPaymentOrderIn to create a payment and you expect the system to automatically clear the Invoice with this payment, however, the invoice and the payment are still open.


SAP Business ByDesign

Reproducing the Issue

  1. Customer invoice is created in the system
  2. Payment is created using the Web Service ManageCashPaymentOrderIn 
  3. Then, when checking the Customer Accounts, you notice that the Invoice and the payment are still open
  4. Go to the Receivables work center.
  5. Go to the Customer Accounts view
  6. Open the relevant Customer Account. 
  7. Search for the relevant Invoice 
  8. The Invoice is still Open, but you can find a Clearing ID in the Clearing ID column.
  9. The status of the clearing is Proposed


System behavior



Different clearing scenarios can happen when using the web service ManageCashPaymentOrderIn, below, it is explained how the system works in each scenario.

  • If the payment amount is equal to invoice amount, then, the system will clear the invoice successfully.

  • If the payment amount is less than invoice amount, then, the system will Partially clear the invoice.

  • If the payment amount is greater than invoice amount, then, during the clearing, system checks whether the net amount is greater than the gross amount or not, if yes then it gives an error. So, clearing goes in proposed status and both payment and invoice documents remains in 'Open' status.

This is the standard system behavior.

See Also

Web Service APIs in SAP Business ByDesign


webservice, ManageCashPaymentOrderIn, Absolute value of assigned amount too high, Posting not possible; clearing  inconsistent,  manual payments  , KBA , AP-PAY , Payment Processing , Problem


SAP Business ByDesign all versions