Enhancement of MMS

MMS can be enhanced using the enhancement spot /PCH/MMS.

The old function exits are obsolete and replaced by the enhancement spot /PCH/MMS. If implemented, old function exits are still called.

Functions of the ProMaterialData can be extended or restricted by various methods of the BAdI definitions /PCH/MMS_RELATION_DEF and /PCH/MMS_DATA, which both are in the enhancement spot /PCH/MMS.

BAdI Definition

Method

Usage

BAdI Definition

Method

Usage

/PCH/MMS_RELATION_DEF

BEFORE_LOAD_DEFINITIONS

Allows to initialize own data or suppress execution of MMS.

/PCH/MMS_RELATION_DEF

FILTER_RELATION_DEFINITIONS

This method allows filtering of determined control groups.

The list of the selection list contains all valid entries, according to the definition, sorted by their priority (smallest value first). After this method only the records with the highest priority will be processed. In case of several valid control groups, it is necessary to consider that this method is followed by the standard checking routine, based on selection rules as described in in the customizing manual, chapter Control Groups.

/PCH/MMS_RELATION_DEF

BEFORE_LOAD_RELATIONS

Called before the relations, based on the relevant control groups, will be determined. The list of control groups can be changed.

/PCH/MMS_RELATION_DEF

BEFORE_LOAD_VALUES

Called before determining the value definitions to be processed. The list of relations to be processed can be changed.

/PCH/MMS_RELATION_DEF

AFTER_LOAD_DEFINITIONS

This method allows cleaning up the determined values for the selected relations.

/PCH/MMS_RELATION_DEF

CHECK_FIELD_VALUES

This method will be called after field value checks supplying the list of erroneous records, which can be altered.

/PCH/MMS_DATA

ADD_COMPLEMENTARY_DATA

This method is called to determine the values for the ProMaterialData Standard Value Handler COMPL:MMS and allows adding additional data.

If called with empty list, then this is a search help call within customizing and only the key (FIELD) and description (DESCR) must be filled.

MMS uses always a dash ( - ) in its field names (PRM-KNFTP, SY-DATUM, …). Therefore own keys should not use a dash (-).

The fields in the table:

  • FIELD

    • “Filter field 1” in customizing

  • VALUE_NEW / VALUE_OLD

    • Value new, respectively old

    • Can be the same, except when used as a trigger for the relation definitions and value must be changed to activate the trigger

  • DESCR

    • Description of the field, used in search help in customizing

/PCH/MMS_DATA

BEFORE_UPDATES

For own initializations called just before starting to update material views and classification.

/PCH/MMS_DATA

BEFORE_UPDATE_MAT_VIEWS

This method is called just before the actual update of material master data with ProMaterialData. Parameters with ending _U are data to be changed, parameters with ending _I are views to be created newly.

/PCH/MMS_DATA

BEFORE_UPDATE_CLASSIF

This method is called before updating / inserting the classification data. It is called for each class and its values.

/PCH/MMS_DATA

AFTER_UPDATES

This method allows individual actions and updates after a ProMaterialData process.

/PCH/MMS_CTRL

CHECK_MATERIAL_EDIT_ALLOWED

Allows the maintenance of a material master despite open MMS actions. This may be necessary, for example, if updates are made to a material master via interfaces making several calls for a material (several logical transactions). If after one of these updates MMS is set up and further updates are made, this results in an error "The material ... is registered for an MMS action".

/PCH/MMS_CTRL

PROCESS_MMS_MAT_SAVE_EXIT

Control whether MMS should be activated for a material. This is called at the very beginning of the MMS implementation in the Material Save Exit and allows the complete disabling of MMS at this time (e.g. special jobs or programs).

 

© ProNovia AG | Imprint | Data Protection