Example Changing the Weight in the Sales Order Locate the document in its SAP Library structure

The weight of header material PC is calculated during configuration, then automatically copied to the sales order.

Configurable material PC has characteristic WEIGHT.

The weight of the PC is calculated by function $SUM_PARTS (see Built-In Function $SUM_PARTS).

This value is then copied to the sales order for the PC as the gross weight.

Procedure

1. Create reference characteristic GROSS_WEIGHT with the following table reference:

Structure VCSD_UPDATE field BRGEW.

Set the No display indicator for the reference characteristic, so that it is not displayed in the configuration editor.

2. Assign the reference characteristic to the variant class for the PC.

3. Create a procedure with the following source code:

$SELF.GROSS_WEIGHT = $SELF. WEIGHT

4. Allocate the procedure to the configuration profile of the PC.

Result

When you configure the PC, the value of characteristic WEIGHT is copied to the Gross weight field in the SD document.

Leaving content frame