Ansicht
Dokumentation

MMPUR_S4_CTR_MOD_ITM - Change of Purchase Contract Item Before Saving

MMPUR_S4_CTR_MOD_ITM - Change of Purchase Contract Item Before Saving

PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Materials Management Purchasing (MM-PUR) component. You can use this BAdI to perform custom changes or updates on standard and custom fields at the item level of purchase contracts.

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

Activities

This BAdI provides the following method:

Modify Item Fields for Purchase Contracts (MODIFY_ITEM)- This method is used to alter standard and custom fields at the item level of the purchase contract.

The following parameters are available:

Import Parameters

  • PURCHASECONTRACT: Structure containing information about the purchase contract currently being processed (for example: purchase contract number, document type, document category)
  • PURCONTRACTITEM: Structure containing information about the purchase contract item that is currently being processed (for example: item number, material, valuation type). It also holds extended fields of purchase contract item
  • PURCONTRACTACCTASSIGNMT_TABLE: Table containing information about the purchase contract account assignments (for example: item number, sequence number, cost center)

Changing Parameters

  • PURCHASECONTRACTITEMCHANGE_NEW: Structure to modify values of standard and custom fields present at the item level of a purchase contract (for example: material, material description, etc.)
Note: It is recommended to use this structure instead of ‘PURCHASECONTRACTCHANGE’ (which is deprecated), as it supports the modification of standard and custom fields.,,
  • MESSAGES: Can be filled with messages containing the check results. In addition to a message text (free text), the messages must consist of one of the following message types:
  • I- Information

  • W- Warning

  • E– Error

  • PURCHASECONTRACTITEMCHANGE (Deprecated): Structure to modify values of custom fields present at the item level of a purchase contract

You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitionstab in the Implementation Example Classessection. The following example implementation is available:

CL_MM_PUR_EXMP_S4_CTR_MOD_ITM (Example Class to Modify the Item Method in Pur. Contracts)

For information about implementing BAdIs as part of the enhancement framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at SAP NetWeaver Platform. Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View-> Application Server -> Application Server ABAP -> Application Development on AS ABAP -> Customer-Specific ABAP Development -> Enhancement Framework.






ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3917 Date: 20240523 Time: 191325     sap01-206 ( 70 ms )