SAP Knowledge Base Article - Public

3641505 - Negative Posting Check for Posting APIs

Symptom

  • From Release 2602 the check for Negative Posting is activated for all customers.

  • If the payload isn't maintained correctly according to the required format and configuration activities, an error regarding negative posting will occur. This error will prevent posting until the payload is corrected. Additionally, you may need to adjust the configuration activity if negative postings are necessary.
  • From release 2702 The check is mandatory, and customer can not switch off .

Environment

SAP S/4HANA Cloud Public Edition

Cause

 This ensures Debit/Credit Code is consistent between payload and table/journal entry

Resolution

Review correct payloads where necessary and check configuration before the check becomes mandatory:



 Wrongly understand Negative posting: ,S (Debit) + minus sign amount (-100) ;  H (Credit) + plus sign amount (100); negative posting config as not allowed 

  Payload:

                        <Item>

                         ….

                        <AmountInTransactionCurrency currencyCode="EUR">-100</AmountInTransactionCurrency>

                        <DebitCreditCode>S</DebitCreditCode>

                    </Item>

                        <Item>

                         ….

                        <AmountInTransactionCurrency currencyCode="EUR">100</AmountInTransactionCurrency>

                        <DebitCreditCode>H</DebitCreditCode>

                    </Item>


At present this journal entry can be posted

On the Entry View in app Manage Journal Entries the following lines are shown:

            Line 1: H ,100, Negative Posting is false

            Line 2: S, 100, Negative Posting is false

This case will be blocked in future.


Check the type of posting you wish to make:


Normal Posting:

 No negative posting,  S (Debit) + plus sign amount (100) ;  H (Credit) + minus sign amount (-100)

  Payload:

                        <Item>

                         ….

                        <AmountInTransactionCurrency currencyCode="EUR">100</AmountInTransactionCurrency>

                        <DebitCreditCode>S</DebitCreditCode>

                    </Item>

                        <Item>

                         ….

                        <AmountInTransactionCurrency currencyCode="EUR">-100</AmountInTransactionCurrency>

                        <DebitCreditCode>H</DebitCreditCode>

                    </Item>



View Posting Via app Manage Journal Entries

Line 1: S,100, Negative posting is false

Line 2: H, 100, Negative Posting is false

 

To Reverse Journal Entry Journal Entry – Reverse can be used. See principles in relation to ReversalReason referenced above 



Negative Posting Allowed:

Negative Postings is selected in configuration activities Company Code General Ledger View (ID: 106039) and Define Document Types (ID: 101522) 


When creating a negative posting in a payload, enter 'H' (Credit) for DebitCreditCode if the item amount (AmountInTransactionCurrency) is positive, and enter 'S' (Debit) for DebitCreditCode if the item amount (AmountInTransactionCurrency) is negative. 

 

Example Negative Posting with API 

S (Debit) + minus sign amount (-100) ;  S (Debit) + plus sign amount (100); negative posting config as allowed 

   Payload:

                        <Item>

                         ….

                        <AmountInTransactionCurrency currencyCode="EUR">-100</AmountInTransactionCurrency>

                        <DebitCreditCode>S</DebitCreditCode>

                    </Item>

                        <Item>

                         ….

                        <AmountInTransactionCurrency currencyCode="EUR">100</AmountInTransactionCurrency>

                        <DebitCreditCode>S</DebitCreditCode>

                    </Item>

 

View Posting Via app Manage Journal Entries

            Line 1: S, -100, Negative posting is true 

            Line 2: S, 100, Negative posting is false




See Also

Negative Postings

3157729 - General Journal Entries Negative postings SAP S/4HANA Cloud Public Edition 

Keywords

KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions