SAP Knowledge Base Article - Public

3584832 - Runtime Error: 'ASSERTION_FAILED during posting

Symptom

Runtime error ASSERTION_FAILED happens during posting.

It can be confirmed from app ABAP Runtime Errors for the runtime error details:

Short Text
The ASSERT condition was violated.
Runtime Error
ASSERTION_FAILED
Program
CL_FCOPA_SETTINGS=============CP

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

Product

SAP S/4HANA Cloud Public Edition all versions