SAP Knowledge Base Article - Public

3641505 - Negative Posting Check for Posting APIs - SAP S/4HANA Cloud Public Edition

Symptom

  • From Release 2602.2, the feature of Negative Posting check is automatically available for all customers. This feature enables you to check your input of negative postings in API payloads and block postings if negative postings are not configured. It's optional to enable the check until SAP S/4HANA Cloud Public Edition 2702. The check applies to the following APIs:
    • Journal Entry - Post (Synchronous) (JournalEntryCreateRequestConfirmation_In)

    • Journal Entry - Post (Asynchronous) (JournalEntryBulkCreationRequest_In)

    • Journal Entry by Ledger - Post (Asynchronous) (JournalEntryBulkLedgerCreationRequest_In)

  • 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 2602.2, you can deactivate the feature Enable negative posting check for Posting APIs (FI_POSTING_API_NG) in the configuration activity Activate Features until SAP S/4HANA Cloud Public Edition 2702. 
  • 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

If you are unable to complete the transition immediately, you can temporarily deactivating the check with feature toggle FI_POSTING_API_NG via Feature Toggle mechanism using the Activate Features configuration activity

See Also

Negative Postings

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

SAP S/4HANA Cloud Public Edition, 2-System Landscape & SAP Marketing Cloud – Upgrade & Maintenance Schedule

SAP S/4HANA Cloud Public Edition, 3-System Landscape – Upgrade & Maintenance Schedule

Keywords

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

Product

SAP S/4HANA Cloud Public Edition all versions