SAP ABAP IMG Activity W_VPK_BADI_0005 (BAdI: Additional Fields in Market-Basket Price Calculation)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-MD-RPC (Application Component) Retail Pricing
     WCV1 (Package) IS-R: Sales pricing (Customizing)
IMG Activity
ID W_VPK_BADI_0005 BAdI: Additional Fields in Market-Basket Price Calculation  
Transaction Code S_AL0_96000677   (empty) 
Created on 20020115    
Customizing Attributes W_VPK_BADI   BAdI Attribute for Sales Pricing 
Customizing Activity W_VPK_BADI_0005   BAdI: Additional Fields in Market-Basket Price Calculation 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name MBP_ADD_LIST_FIELDS    

Use

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.

Requirements

Standard settings

Activities

Example

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).

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20020115 
SAP Release Created in 470