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
- Open the Fiori app "Manage Sales Orders - Version 2".
- Create a new sales order by clicking the "Create" button.
- Enter the relevant details for the sales order.
- Navigate to the Prices tab and click "Create" under Pricing Elements.
- Enter the condition type name and amount, but leave the currency field blank.
- 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:
- Open Manage Sales Orders - Version 2.
- Click the gear icon (User Settings).
- Navigate to Field Default Values.
- Locate Currency field under Pricing Conditions..
- 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:
- Enter Adapt UI mode (via user menu in the app).
- Go to the Prices tab and select the Currency Field.
- Set it to "Mandatory".
- 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:
- Open Configure Your Solution (SSCUI) app.
- Search for Pricing Procedure Setup.
- Open your Sales Org/Pricing Procedure.
- Confirm that PPR0 is configured with appropriate default behavior.
- 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