<REFMAT>
With <REFMAT> on the key fields of a view or classification, all records found for a reference material are copied to the target material.
Example:
These two settings would copy all fields of all plant views of the reference material. However, the key accesses can also be used in a mixed way:
These settings would copy all the fields for all distribution channels in sales organization 0001.
Rules and instructions:
<REFMAT> on a key field means that all values are selected for determining the data for this field. At least one key field must be used with value <REFMAT> to activate this mechanism.
<REFMAT> on a field for setting values must always be used together with target field *. All data from the selected records according the key fields are used.
<REFMAT> without parameters and <REFMAT (...)> with parameters can be used mixed.
<REFMAT (...)> with parameters or any other special values are applied according to their description.
You can also copy all classes of the reference material: This means that all classes of the reference material are assigned and their possible valuations are transferred. For exceptions, see Fieldnames with wild card *.
The different views are partially related. This applies in particular if no view control is specified and therefore the view control of the reference is transferred. Examples:
Sales views MVKE always also require the control data MLAN
The accounting views of the plants (MARC) require valuation MBEW
Creating different views (MRP, Purchasing, and so on) requires data for these views in the basic material data MARA. These data can be provided with the following sentence:
The option "Only if initial" must be selected, otherwise MARA data that has been entered can be overwritten.
It is generally recommended always to use the option "Only when initial" for sentences with field * <REFMAT>.
Application examples of <REFMAT>:
Copying all views of a reference material, see example below. In this case, all tables are addressed by the reference according to the view control.
Copying all subareas, such as the storage locations for a plant. In this case, the plant is specified explicitly, but <REFMAT> is specified for LGORT. Another application example is copying all storage types for a specific warehouse number.
Copy all control data for a specific sales view. It can easily be worked to MLAN with ALAND equal <REFMAT> and * / <REFMAT> for the field. This is because the tax data is always created in connection with the countries required for the sales view. This means that only those countries are transferred that are required for the specific sales view.
The following example of a complete definition of a value group copies all views of a reference material to a target material. The example also documents the possible tables / views which can be handled in this way.
© ProNovia AG | Imprint | Data Protection