Delivery split in VL10C according to material and quantity

In the data transfer routine when creating deliveries for sales orders, the delivery split can be executed according to various criteria. However, it is not possible to realize a split by quantity, i. that a material may only be put into a delivery with a certain or maximum quantity.

In order to realize this requirement, one must intervene at an earlier point in time of delivery.

Several items are recorded in a sales order. However, a certain material always has to be supplied separately. A shipment of this material may continue to contain only a maximum amount of 2 pieces.

This requirement is not uncommon when e.g. certain materials declared as dangerous goods are shipped by air freight.

Example: The dangerous goods are recorded with quantity = 9 PC. It must be split into 4 deliveries a 2 PC and one delivery a 1 PC.

In the VL10C, sales orders due for delivery are grouped into so-called packages. Each package is a group of order items that can theoretically be combined into a single delivery. Each package then passes through the data transfer routine Order -> Delivery, where the actual delivery split is then executed out for the package. A package can therefore be 1 … n deliveries.

On the tab “User role” of the selection screen of the VL10C there is the parameter “PackageType”. This parameter determines the logic by which the packages are assembled. If the value “9 = Userexit” is entered here, you can put together the packages according to your own logic and perform your own split criteria for the delivery split according to material and quantity.

The preset of the selection screen with PackageType = 9 is done in transaction VL10CUC.

By setting the parameter “PackageType = 9”, we jump to the user exit USEREXIT_PREPARE_PACKAGES_CR in program LV50R_VIEWG09.

There, the table ct_key_try is filled and the table it_postab is manipulated if necessary.

The ct_key-PANUM field controls which items flow into a delivery.

The delivery quantity can be entered in the field it_postab-kumng.


The sales order has been split into 6 deliveries.

  • Delivery 1: the 3 normal items (not dangerous goods)
  • Delivery 2-5: one item dangerous goods a 2 PC
  • Delivery 6: one item dangerous goods a 1 PC

Further informations

Special topics on SAP forms

Fixed price SAP forms

SAP form development