SAP Knowledge Base Article - Public

3594196 - ASSERTION_FAILED When Adding Manual Condition Type Without Currency in Manage Sales Orders - Version 2 in SAP S/4HANA Cloud Public Edition

Symptom

  • When attempting to manually add conditions in the "Manage Sales Orders - Version 2" application, a system dump occurs if the condition is entered without specifying a currency.
  • The system displays the error message "ABAP Runtime Error 'ASSERTION_FAILED'" when the currency field is left blank and the user attempts to save or press Enter.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the Fiori app "Manage Sales Orders - Version 2".
  2. Create a new sales order by clicking the "Create" button.
  3. Enter the relevant details for the sales order.
  4. Navigate to the Prices tab and click "Create" under Pricing Elements.
  5. Enter the condition type name and amount, but leave the currency field blank.
  6. Press Enter or Save, and observe the system crash with the error "ABAP Runtime Error 'ASSERTION_FAILED'".

Cause

The issue arises due to the currency field being left blank when adding conditions manually in the "Manage Sales Orders - Version 2" application.

Resolution

Option 1: Set Default Currency in Fiori User Settings.

Steps:

  1. Open Manage Sales Orders - Version 2.
  2. Click the gear icon (User Settings).
  3. Navigate to Field Default Values.
  4. Locate Currency field under Pricing Conditions..
  5. Set a default currency (e.g., EUR or USD) and save.

Result: Currency field is pre-filled, preventing the error.

Option 2: Make Currency Field Mandatory Using Adapt UI.

Steps:

  1. Enter Adapt UI mode (via user menu in the app).
  2. Go to the Prices tab and select the Currency Field.
  3. Set it to "Mandatory". 
  4. Save and exit Adapt UI.

Result: Users must enter currency before saving, blocking invalid input.

Option 3: Configure Pricing Condition Currency in SSCUI.

To enforce currency at the configuration level.

Steps:

  1. Open Configure Your Solution (SSCUI) app.
  2. Search for Pricing Procedure Setup.
  3. Open your Sales Org/Pricing Procedure.
  4. Confirm that PPR0 is configured with appropriate default behavior.
  5. Save and test.

Result:  System assigns currency automatically at condition creation.

See Also

Keywords

SAP S/4HANA Cloud Public Edition, Public Cloud, Sales Order, Manage Sales Orders - Version 2, Conditions, Currency, ABAP Runtime Error, ASSERTION_FAILED, System Dump, Manual Condition, Currency Missing , KBA , SD-SLS-GF-2CL , Basic Functions (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions