Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The ProMaterialData application programming interfaces:

...

Note

To use the ProMaterialData API Class /PCH/CL_MMS_EXECUTION, the ProMaterialData license option "A" is required.

Method

Description

CONSTRUCTOR

Create an instance of the class for each material master record to be processed.

SET_EXECUTION_VALUES

Define the values to be used for determining the control groups. By default all values are read from the material master record. Any value supplied using this method overwrites the current value from the material master record.
In particular, the selection of the control groups can be controlled via a value for COMPL: MMS / API-SELECTION-GRP, which only receives a value via this method call.
If a certain value is mandatory (the value must be used in a filter of the control group), the field FILTER_REQUIRED must be set to X. This is especially relevant for the usage of COMPL: MMS / API-SELECTION-GRP. Elsewise any control group with matching filters will be used - even if these filters does not include COMPL: MMS / API-SELECTION-GRP.

GET_CTRL_GROUPS

Receives the valid control groups for the material master record. Any control group valid by its filter is returned. The value NO_RLV_DATA informs if any value definitions could be executed. If NO_RLV_DATA is set to ABAP_TRUE, then the control group is selected but the corresponding data is already existing / set.

GET_VALUE_GROUPS

Returns the value groups to be executed for one control group.

EXECUTE_CTRL_GROUPS

Executes the control groups with valid value definitions (NO_RLV_DATA = ABAP_FALSE).

GET_EXECUTE_CTRL_GROUPS

Eecutes GET_CTRL_GROUPS and EXECUTE_CTRL_GROUPS in one step.

...

Used for individual definition of reference materials. See Customizing Handbuch for a definition of "reference material".

Method

Description

GET_INSTANCE

Returns a instance of this class for a specific active ProMaterialData material master record (not for the reference material!). Static.

EXISTS_INSTANCE

Checks if a instance for a active ProMaterialData material master records exists.

SET_TABLE_KEYS

Set the (default) table keys for accessing the reference material. Minimum IV_REFERENCE_MATERIAL is required.

GET_SINGLE_VALUE

Get one value from one of the tables of the reference material.

FREE

Frees all data of an instance and the instance itself. Static.

...