SAP ABAP IMG Activity W_PRICAT_IN_BADI_004 (BAdI: Dialog)
Hierarchy
EA-RETAIL (Software Component) SAP Enterprise Extension Retail
   SD-EDI (Application Component) Electronic Data Interchange
     WRF_VPRI_IN (Package) Price Catalog Inbound 2004
IMG Activity
ID W_PRICAT_IN_BADI_004 BAdI: Dialog  
Transaction Code S_XB4_60000190   (empty) 
Created on 20040825    
Customizing Attributes W_PRICAT_IN_BADI   BAdIs Price Catalog Inbound 
Customizing Activity W_PRICAT_IN_BADI_004   BAdI: Dialog 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name WRF_PRICAT_DIALOG    

Use

The methods of this Business Add-In class are intended exclusively for the PRICAT dialog.

By implementing these methods, you can edit and prepare PRICAT items for the dialog.

You can use the methods, for example, to:

  • Enrich PRICAT items with additional data before processing the list
  • Transfer changed data to the internal PRICAT tables
  • Add custom columns to the field catalogs of the individual lists
  • Perform custom authorization checks

Requirements

None.

Standard Settings

The following implementations are provided with the BAdI:

Implementation of ADDITIONAL_DATA:

The provided implementation copies attributes from some PRICAT tables to the PRICAT item lines. Mainly, these are:

  • Prices
  • Short text
  • Characteristic values (for variants)
  • Quantity multiplier (components of a display)

Some items do not have any dependent data in other PRICAT tables, however. In this case, the cell for the item cannot be edited; the cell modifiability is deactivated through the style (ALV).

Implementation of ADDITIONAL_DATA_SAVE:

Changes on the front end (ALV list) are updated from the PRICAT item to the corresponding tables of other PRICAT levels (such as price, texts).

This logic only applies to fields that were not typically item fields previously, but are processed in the item overview of the PRICAT dialog for reasons of simplicity and ergonomics.

Example:

Characteristics such as color and size are saved in internal table <GT_CHARACTER>. Technically, this table is contained in the PRICAT item table (internal: <GT_ITEM>). To enhance the ergonomics, these characteristic values are also displayed in the item line on the front end.

Implementation of FIELDCATALOG_CHANGE:

The PRICAT dialog uses the ALV grid control to display and edit the data. The layout and columns of a grid (such as grid for displaying the PRICAT items) are set up using a field catalog.

The field catalog has a default structure with the typical fields from the PRICAT levels that it will display (the field catalog for the grid of PRICAT items contains item fields, for example). The implementation of this method now adds additional fields (= columns in the grid) from deeper levels to the field catalog of items.

For example, fields are added to output the characteristic values from the catalog of PRICAT items.

Activities

Example

You want to display values from the PRICAT price table in the item overview. To do so, you first have to add the new field to the item table and the item grid (list).

-> Implementation of FIELDCATALOG_CHANGE:

Filling the field catalog with the additional field makes this field appear as a column in the passive field catalog, and also adds this field to the internal table of PRICAT items (<GT_ITEM>).

To fill the new field, you have to create/enhance the

-> Implementation of ADDITIONAL_DATA

This implementation enables you to copy data from the lower level (below the PRICAT item) to the item line. In our example, values are read from the internal PRICAT price table (<GT_PRICE>) and placed in the new field of the item.

Changed prices from the item overview can be updated in the appropriate line of the price table (<GT_PRICE>) through the

-> Implementation of ADDITIONAL_DATA_SAVE

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