SAP Knowledge Base Article - Public

3741961 - Pain.002 processing fails with “not allowed combination of header and items status codes” and IBC94 due to status mapping

Symptom

  • Error during processing of a PAIN.002 status report: “Not allowed combination of header and items status codes (after org), Consistency error.”
  • Error code IBC94 shown in Manage Bank Messages.
  • Payment document status is not updated to “Rejected by bank” after a partially rejected response.
  • The reply contains PART (Partially Accepted) at header level because at least one transaction in the file is rejected.
  • Connectivity and multi-bank connectivity configuration checks are successful.

Environment

  • Product: SAP S/4HANA Cloud Public Edition
  • Bank Communication (Public Cloud)

Reproducing the Issue

  1. Open the Manage Bank Messages app and display the application log for the incoming PAIN.002 status report.
  2. Observe the error “Not allowed combination of header and items status codes …, Consistency error” and IBC94 in the log.
  3. Open the Manage Automatic Payments app, navigate to the run where items were partially rejected, and check the payment status.
  4. Confirm the affected payment is not updated to “Rejected by bank” despite the reply indicating partial acceptance (PART).

Cause

  • In configuration activity “Map External Status to Internal Status” (ID 104313), the external status code PAIN_PART was mapped to the internal status BPA (Batch Partially Accepted by Bank). This mapping is invalid at header level. "Partially Accepted by the Bank" (BPA). This status is always set internally by the system if all relevant items have a final status (accepted or rejected) and at least one item has been accepted.

Resolution

  1. Open configuration activity “Map External Status to Internal Status” (ID 104313).
  2. Locate the mapping entry for external status code *PAIN_PART* used for PAIN.002 status processing.
  3. Change the internal status mapping from BPA (Batch Partially Accepted by Bank) to BSP (Batch partially processed).
  4. Save the configuration.
  5. Reprocess the affected PAIN.002 message in Manage Bank Messages or wait for the next incoming status to confirm that payment statuses update correctly.

See Also

Keywords

pain.002, PAIN002, ibc94, not allowed combination of header and items status codes, consistency error, PART, partially accepted, external to internal status mapping, Map External Status to Internal Status, 104313, PAIN_PART, BPA, BSP, batch partially processed, Manage Bank Messages, payment status not updated , KBA , FIN-FSCM-BNK-2CL , Direct Bank Communication (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions