Ansicht
Dokumentation

W_VPK_BADI_0005 - BAdI: Additional Fields in Market-Basket Price Calculation

W_VPK_BADI_0005 - BAdI: Additional Fields in Market-Basket Price Calculation

General Data in Customer Master   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) enables you to add customer-defined columns to the output table for market basket price calculation in sales price calculation.

You can add price columns as well as value columns and these always refer to the display currency WWAER for market-basket price calculation. The additional columns are only for the user's information, but entries can also be planned.

There is currently a maximum of five additional columns. Note that you only need to create one implementation for all additional columns.

The following methods can be implemented:

  1. MODIFY_SCREEN
    The method MODIFY_SCREEN regulates the screen characteristics for the additional fields. They are hidden and not ready for input by default.
  2. FILL_MBP
    In method FILL_MBP, values are entered into the customer fields cstf1 to cstf5 at the levels matnr/vrkme/werks of a market-basket price calculation item.
  3. FILL_CLP
    Conversely, the method FILL_CLP analyzes a market-basket price calculation item by changing an imported and exported sales price calculation item accordingly. If you only want to add display fields, you can leave this method empty.
  4. INPUT
    In method INPUT, user entries are analyzed in the customer columns. Both the original table entries and those corrected by the user are available. This method can select available sales price calculation items for recalculation in reaction to user entries. If you only want to add display fields, you can leave this method empty.
  5. FIELD_TYPE_GET
    The implementor uses method FIELD_TYPE_GET to define whether the customer columns are price columns or value columns. Prices refer to a sales unit but values do not. The classification influences behavior during totalling. Prices are determined arithmetically and values are added. The method FIELD_TYPE_GET exports a character string. Item N represents the Nth customer field, 'P' or 'p' signifies a price field and 'V' or 'v' signifies a value field. Deviating values delete the customer field.

The example implementation is for displaying and entering the gross sales price (VKPBR). It is recommended that you paste the VKPBR if you do not require sales prices that are not price points. In this case, you can remove the ready for input status of the final price (ENDPR).






ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2967 Date: 20240523 Time: 154148     sap01-206 ( 64 ms )