{"audience":"Customer service, sales operations and planning teams; users who update the dates of many orders after a production or supply delay.","authorization_objects":[{"note":"Sales document change authorization by sales area","object":"V_VBAK_VKO"},{"note":"Change authorization by order type","object":"V_VBAK_AAT"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"After changing the requested date, the BAPI runs the standard availability check; the confirmed date and quantity are redetermined according to SAP rules. The resulting messages are written to the log.","q":"What happens to the confirmation and schedule lines when the date changes?"},{"a":"Dates and rejection reasons are not changed on fully delivered items; the program flags these rows as errors. For partially delivered items, the open quantity can be changed.","q":"Can items that already have a delivery be changed?"},{"a":"Yes. BAPI_SALESORDER_CHANGE is supported on S/4HANA; the status checks use the status fields in VBAP instead of VBUP.","q":"Can this program be used 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":"error_file","label":"Download failed lines as a separate file","note":"Failed rows can be corrected and uploaded again with the same template."},{"code":"excel","label":"Export to Excel","note":"A change template pre-filled from selected orders can be downloaded as Excel."},{"code":"background","label":"Runs as a background job","note":""}],"functions":[{"name":"BAPI_SALESORDER_CHANGE","role":"Changes the date, partner and rejection reason on the order"},{"name":"BAPI_TRANSACTION_ROLLBACK","role":"Rolls back the change in test mode"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful changes permanently"}],"gap":"VA02 changes one order. MASS can make mass changes, but it does not read a file, does not always redetermine schedule lines, route and pricing as expected, and gives no test result per row. After a supply delay, changing the date or the ship-to of hundreds of orders needs a controlled program that keeps a log.","id":"sd-open-order-mass-change","industries":[],"input_columns":[{"derived":false,"label":"Sales order","required":true,"rule":"","target_field":"VBELN","target_table":"VBAP"},{"derived":false,"label":"Item (blank = all items)","required":false,"rule":"","target_field":"POSNR","target_table":"VBAP"},{"derived":false,"label":"New requested delivery date","required":false,"rule":"","target_field":"EDATU","target_table":"VBEP"},{"derived":false,"label":"New ship-to","required":false,"rule":"","target_field":"KUNNR","target_table":"VBPA"},{"derived":false,"label":"Reason for rejection","required":false,"rule":"","target_field":"ABGRU","target_table":"VBAP"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file is read; each row holds the order, the item and the fields to change (new requested delivery date, new ship-to, reason for rejection).\n2. Checks: the order must exist and be open (VBUP-GBSTA ≠ C); for a date change the item must not be fully delivered (VBUP-LFSTA ≠ C); the new ship-to must be among the partners of the sold-to (KNVP).\n3. The old values are read from VBEP, VBPA and VBAP and logged.\n4. The header, item, schedule line and partner change structures of BAPI_SALESORDER_CHANGE are filled with their update flags (X structures); with pricing redetermination selected, pricing is triggered through LOGIC_SWITCH.\n5. In test mode the BAPI is called and rolled back with BAPI_TRANSACTION_ROLLBACK; in a real run BAPI_TRANSACTION_COMMIT follows each successful order. Old value, new value and message are listed per row.","module":"SD","object_type":"upload","output_columns":[{"calculated":true,"formula":"Row number in the file","label":"Row","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Sales order","source_field":"VBELN","source_table":"VBAP"},{"calculated":false,"formula":"","label":"Item","source_field":"POSNR","source_table":"VBAP"},{"calculated":true,"formula":"The field filled in the file: delivery date, ship-to or rejection reason","label":"Changed field","source_field":null,"source_table":null},{"calculated":true,"formula":"VBEP-EDATU, VBPA-KUNNR or VBAP-ABGRU before the change","label":"Old value","source_field":null,"source_table":null},{"calculated":true,"formula":"Value from the file","label":"New value","source_field":null,"source_table":null},{"calculated":true,"formula":"From the BAPI return messages: checked, changed or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"First error or success message from the BAPI return table","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"C:\\temp\\siparis_degisiklik.xlsx","kind":"parameter","label":"Change file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"","kind":"checkbox","label":"Redetermine pricing for changed items","name":"P_PRICE","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without saving)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Group the rows of the same order and change the order in a single BAPI call; this reduces lock conflicts and unnecessary repricing. Run large files in the background.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-open-order-mass-change","related":["sd-otif-delivery-performance","sd-sales-order-upload"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Changes one order; no mass change and no file input.","tcode":"VA02"},{"note":"Can make mass changes; does not read a file and gives no test result per row.","tcode":"MASS"}],"summary":"A custom program that changes the requested delivery date, the ship-to and the reason for rejection on open sales orders in bulk, from the rows of a file. It makes the changes through the standard BAPI, can redetermine pricing, checks everything in test mode first and logs the old and new value of every row.","tables":[{"access":"read","join_on":"VBAK-VBELN = dosyadaki sipariş","role":"Order header and sold-to (check)","table":"VBAK","variant":"both"},{"access":"write","join_on":"VBAP-VBELN = VBAK-VBELN","role":"Reason for rejection of the item","table":"VBAP","variant":"both"},{"access":"write","join_on":"VBEP-VBELN = VBAP-VBELN AND VBEP-POSNR = VBAP-POSNR","role":"Requested delivery date in the schedule line","table":"VBEP","variant":"both"},{"access":"write","join_on":"VBPA-VBELN = VBAK-VBELN AND VBPA-PARVW = malı teslim alan rolü","role":"Ship-to partner","table":"VBPA","variant":"both"},{"access":"read","join_on":"VBUP-VBELN = VBAP-VBELN AND VBUP-POSNR = VBAP-POSNR","role":"Item overall and delivery status (check)","table":"VBUP","variant":"ecc"},{"access":"read","join_on":"KNVP-KUNNR = VBAK-KUNNR","role":"Permitted ship-to partners of the sold-to (check)","table":"KNVP","variant":"both"}],"title":"Mass Change Program for Open Sales Orders (Delivery Date, Ship-to, Rejection Reason)","url":"https://nekuhub.com/en/programs/mass-change-open-sales-orders-program/","vendor_id":"nekudos"}