Hierarchy
⤷ SD-MD-MM-CS (Application Component) Additional Material Functions
⤷ WSD_CS_CUST (Package) Customizing Enhanced Material Search
IMG Activity
ID | W_CS_BADI_001 | BAdI: Determination of Alternative Materials |
Transaction Code | S_PR0_40000344 | (empty) |
Created on | 20070108 | |
Customizing Attributes | W_CS_BADI | Enhancements Using Business Add-Ins |
Customizing Activity | W_CS_BADI_001 | BAdI: Determination of Alternative Materials |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_WSD_ALTERNATE_MAT |
Use
This Business Add-In (BAdI) is used in the Material View component in the Sales Order application (VA01, VA02, VA03). You can use this BAdI to define the way the Material View determine alternate materials for the provided material. The BAdI is called when the Material View application is called.
Requirements
Standard settings
In the standard system, there is no activated BAdI implementation and there is no default code executed when no BAdI is implemented. Therefore Material View does not display any alternate materials when no BAdI is implemented. The BAdI is filter independent. Material View supports only one implementation of this BAdI.
This BAdI uses the interface IF_WSD_ALTERNATE_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_ALTERNATE_MAT~GET_ALTERNATE_MAT.
" Table Z_ALTERNATE_MAT doesn't exist in the standard system, just an example
data ls_alternate_material like line of Z_ALTERNATE_MAT.
clear ls_alternate_material.
select * Z_ALTERNATE_MAT into ls_alternate_material where matnr = i_matnr.
" Add the material number of the alternate
" material to the return table
append ls_alternate_material-alt_matnr to rt_alternate_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 |