Ansicht
Dokumentation

W_CS_BADI_004 - BAdI: Determination of Down-Selling Materials

W_CS_BADI_004 - BAdI: Determination of Down-Selling Materials

General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

You 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 down-selling materials for the provided material.

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

In the standard system, when no BAdI is implemented the Material View does not display any down-selling materials as there is no default code executed 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_DOWN_SELL_MAT.

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

method IF_WSD_DOWN_MAT~GET_DOWN_SELL_MAT.

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

      data ls_down_sell_material like line of Z_DOWN_SELL_MAT.

      clear ls_down_sell_material.

      select * Z_DOWN_SELL_MAT into ls_down_sell_material where matnr = i_matnr.

            " Add the material number of the down selling

            " material to the return table

            append ls_down_sell_material-down_matnr to RT_DOWN_MATNR. ,,,,,,,,

      endselect.

endmethod.






BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3167 Date: 20240523 Time: 190151     sap01-206 ( 98 ms )