SD Program Custom development Background program

Export Container Load Volume and Weight Planning Program

Short answer: A custom program that calculates the gross weight and volume of export deliveries ready for loading from carton, roll or pallet dimensions, distributes them to the selected container types (for example 20', 40', 40' HC), shows the fill rate of each container and creates one shipment document per container from the approved plan. Shipping teams know how many containers they need before loading and avoid sending half-empty containers.

Estimated effort
M · 8–10 working days
System
ECC and S/4HANA
Tables
8
Scope
Global
Built by
NeKuDos Teknoloji
Last updated

Why is the standard not enough?

VT01N shows the total weight and volume of the deliveries added to a shipment, but it does not split deliveries automatically by container capacity or propose how many containers are needed. Three-dimensional load planning is possible in SAP Transportation Management, but that is a separate component that needs its own implementation. The custom program quickly builds the container plan from existing delivery, packaging and unit of measure data.

Who uses it? Export and shipping teams, logistics planning, customs and foreign trade operations.

Closest standard alternatives

  • VT01N Create Shipment. Creates a shipment manually and shows total weight/volume; it does not distribute deliveries to containers by capacity automatically.
  • VL06O Outbound Delivery Monitor. Lists deliveries ready for loading; it does not calculate the number of containers or their fill rate.

Tables used

The tables the program reads and updates. ECC and S/4HANA differences are marked separately.

TableRoleAccessSystem
LIKPDelivery HeaderDelivery header: shipping point, goods issue date, ship-to partyReadECC + S/4
LIPSDelivery Item DataDelivery items: material, quantity, sales unitReadECC + S/4
KNA1Customer Master (General Section)Name and country of the ship-to partyReadECC + S/4
VEKPHandling Unit HeaderGross weight and volume of handling unitsReadECC + S/4
MARMUnits of Measure for MaterialWeight, volume and dimensions of the sales unitReadECC + S/4
MARAGeneral Material DataAllowed loading weight and volume of the container packaging materialReadECC + S/4
VTTKShipment HeaderShipment header created per containerWriteECC + S/4
VTTPShipment ItemShipment items: deliveries assigned to the containerWriteECC + S/4

BAPIs and functions used

  • BAPI_SHIPMENT_CREATECreate Shipment. Creates the shipment with its deliveries for each container
  • BAPI_TRANSACTION_COMMITCommit a BAPI transaction. Commits each shipment separately

Selection screen parameters

ParameterDescriptionTypeReference fieldRequiredExample
S_VSTELShipping pointRange / multipleLIKP-VSTELYes1000
S_WADATPlanned goods issue dateRange / multipleLIKP-WADATYes18.11.2026 – 20.11.2026
S_LAND1Destination countryRange / multipleKNA1-LAND1NoDE
S_KUNNRShip-to partyRange / multipleLIKP-KUNNRNo—
S_CONTContainer types (packaging material)Range / multipleMARA-MATNRYesCNT-20DC, CNT-40DC, CNT-40HC
P_FILLFill factor (%)Single value—Yes90
P_SPLITAllow a delivery to be split across containersCheckbox—No—
P_SHTYPShipment typeSingle valueVTTK-SHTYPNo0001
P_TPLSTTransportation planning pointSingle valueVTTK-TPLSTNo1000
P_TESTTest mode (plan only, no shipments created)Checkbox—NoX

Result list columns

#ColumnSource
1Container no.Calculated Sequence number of the container in the plan
2Container typeMARA-MATNR
3DeliveryLIKP-VBELN
4Ship-to partyKNA1-NAME1
5CountryKNA1-LAND1
6Load unitsCalculated Number of handling units or unpacked items
7Gross weight (kg)Calculated Σ VEKP-BRGEW or LIPS quantity × MARM-BRGEW
8Volume (m³)Calculated Σ VEKP-BTVOL or LIPS quantity × MARM-VOLUM
9Weight fill %Calculated Total weight in container / (MARA-ERGEW × fill factor) × 100
10Volume fill %Calculated Total volume in container / (MARA-ERVOL × fill factor) × 100
11ShipmentVTTK-TKNUM
12MessageCalculated Plan or BAPI return message

Sample result list

Container no.Container typeDeliveryShip-to partyCountryLoad unitsGross weight (kg)Volume (m³)Weight fill %Volume fill %ShipmentMessage
1CNT-40HC80041301Nordic Apparel GmbHDE1189,85041.6037.5059.300000041210Shipment created
1CNT-40HC80041304Nordic Apparel GmbHDE746,12025.9061.1096.600000041210Shipment created
2CNT-20DC80041309Demo Retail Ltd.GB524,38022.8017.4076.400000041211Shipment created
80041312Holland Textiles B.V.NL00000Error: volume missing on 3 items
A view built with fictional sample data; not real system data.

How does the program work?

  1. Deliveries in the selected shipping point and planned goods issue date that are not yet assigned to a shipment (VTTP) are read from LIKP; the ship-to country is filtered from KNA1.
  2. Load units are determined: for packed deliveries the gross weight and volume of the handling units in VEKP are used; for unpacked items the LIPS quantity × the weight and volume of the sales unit in MARM. Items with empty volume or weight go to the error list.
  3. Container types are given on the selection screen as packaging materials; the capacity comes from the allowed loading weight and volume in MARA and is multiplied by a fill factor (for example 90%).
  4. Deliveries are grouped by ship-to party, sorted by volume from largest to smallest and placed in the first container where they fit (first-fit decreasing). If splitting is not allowed, a delivery is kept in a single container.
  5. The result is shown in the ALV per container with weight and volume fill rates.
  6. If test mode is off, a shipment (VTTK) is created for each container with BAPI_SHIPMENT_CREATE, the deliveries are added as shipment items (VTTP) and saved with BAPI_TRANSACTION_COMMIT; the result for each container is written to the log.

Performance notes

Limit deliveries by shipping point and date and check VTTP once with the selected delivery numbers. Read VEKP and MARM once with unique keys. Create shipments in a separate LUW per container.

Features

  • Test mode (check without posting)
  • Line-by-line result and error log
  • ALV list (sort, filter, subtotals)
  • Export to Excel The container loading plan can be downloaded as Excel for the loading team.
  • Runs as a background job

Authorization objects

  • V_LIKP_VSTDelivery authorization by shipping point
  • V_VTTK_SHTShipment creation authorization by shipment type
  • V_VTTK_TDSAuthorization by transportation planning point

Frequently asked questions

Does the program do three-dimensional placement?

No. It checks weight and volume together with a fill factor, which is enough in most cases to estimate the number of containers in advance. Rules such as roll orientation or no-stacking are reflected through the fill factor or an extra constraint per material.

Are the deliveries changed?

No. The program only creates shipments and adds the deliveries to them; delivery quantities and packing stay as they are. If the plan is not accepted, the shipment can be deleted and the program run again with different parameters.

Does it work on S/4HANA?

Yes. LE-TRA shipments and BAPI_SHIPMENT_CREATE can still be used in S/4HANA. In systems that use SAP TM, the same plan can be adapted to be handed over to TM instead of creating shipments.

Related reports

SD Report Custom ALV report

Picked but Not Goods-Issued Deliveries Report

A custom ALV report that lists deliveries whose picking is complete but whose goods issue has not been posted, with the number of days they have been …

LIKP · VBUK · LIPS · KNA1

Let us build this program for your system

Briefly describe your system and expectations. We will clarify the scope and come back with an effort and price quote.

Related report: Export Container Load Volume and Weight Planning Program