Symptom
Runtime error ASSERTION_FAILED happens during posting.
It can be confirmed from app ABAP Runtime Errors for the runtime error details:
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Create Supplier Invoice, or create bank statement.
Cause
Document splitting has been activated for journal entries using PAOBJNR (Profitability Segment Number). However, in the Public Cloud, document splitting with Profitability Segments is not supported, making the splitting of exchange rate differences with Profitability Segments not possible or permitted in this process.
There was an error in the configuration under ‘Finance -> General Ledger -> Document Splitting -> Define Document Splitting Characteristics for Controlling’, where the account assignment object PAOBJNR (Profitability Segment Number) was inadvertently created. Ideally, only predefined account assignment objects should be activated in the document splitting configuration, and PAOBJNR should not be allowed. This restriction is primarily due to technical reasons, such as the significant increase in posting volume when Profitability Segments are enabled in the document splitting configuration.
Resolution
To address this issue, it is recommended to deactivate PAOBJNR (Profitability Segment Number) in the document splitting configuration by switching off the flag ‘Transfer to Subs. Processes’.
If there is a need to post exchange rate differences to the Profitability Segment, navigate to the configuration settings under ‘Finance -> General Settings -> Journal Entries -> Manage Default Account Assignment’, and enable Profitability Segment for the ‘Exchange rate’ cost element (GL Account).
Keywords
ASSERTION_FAILED, CL_FCOPA_SETTINGS, short dump, ASSERT iv_company_code IS NOT INITIAL OR iv_controlling_area IS NOT INITIAL. , KBA , CO-PA-2CL , Profitability Analysis (Public Cloud) , Problem