Ansicht
Dokumentation

W_VPK_BADI_0001 - BAdI: Condition Posting Control in Sales Pricing

W_VPK_BADI_0001 - BAdI: Condition Posting Control in Sales Pricing

PERFORM Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this Business Add-In (BAdI) to change the control for data backup of conditions in sales price calculation for a pricing item, as defined in Customizing for pricing, to suit customer requirements. This allows you to directly influence which conditions are to be created when saving a pricing item in sales price calculation.

The BAdI also serves as a filter. In Customizing, you define which condition records (condition type, condition table) are to be created for which list fields in the pricing table. You can use the BAdI to suppress the update of single condition records or all condition records.

For the basic checks as to which condition records are to be created, you can access pricing item data (supplier, sales price, margins, competitor prices, and so on), which is copied to the method CALC_ITEM_POST_CHECK as import parameters (see example).

The BAdI is not activated in the standard system. The condition records are updated in accordance with the aforementioned Customizing settings for control of data backup in pricing.

In the example code for this BAdI, filtering of the update is demonstrated for the following cases:

A) No update if the newly calculated final price is the same as the current final price
The conditions of purchase change, so you carry out a price calculation to check the margin for an unchanged sales price. As you want to use the actual markup in subsequent price calculations, you have entered an update for the list field "AUFSG" for a condition type "ZAUF", for example. When saving the price calculation in question, a new condition record is to be created for the actual markup, but not for the sales price, as this has not changed. You can then use the BAdI to filter out the update for the sales price (list field "ENDPR").

B) No update of condition supplements
For information reasons, you update certain prices in a price calculation as additional information for the sales price; an example would be the planned final price with rounding. If both prices agree, the condition supplement is not updated as it is redundant information. In this case, you filter out the update of the condition supplement.

C) Suppression of the update
For legal reasons, it is not possible to save a sales price that is lower than the purchase price if you do not enter a suitable price change reason at the same time. If such a situation arises and no price change reason is entered for the pricing item, you can suppress the update of conditions completely. You will receive a message to this effect in the update log.






BAL Application Log Documentation   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 3349 Date: 20240523 Time: 155634     sap01-206 ( 61 ms )