{"audience":"Export and shipping teams, logistics planning, customs and foreign trade operations.","authorization_objects":[{"note":"Delivery authorization by shipping point","object":"V_LIKP_VST"},{"note":"Shipment creation authorization by shipment type","object":"V_VTTK_SHT"},{"note":"Authorization by transportation planning point","object":"V_VTTK_TDS"}],"components":[],"countries":[],"effort_days_max":10,"effort_days_min":8,"effort_size":"M","faq":[{"a":"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.","q":"Does the program do three-dimensional placement?"},{"a":"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.","q":"Are the deliveries changed?"},{"a":"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.","q":"Does it work on S/4HANA?"}],"features":[{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"excel","label":"Export to Excel","note":"The container loading plan can be downloaded as Excel for the loading team."},{"code":"background","label":"Runs as a background job","note":""}],"functions":[{"name":"BAPI_SHIPMENT_CREATE","role":"Creates the shipment with its deliveries for each container"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Commits each shipment separately"}],"gap":"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.","id":"sd-export-container-load-optimization","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"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.\n2. 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.\n3. 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%).\n4. 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.\n5. The result is shown in the ALV per container with weight and volume fill rates.\n6. 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.","module":"SD","object_type":"batch_job","output_columns":[{"calculated":true,"formula":"Sequence number of the container in the plan","label":"Container no.","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Container type","source_field":"MATNR","source_table":"MARA"},{"calculated":false,"formula":"","label":"Delivery","source_field":"VBELN","source_table":"LIKP"},{"calculated":false,"formula":"","label":"Ship-to party","source_field":"NAME1","source_table":"KNA1"},{"calculated":false,"formula":"","label":"Country","source_field":"LAND1","source_table":"KNA1"},{"calculated":true,"formula":"Number of handling units or unpacked items","label":"Load units","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ VEKP-BRGEW or LIPS quantity × MARM-BRGEW","label":"Gross weight (kg)","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ VEKP-BTVOL or LIPS quantity × MARM-VOLUM","label":"Volume (m³)","source_field":null,"source_table":null},{"calculated":true,"formula":"Total weight in container / (MARA-ERGEW × fill factor) × 100","label":"Weight fill %","source_field":null,"source_table":null},{"calculated":true,"formula":"Total volume in container / (MARA-ERVOL × fill factor) × 100","label":"Volume fill %","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Shipment","source_field":"TKNUM","source_table":"VTTK"},{"calculated":true,"formula":"Plan or BAPI return message","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Shipping point","name":"S_VSTEL","ref_field":"LIKP-VSTEL","required":true},{"example":"18.11.2026 – 20.11.2026","kind":"select_option","label":"Planned goods issue date","name":"S_WADAT","ref_field":"LIKP-WADAT","required":true},{"example":"DE","kind":"select_option","label":"Destination country","name":"S_LAND1","ref_field":"KNA1-LAND1","required":false},{"example":"","kind":"select_option","label":"Ship-to party","name":"S_KUNNR","ref_field":"LIKP-KUNNR","required":false},{"example":"CNT-20DC, CNT-40DC, CNT-40HC","kind":"select_option","label":"Container types (packaging material)","name":"S_CONT","ref_field":"MARA-MATNR","required":true},{"example":"90","kind":"parameter","label":"Fill factor (%)","name":"P_FILL","ref_field":"","required":true},{"example":"","kind":"checkbox","label":"Allow a delivery to be split across containers","name":"P_SPLIT","ref_field":"","required":false},{"example":"0001","kind":"parameter","label":"Shipment type","name":"P_SHTYP","ref_field":"VTTK-SHTYP","required":false},{"example":"1000","kind":"parameter","label":"Transportation planning point","name":"P_TPLST","ref_field":"VTTK-TPLST","required":false},{"example":"X","kind":"checkbox","label":"Test mode (plan only, no shipments created)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"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.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-export-container-load-optimization","related":["sd-overnight-delivery-creation-exceptions","sd-picked-not-goods-issued","wm-wave-pick-transfer-order-job"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Creates a shipment manually and shows total weight/volume; it does not distribute deliveries to containers by capacity automatically.","tcode":"VT01N"},{"note":"Lists deliveries ready for loading; it does not calculate the number of containers or their fill rate.","tcode":"VL06O"}],"summary":"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.","tables":[{"access":"read","join_on":"","role":"Delivery header: shipping point, goods issue date, ship-to party","table":"LIKP","variant":"both"},{"access":"read","join_on":"LIPS-VBELN = LIKP-VBELN","role":"Delivery items: material, quantity, sales unit","table":"LIPS","variant":"both"},{"access":"read","join_on":"KNA1-KUNNR = LIKP-KUNNR","role":"Name and country of the ship-to party","table":"KNA1","variant":"both"},{"access":"read","join_on":"VEKP-VPOBJKEY = LIKP-VBELN","role":"Gross weight and volume of handling units","table":"VEKP","variant":"both"},{"access":"read","join_on":"MARM-MATNR = LIPS-MATNR AND MARM-MEINH = LIPS-VRKME","role":"Weight, volume and dimensions of the sales unit","table":"MARM","variant":"both"},{"access":"read","join_on":"MARA-MATNR = S_CONT","role":"Allowed loading weight and volume of the container packaging material","table":"MARA","variant":"both"},{"access":"write","join_on":"","role":"Shipment header created per container","table":"VTTK","variant":"both"},{"access":"write","join_on":"VTTP-TKNUM = VTTK-TKNUM","role":"Shipment items: deliveries assigned to the container","table":"VTTP","variant":"both"}],"title":"Export Container Load Volume and Weight Planning Program","url":"https://nekuhub.com/en/programs/export-container-load-volume-and-weight-planning-program/","vendor_id":"nekudos"}