SAP Knowledge Base Article - Public

3634390 - Profit margin display in header condition screen is incorrect- SAP S/4HANA Cloud Public Edition

Symptom

Several alternative cost conditions are applied in the pricing procedure. All these conditions are defined as statistical prices and use the subtotal = 'B', that is, the last condition not equal to zero determines stock value KOMP-WAVWR.

When using formula 018 to display the profit margin as subtotal (profit margin in percent), the display on the header condition screen of the document is incorrect.

    Environment

    SAP S/4HANA Cloud Public Edition

    Reproducing the Issue

    1. Create a sales order or billing document.
    2. Check the cost condition and the profit margin in the header level.

    Cause

    The system behaves as designed.

    Due to all cost condition types having subtotal B configured in pricing procedure, during item level calculation, the system can recognize which is the last price, then add it into KOMP-WAVWR.

    While it is not possible to determine at header level as in header level the position number is '000000'. As a result, all cost condition types are considered for the profit margin in header level.

    Resolution

    In general, it is not recommended to use more than one condition of type 'G' for each item.

    Only the first condition of the type 'G' for each item contains the goods issue value as the condition value.

    For further conditions, the special logic of the condition category 'G' is lost.

    If applying multiple cost condition types is the business requirement, consider using the custom logic to calculate the profit margin in header level: 

    Custom Logic: Condition Amount | SAP Help Portal

    Keywords

    Profit margin, Header level, Pricing procedure, Cost, Internal price, Custom logic, Subtotal. , KBA , SD-BF-PR-2CL , Pricing (Public Cloud) , Problem

    Product

    SAP S/4HANA Cloud Public Edition all versions