SAP Knowledge Base Article - Public

3479310 - Error F5A400 "Minor difference & & & cannot be allocated across company codes" in API posting - SAP S/4HANA Cloud

Symptom

Post with API Journal Entry - Post (Synchronous), error "Minor difference & & & cannot be allocated across company codes" (Message no: F5A400) occurs.

Environment

SAP S/4HANA Cloud

Cause

This error F5A400 is normally caused by different currency settings between company codes which are involved in the cross-company code posting. Check the currency settings in configuration activity Define Currency Settings for Ledgers and Company Codes (SSCUI ID 103379).

Resolution

Transfer the amounts in Group currency to the API payload by adding <AmountInGroupCurrency currencyCode="USD">  </AmountInGroupCurrency> to each line items.

Such like:

<Item>
                        ...
                        <GLAccount>...</GLAccount>
                        <CompanyCode>...</CompanyCode>
                        <AmountInTransactionCurrency currencyCode="USD">1000</AmountInTransactionCurrency>
                        <AmountInGroupCurrency currencyCode="USD">1500</AmountInGroupCurrency>
                        
                        <Tax>
                           ...
                        </Tax>
                        <AccountAssignment>
                            ...
                        </AccountAssignment>
 </Item>

See Also

KBA3359263 - Error F5A400 "Minor difference & & & cannot be allocated across company codes" in BAPI posting

Keywords

F5A 400,F5A400, F5735, F5 735; intercompany; Inter-company, Journal Entry - Post (Synchronous), API , KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions