SAP Knowledge Base Article - Public

3676793 - The custom logic PRCG_DOC_ITEM_CONDITION_AMOUNT does not work for a condition type - SAP S/4HANA Cloud Public Edition

Symptom

After implementing the custom logic PRCG_DOC_ITEM_CONDITION_AMOUNT for a condition type, when entering the pricing details screen of the condition type, the alternative condition amount shows the related routine number of the custom logic.

However, the condition value or amount of the condition type doesn't work as expected.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Implement the custom logic PRCG_DOC_ITEM_CONDITION_AMOUNT and assign it for a condition type.
  2. Observe the condition type when creating a sales document.

Cause

The condition type is a group condition.

If the custom logic Define Alternative Calculation of Condition Amount in Document Item is implemented and the routine number in the custom pricing procedure is assigned to a group condition, then it is necessary to implement the custom logic Define Alternative Calculation of Condition Amount in Document.

The two implementations must be assigned to the same routine number in the Set Alternative Calculation of Condition Amount configuration activity. 

Resolution

The workarounds below can be considered depending on the business requirement:

  • If the target condition type needs to be a group condition, it can be considered to implement the custom logic Define Alternative Calculation of Condition Amount in Document and make sure the two implementations be assigned to the same routine number in the Set Alternative Calculation of Condition Amount configuration activity.  
  • If the target condition type doesn't need to be a group condition, it can be considered to set the condition type as non-group condition in the Set Condition Types for Pricing configuration activity.

See Also

Custom Logic: Condition Amount | SAP Help Portal

Keywords

Custom logic, PRCG_DOC_ITEM_CONDITION_AMOUNT, SAP S/4HANA Cloud Public Edition, Condition amount, Routine number, Group condition, Alternative calculation, BAdI implementation, Configuration activity, Pricing. , KBA , SD-BF-PR-2CL , Pricing (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions