Fonction SAP CAVC_DF_APPLY_INSTANCE_NUMBER - Create Number of Identical Instances

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COPY_VALUE_ASSIGNMENT CAPIFLAG-FL_COPY_VALUES C 1 SPACE X Indicator: Copy Assigned Characteristic Values
INSTANCE CAPIPARMS-INSTANCE N 8 Original Instance
INSTANCE_NUMBER CAPIPARMS-COPY_COUNT N 3 1 X Number of Identical Instances (Incl. Original)

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Code

Functionality
The API ensures that exactly n identical copies of an instance exist onone level (parameter INSTANCE_NUMBER). Instances are considered to beidentical if the fields BOM_ITEM and BOM_COMPNT match. They are on thesame level if the PARENT field also has the same content.
The COPY_VALUE_ASSIGNMENT indicator specifies whether the characteristicvalue assignments of the original instance are to be copied if newcopies are created. This indicator has no effect on existing instances.
Surplus instances are deleted as necessary but there is no setting todefine which ones are deleted. Therefore, changes to a particularinstance (for example, characteristic value assignments) may be lost.