{"audience":"Shipping planners, warehouse teams, customer service and SD consultants.","authorization_objects":[{"note":"Authorization to create deliveries by shipping point","object":"V_LIKP_VST"},{"note":"Authorization to read orders by sales area","object":"V_VBAK_VKO"},{"note":"Authorization to send email (for the job user)","object":"S_OC_SEND"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"The standard background run creates the deliveries but gives no reason for orders that were never selected. The custom job uses the same delivery logic through the BAPI and writes a reason for every order on hold, so customer service knows the problem before the customer calls.","q":"Why a custom job instead of a VL10A background run?"},{"a":"No. Split criteria such as shipping point, ship-to, route and date come from the standard delivery creation and copy control settings; the program only decides which items go to delivery.","q":"Do the delivery split rules change?"},{"a":"Yes. BAPI_OUTB_DELIVERY_CREATE_SLS is also used in S/4HANA. Status fields are read from VBAK and VBAP instead of VBUK/VBUP; for warehouses that run EWM, the warehouse request is distributed by the standard after the delivery is created.","q":"Does the program work on S/4HANA?"}],"features":[{"code":"background","label":"Runs as a background job","note":""},{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"email","label":"Send the result by email","note":"The exception list is sent to the person responsible for the shipping point every morning."},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""}],"functions":[{"name":"BAPI_OUTB_DELIVERY_CREATE_SLS","role":"Creates outbound deliveries for the order items that passed the checks"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves the deliveries created permanently"},{"name":"SO_DOCUMENT_SEND_API1","role":"Emails the exception list to the shipping team"}],"gap":"VL10A can also run delivery creation in the background with a variant, but its collective processing log only holds messages for the orders it processed. Orders that were never selected because of a credit block, a delivery block or missing confirmation do not appear in the log, and nobody is informed. VA14L gives orders blocked for delivery in a separate list. The custom job creates the deliveries and sends the \"why no delivery\" list to the responsible team every morning.","id":"sd-overnight-delivery-creation-exceptions","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. Selection: from the schedule lines of open order items at the shipping point (VBAP-VSTEL), those whose material availability date (VBEP-MBDAT) is not later than the upper limit are taken; fully delivered items are skipped (VBUP-LFSTA in ECC, VBAP-LFSTA in S/4HANA).\n2. Pre-checks and reasons: header delivery block (VBAK-LIFSK), schedule-line delivery block (VBEP-LIFSP), credit status (VBUK-CMGST in ECC, VBAK-CMGST in S/4HANA), data incomplete for delivery (VBUK-UVVLK in ECC), zero confirmed quantity (VBEP-BMENG) and, if selected, an unconfirmed item on an order that requires complete delivery (VBAK-AUTLF).\n3. Items that pass are passed to BAPI_OUTB_DELIVERY_CREATE_SLS per order; split rules by shipping point, date and ship-to follow the standard delivery logic.\n4. BAPI_TRANSACTION_COMMIT is called after each successful order; the delivery number and quantity created (LIKP, LIPS) are written to the result list. In test mode only the pre-checks run and the items that would be delivered are listed.\n5. Held and failed lines are emailed to the shipping team with SO_DOCUMENT_SEND_API1; the full list stays in the job spool.","module":"SD","object_type":"batch_job","output_columns":[{"calculated":false,"formula":"","label":"Sales order","source_field":"VBELN","source_table":"VBAK"},{"calculated":false,"formula":"","label":"Item","source_field":"POSNR","source_table":"VBAP"},{"calculated":false,"formula":"","label":"Customer","source_field":"KUNNR","source_table":"VBAK"},{"calculated":false,"formula":"","label":"Customer name","source_field":"NAME1","source_table":"KNA1"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"VBAP"},{"calculated":false,"formula":"","label":"Availability date","source_field":"MBDAT","source_table":"VBEP"},{"calculated":false,"formula":"","label":"Confirmed qty","source_field":"BMENG","source_table":"VBEP"},{"calculated":false,"formula":"","label":"Delivery","source_field":"VBELN","source_table":"LIKP"},{"calculated":false,"formula":"","label":"Delivery qty","source_field":"LFIMG","source_table":"LIPS"},{"calculated":true,"formula":"Created, test OK, on hold or error","label":"Result","source_field":null,"source_table":null},{"calculated":true,"formula":"Text of the first failed pre-check or the BAPI error message","label":"Reason","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Shipping point","name":"S_VSTEL","ref_field":"VBAP-VSTEL","required":true},{"example":"1000","kind":"select_option","label":"Sales organization","name":"S_VKORG","ref_field":"VBAK-VKORG","required":false},{"example":"200100","kind":"select_option","label":"Sold-to party","name":"S_KUNNR","ref_field":"VBAK-KUNNR","required":false},{"example":"01","kind":"select_option","label":"Delivery priority","name":"S_LPRIO","ref_field":"VBAP-LPRIO","required":false},{"example":"18.11.2026","kind":"parameter","label":"Material availability date upper limit (default: tomorrow)","name":"P_DUEDT","ref_field":"VBEP-MBDAT","required":true},{"example":"X","kind":"checkbox","label":"Hold orders requiring complete delivery that have unconfirmed items","name":"P_COMPL","ref_field":"","required":false},{"example":"sevkiyat@ornek-sirket.com.tr","kind":"parameter","label":"Email address for the exception list","name":"P_MAIL","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Test mode (check without creating deliveries)","name":"P_TEST","ref_field":"","required":false}],"part_of":["o2c-order-fulfilment-backorder-pack"],"performance":"Split the job into separate steps per shipping point; the shipping point ranges must not overlap so that two parallel jobs never process the same order. Locked orders are listed as errors and retried in the next run.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-overnight-delivery-creation-exceptions","related":["sd-backorders-unconfirmed-items","sd-credit-blocked-orders-by-value","sd-goods-issue-from-warehouse-file","sd-scheduled-billing-with-checks"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Creates deliveries for due orders and can run in the background; does not report why orders were not selected.","tcode":"VL10A"},{"note":"Lists orders blocked for delivery; does not create deliveries or show missing confirmations.","tcode":"VA14L"}],"summary":"A custom background program that creates outbound deliveries every night for confirmed sales order items whose material availability date has come, and lists the orders it could not deliver with their reason, such as credit block, delivery block, incomplete data or missing confirmation, and emails that list to the shipping team.","tables":[{"access":"read","join_on":"","role":"Order header: customer, delivery block, complete delivery indicator","table":"VBAK","variant":"both"},{"access":"read","join_on":"VBAP-VBELN = VBAK-VBELN","role":"Item: material, shipping point, delivery priority","table":"VBAP","variant":"both"},{"access":"read","join_on":"VBEP-VBELN = VBAP-VBELN AND VBEP-POSNR = VBAP-POSNR","role":"Material availability date, confirmed quantity, schedule-line block","table":"VBEP","variant":"both"},{"access":"read","join_on":"VBUK-VBELN = VBAK-VBELN","role":"Credit status and incompletion status for delivery in ECC","table":"VBUK","variant":"ecc"},{"access":"read","join_on":"KNA1-KUNNR = VBAK-KUNNR","role":"Customer name","table":"KNA1","variant":"both"},{"access":"write","join_on":"","role":"Delivery headers created","table":"LIKP","variant":"both"},{"access":"write","join_on":"","role":"Delivery items and quantities created","table":"LIPS","variant":"both"}],"title":"Overnight Outbound Delivery Creation Job for Due Sales Orders with Exception List","url":"https://nekuhub.com/en/programs/overnight-outbound-delivery-creation-job-with-exception-list/","vendor_id":"nekudos"}