cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Not Able to update Sales Pricing Data Dynamically for Different Pricing Conditions

bhupendrarajat
Discoverer
0 Likes
891

Hi All,

I am trying to update Condition Amount of Pricing Data at Sales Order Item level on the basis of other Condition Type Calculated values using BADI (PRCG_DOC_ITEM_CONDITION_AMOUNT). Even in debugging values are populated in changing parameter but not reflecting at Sales Order Pricing Data.

Please help me with feasible solution.

Thanks 

Accepted Solutions (0)

Answers (1)

Answers (1)

DequanXu
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,

The BADI or PRCG_DOC_ITEM_CONDITION_AMOUNT BAdI is designed for defining alternative calculations of condition amounts at the document item level. The intention is to influence the determination of the Condition Amount, but certain behaviors need to be noted:

  1. Routine Execution: The BAdI executes custom logic based on a routine number assigned in the pricing procedure. Even if values populate in changing parameters during debugging, they might not reflect in the sales order due to:
    • Incorrect assignment of the routine number.
    • Incompatibility between routine calculations and existing pricing logic.

Potential Causes for Non-Reflective Updates

  1. Enhancement ID Misalignment: It’s crucial that the enhancement ID corresponds to the routine number settings in the pricing procedure configuration.

  2. Buffer Issues: Sometimes, updates are not reflected because data is held in a buffer and not read again from the database. Ensuring that changes are saved before checking the displayed sales data might resolve this.

  3. System Behavior: SAP Cloud systems have specific ways they handle quantity-based adjustments, which might scale conditions rather than apply them directly. If conditions are marked as fixed, they might not update as anticipated.

Recommendations

  • Ensure Proper Configuration: Verify that your custom logic and routine number are correctly set up and that the enhancement ID matches.
  • Check Buffer Handling: Save any sales documents after changes and re-read data if necessary to avoid buffer issues. Enhance custom logic by conversion of decimal places for currencies in SAP S/4HANA Cloud Public Edit...
  • Understand SAP System’s Pricing Logic: Sometimes adjustments happen due to internal scaling and recalculation rules, ensure your custom logic complements these rules.

For further details, refer to specific SAP documentation or consult support articles related to pricing conditions in SAP S/4HANA Cloud.

Debugging Steps

  • Use the ‘Custom Logic’ app to review your code implementation.
  • Confirm all entries and configurations in the ‘Set Alternative Calculation of Condition Amount’ activity.

By ensuring these steps and configurations, you should be able to dynamically update pricing conditions effectively. Cloud BAdIs for pricing

Best regards,

Dequan Xu