Ansicht
Dokumentation

MM_PUR_S4_CCTR_HEAD - Change of Central Purchase Contract Before Saving

MM_PUR_S4_CCTR_HEAD - Change of Central Purchase Contract Before Saving

BAL_S_LOG - Application Log: Log header data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Modify Header

This Business Add-In (BAdI) is used in the Fiori UI for Manage Purchase Contracts(MM-FIO-PUR-SQ-CON) component. You can use this BAdI to modify header data in central purchase contracts. This may be necessary, for example, if new customs fields are introduced in central purchase contracts at header level.

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).

The following parameters are available:

Import Parameters

  • PURCHASECONTRACT: Structure containing the header information of a central purchase contract
  • PURCHASECONTRACTITEM: Table containing the item information of a central purchase contract
  • PURCHASECONTRACTDISTR_TABLE: Table containing the distribution data of a central purchase contract

Changing Parameters

  • PURCHASECONTRACT_CHANGE: Changed custom fields at header level in a central purchase contract
  • MESSAGES: List of messages that are displayed in the Manage Central Purchase Contractsapp

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_CCTR_MOD_HEADER (Example Class to Modify Header Data in Central Contracts)

The BAdI provides the following method:

Modify Header Data in a Central Contract

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.

You can also use this BAdI to modify the header conditions information in central purchaser contacts.

The following parameters are available:

Import Parameters

  • PURCHASECONTRACTHDR_CND_TABLE: Table containing the header condition information of a central purchase contract.

Changing Parameters

  • PURCHASECONTRACT_COND_CHANGE: List of changed or created condition records table.

Creation of new condition validity:

  • Condition record number must be filled with a temporary number prefix with '$H' and sequence numbers.
  • If a new validity has been added and any validity already exists, the condition record number must be filled with a calculated temporary number prefix with '$H' and sequence numbers.
  • At least one base condition should exist, and the condition record number should be the same for the supplementary conditions with sequence numbers.

Condition validity deletion:

To delete the condition validity, mark all the validity conditions as deleted. To revert the deleted validity, remove the deletion indicator.

Condition record deletion:

Mark condition record as deleted and if the base condition record has a deletion indicator, the follow-on supplementary conditions must be deleted.

Condition record creation:

Append the condition record with the condition sequence number to the validity and ensure that the condition record is equal to the validity condition record number.

Condition scale type creation:

Include the condition scale with the condition record sequence number of the condition type and fill the condition scale line.

Condition scale deletion:

To delete the scale, remove the scale from the changing conditions.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4867 Date: 20240523 Time: 203406     sap01-206 ( 78 ms )