SAP Knowledge Base Article - Public

3152742 - Error DEFTAX_MX026: "DefTax: Do not post invoice with both Debit and Credit Cust/Vend lines"

Symptom

Error: "DefTax: Do not post invoice with both Debit and Credit Cust/Vend lines" (Message no. DEFTAX_MX026). This error may appear in different applications after activating deferred tax solution.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

The error appears when using applications like Post Outgoing Payments, Post Incoming Payments or other related applications. The documents you are trying to post may have:

  • invoice from one supplier with down payment from other supplier
  • two or more different customers 
  • two or more different suppliers

Cause

In CE2011 release, development team has implemented new checks during posting to avoid inconsistency later during fiscal period closing process. If you mix different suppliers/customers in one payment then tax transfer procedure will not understand who exactly should pay tax, those who is in invoice or those who pays if you use deferred taxes.

The error DefTax: Do not post invoice with both Debit & Credit Cust/Vend Lines (message no: DEFTAX_MX026) would occur under below circumstance: 

  • invoice from one supplier with down payment from other supplier
  • two or more different customers
  • two or more different suppliers

      Resolution

      The document you are trying to post is incorrect from deferred tax point of view. System will not allow you to post such document since tax transfer procedure will not understand who exactly should pay tax.

      You should always post documents with one supplier or customer code. In order to avoid the error message you need to split the postings.

      Keywords

      DEFTAX_MX026, "DefTax: Do not post invoice with both Debit and Credit Cust/Vend lines", Customers, Suppliers, Post Outgoing Payments, Post Incoming Payments. , KBA , FI-GL-GL-F1 , Deferred Tax (Country Specific) , Problem

      Product

      SAP S/4HANA Cloud all versions