Hi Expert,
I have been trying to create a Direct Debit bank advice for supplier invoices. But I am getting an inconsistent response.
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
<soapenv:Header/>
<soapenv:Body>
<glob:BankAdviceBundleMaintainRequest_sync>
<BasicMessageHeader>
<ID>2</ID>
</BasicMessageHeader>
<BankAdvice>
<actionCode>01</actionCode>
<CompanyID>AR10</CompanyID>
<ExternalAdviceID>110235</ExternalAdviceID>
<PostingDate>2020-11-07</PostingDate>
<AdviceDate>2020-11-07</AdviceDate>
<AccountDebitIndicator>true</AccountDebitIndicator>
<PaymentFormCode>04</PaymentFormCode>
<EffectivePaymentAmount currencyCode="USD">2500</EffectivePaymentAmount>
<HouseBankAccountInternalID>ARCORP</HouseBankAccountInternalID>
<BusinessPartnerInternalID>100008</BusinessPartnerInternalID>
<PaymentExplanationItem>
<ID>1</ID>
<CompanyID>AR10</CompanyID>
<BusinessTransactionDocumentDate>2020-11-07</BusinessTransactionDocumentDate>
<BusinessPartnerInternalID>100008</BusinessPartnerInternalID>
<NetAmount currencyCode="USD">2500</NetAmount>
<PaymentTransactionInitiatorInvoiceReference>
<ID>6684</ID>
<TypeCode>004</TypeCode>
</PaymentTransactionInitiatorInvoiceReference>
<PaymentTransactionDestinatedInvoiceReference>
<ID>6684</ID>
<TypeCode>004</TypeCode>
</PaymentTransactionDestinatedInvoiceReference>
<TotalDeductionAmount currencyCode="USD">2500</TotalDeductionAmount>
<ItemPaymentDifferenceExplanationListCompleteTransmissionIndicator>true</ItemPaymentDifferenceExplanationListCompleteTransmissionIndicator>
</PaymentExplanationItem>
<PaymentExplanationNote>
<Note languageCode="EN">2500</Note>
</PaymentExplanationNote>
</BankAdvice>
</glob:BankAdviceBundleMaintainRequest_sync>
</soapenv:Body>
</soapenv:Envelope>
Response:
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header/>
<soap-env:Body>
<n0:BankAdviceBundleMaintainConfirmation_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:LEE:/1SAI/TAS038B4A1D1F30A97D12D4:804">
<BankAdvice>
<ID>00000000000000000000000000000002764</ID>
<UUID>00163e84-55a0-1edb-8cc5-861556c65e2a</UUID>
</BankAdvice>
<Log>
<MaximumLogItemSeverityCode>2</MaximumLogItemSeverityCode>
<Item>
<TypeID>400(/FOP_DUE_CLR_BL/)</TypeID>
<CategoryCode>INC.BOI</CategoryCode>
<SeverityCode>2</SeverityCode>
<Note>Posting not possible; clearing inconsistent</Note>
</Item>
</Log>
</n0:BankAdviceBundleMaintainConfirmation_sync>
</soap-env:Body>
</soap-env:Envelope>
Result:

Payment Task says:
The supplier payment was not automatically cleared by the system, since the reason for the payment was unclear. References to invoices may be wrong or missing. You can change the assignment of invoices to the payment or you can accept the payment as payment on account.
Payment Advice Task Says:
An overdue advice is not confirmed. Contact the customer/supplier. In the case of a bank advice, contact your bank.
Please correct me how to post bank advice automatically.