SAP Knowledge Base Article - Public

2589692 - Automatic Clearing Between Bank Advice Created via Web Service and Invoice is Not Working


You are creating a Bank Credit Advice via web service, using the Invoice ABC as reference, however you noticed that the system is not automatically clearing the items.


SAP Business ByDesign

Reproducing the Issue

  1. Go to Receivables Work Center.
  2. Go to Customer Accounts sub-view.
  3. Open the Account XX.
  4. Go to Open Items, here you can see that the Automatic Clearing did not occur.


The issue is occurring due one or more of the following root causes:

  • XML not correctly formatted.
  • Clearing Strategy configuration not correctly maintained.
  • Invoice isn't correctly referenced in the Bank Advice.
  • You are using the Business Partner as reference instead of using the Invoice.


First of all, you need to check if your XML is well formatted accordingly with the instructions in the Help Document Inbound Service ManageBankAdviceIn. You can use the example given in the Help Document. Also, you need to make sure that the XML has the invoice, which you are trying to clear with the Bank Advice as reference.

I.e. <PaymentTransactionDestinatedInvoiceReference>

If, you are using the Business Partner as reference, system will try to search in the Open Items of this Business Partner for an Open Item based on amount, with range of +- 5% of the Payment amount. In case there is a single Open Item found, them it will select that invoice, and in case of multiple it will not pick any Open Item.

If your XML is well formatted, or after correct your XML, you need to check if the clearing strategy is correctly configured in the system.

Also, under the Clearing Strategy you can flag the function "Allow Automatic clearing if No or Incorrect ref Number" if items not found using reference numbers are to be cleared automatically. This configuration means that in case of an unique found bases only on amount then post the Allocation automatically or not. This configuration specifies that if no item can be found using a reference number, the system is to try to identify an item using amounts specified in the memo line. If no amounts are specified in the memo line and the payment can be cleared with only one item, the payment amount is to be used for the search.

See Also

Help Documents:

  • Inbound Service ManageBankAdviceIn;
  • Configuration: Clearing Strategies;
  • 2490272 - Automatic Clearing of Bank Advices via Web Service and Open Invoices;


ManageBankAdviceIn, Web-Service, Bank Credit Advice, XML, Customer Account, Receivables, Invoice, Business Partner, Automatic Clearing, Clearing Strategie. , KBA , receivables , automatic clearing , xml , invoice , business partner , managebankadvicein , bank credit advice , customer account , clearing strategie , web-service , SRD-FIN-ACR , Receivables , Problem


SAP Business ByDesign all versions