Ansicht
Dokumentation

MMDA_PUR_ITM - BAdI: Purchasing Document (Item Level)

MMDA_PUR_ITM - BAdI: Purchasing Document (Item Level)

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

This Business Add-In (BAdI) is used in Purchasing Analysis to enhance the features for item level data of purchasing documents in the Materials Management (MM) component. You use this BAdI to enhance the extraction process of the 0MM_PUR_PO_ITMDataSource by adding new fields to the MMDA_PUR_S_PO_ITMextract structure.

This BAdI is called from the GET_HDR_ITM_SCLmethod of the CL_MM_PUR_PO_BWEXTRACTclass, which is eventually called for extracting item data by the extractor function module of this DataSource.

You must carry out the following steps if you want to enhance the business use in the BAdI implementation:

  1. Add new custom-defined fields to the MMDA_PUR_S_PO_ITMextract structure.
  2. In transaction RSA2, change the 0MM_PUR_ITMDataSource and specify the new custom fields as input (X) or display fields (blank).
  3. Save the DataSource.
  4. Use the BAdI method EXTRACT_ITMof interface IF_EX_MMDA_PUR_ITM to enhance the business use in the BAdI implementation.

The BAdI method EXTRACT_ITMis associated with this BAdI. The following are the parameters that are transferred with this method that require additional information:

Changing Parameters

  • CT_ITM - Table type for item level information of purchasing document

For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Element Definitions tab in the BAdI Builder (transaction SE18).

Information about the implementation of BAdIs in the context of the enhancement concept is available in the SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitions tab in the Implementation Example Classes section.

The following example implementation is available:

  • CL_EXM_MMDA_PUR_ITM
This example implementation class is designed to show how to change the output of the DataSource using the EXTRACT_ITM BAdI method.






TXBHW - Original Tax Base Amount in Local Currency   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 2701 Date: 20240523 Time: 203951     sap01-206 ( 51 ms )