SAP ABAP IMG Activity W_CS_BADI_003 (BAdI: Determination of Up-Selling Materials)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   SD-MD-MM-CS (Application Component) Additional Material Functions
     WSD_CS_CUST (Package) Customizing Enhanced Material Search
IMG Activity
ID W_CS_BADI_003 BAdI: Determination of Up-Selling Materials  
Transaction Code S_PR0_40000346   (empty) 
Created on 20070108    
Customizing Attributes W_CS_BADI   Enhancements Using Business Add-Ins 
Customizing Activity W_CS_BADI_003   BAdI: Determination of Up-Selling Materials 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_WSD_UP_SELL_MAT    

Use

Use this Business Add-In (BAdI) in the Material View component in the Sales Order application (VA01, VA02, VA03) to define the way the Material View determines up-selling materials for the provided material.

The BAdI is called when the Material View application is called.

Requirements

Standard settings

In the standard system, the Material View can only display up-selling materials when the BAdI is implemented. When the BAdI is not implemented, no BAdI is activated and no default code is executed.

The BAdI is filter independent. Material View supports only one implementation of this BAdI.

This BAdI uses the interface IF_WSD_UP_SELL_MAT.

Activities

For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Example

method IF_WSD_UP_MAT~GET_UP_SELL_MAT.

" Table Z_UP_MAT doesn't exist in the standard system, just an example

data ls_up_sell_material like line of Z_UP_SELL_MAT.

clear ls_up_sell_material.

select * Z_UP_SELL_MAT into ls_up_sell_material where matnr = i_matnr.

" Add the material number of the up selling

" material to the return table

append ls_up_sell_material-up_matnr to RT_UP_MATNR.

endselect.

endmethod.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 1   Mandatory 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  20070329 
SAP Release Created in 700