Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata


This wiki intends to show the customizing to review in the system when this error is raised.


While posting in FI an invoice from MM for example using MIRO or reversal using MR8M you receive the error MESSAGE_TYPE_X in function module BALANCE_SUBTRACT.


The system creates a posting of an invoice from materials management in which two different document types are involved.

The following customizing setting must be reviewed:


SAP Reference IMG

>Financial Accounting (New)
>General Ledger Accounting (New)
>Business Transactions
>Document Splitting
>Extended Document Splitting

In the "Define Document Splitting Rule" Customizing step, on the detail screen of the rule used for this business transaction variant used for the main document in MM for example 0300/0001, under "Further subdivide document", select "For Each Logical Transaction".



Note that the document type of the main document from MM and the relevant settings in document splitting are used for all documents that are posted together within an LUW – for example, including additional material ledger documents that were posted with a different document type. It is assumed that the additional material ledger documents already contain all the relevant account assignments in the entry view and that no further processing is needed due to the document split.

Related Note

SAP Note 1884540 MESSAGE_TYPE_X for BALANCE_SUBTRACT for invoices from MM

SAP KBA 1712488 - Creation of separate documents in an LUW (logical unit of work)