Ansicht
Dokumentation

MMPUR_S4_CTR_CTRL_ED - Define Criteria to Edit Pur Contract in SAP S/4HANA created in Ext System

MMPUR_S4_CTR_CTRL_ED - Define Criteria to Edit Pur Contract in SAP S/4HANA created in Ext System

BAL_S_LOG - Application Log: Log header data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
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 define criteria for the editability of purchase contracts created from external systems (such as SAP Ariba) in the SAP S/4HANA system.

By default, you cannot edit a purchase contract in the SAP S/4HANA landscape that is created from an external system. However, with the implementation of this BAdI, you can edit purchase contracts in the SAP S/4HANA landscape.

Note: Once a purchase contract is edited in the SAP S/4HANA landscape, you will not be able to make any modifications from the external system (from which the purchase contract was created).

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:

Define Editability of Purchase Contracts in SAP S/4HANA (IS_EDITABLE)- This method is used to define criteria for the editability of purchase contracts in the SAP S/4HANA system.

The following parameters are available:

Import Parameters

  • PURCHASECONTRACT: Structure containing information about the purchase contract currently being processed, such as purchase contract type, supplier, purchasing organization, purchasing group, company code. Based on the values of the mentioned fields, you can decide if the purchase contract created from an external system (such as SAP Ariba) can be edited in the SAP S/4HANA system

Changing Parameters

  • PURCHASECONTRACTISEDITABLE: Boolean field that can be set to true to make the purchase contract editable in the SAP S/4HANA system

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:

Example Class to Control Editability of Pur. Contracts (CL_MM_PUR_EXMP_S4_CTR_CTRL_EDT)

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.






General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3156 Date: 20240523 Time: 200230     sap01-206 ( 56 ms )