{"audience":"Customer service and order entry teams, and sales operations teams that receive orders as files from retail chains or distributors.","authorization_objects":[{"note":"Sales document create authorization by sales area","object":"V_VBAK_VKO"},{"note":"Create authorization by order type","object":"V_VBAK_AAT"}],"components":[],"countries":[],"effort_days_max":7,"effort_days_min":5,"effort_size":"M","faq":[{"a":"By default the price comes from SAP pricing. If the price agreed with the customer must come from the file, a column can be added that is passed as a manual pricing condition.","q":"Are prices taken from the file or from the system?"},{"a":"The material column can be left blank and the customer material number entered. The program finds the SAP material from the customer-material info record in KNMT; without a record, the row returns an error.","q":"What if the customer uses their own material codes?"},{"a":"Yes. BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_SIMULATE are supported on S/4HANA; although customer master data is kept through the business partner, the sales area data is checked the same way.","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":"An empty upload template can be downloaded as Excel."},{"code":"background","label":"Runs as a background job","note":""}],"functions":[{"name":"ALSM_EXCEL_TO_INTERNAL_TABLE","role":"Reads the XLSX file cell by cell"},{"name":"BAPI_SALESORDER_SIMULATE","role":"Prices and confirms the order in test mode without saving"},{"name":"BAPI_SALESORDER_CREATEFROMDAT2","role":"Creates the sales order for each order group"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful orders permanently"}],"gap":"VA01 creates orders one at a time by hand. Automatic orders through IDoc ORDERS need an EDI partner setup and a fixed mapping, while many customers send their orders as Excel sheets. LSMW recordings break when screens change. Teams that enter hundreds of order lines a week need an upload with a test mode that recognizes customer material numbers and prevents duplicate orders.","id":"sd-sales-order-upload","industries":[],"input_columns":[{"derived":false,"label":"Customer PO number","required":true,"rule":"","target_field":"BSTKD","target_table":"VBKD"},{"derived":false,"label":"Customer PO date","required":false,"rule":"","target_field":"BSTDK","target_table":"VBKD"},{"derived":false,"label":"Sold-to","required":true,"rule":"","target_field":"KUNNR","target_table":"VBAK"},{"derived":false,"label":"Ship-to","required":false,"rule":"","target_field":"KUNNR","target_table":"VBPA"},{"derived":false,"label":"Material","required":false,"rule":"","target_field":"MATNR","target_table":"VBAP"},{"derived":false,"label":"Customer material (if material is blank)","required":false,"rule":"","target_field":"KDMAT","target_table":"KNMT"},{"derived":false,"label":"Quantity","required":true,"rule":"","target_field":"KWMENG","target_table":"VBAP"},{"derived":false,"label":"Sales unit","required":false,"rule":"","target_field":"VRKME","target_table":"VBAP"},{"derived":false,"label":"Requested delivery date","required":false,"rule":"","target_field":"EDATU","target_table":"VBEP"},{"derived":false,"label":"Plant","required":false,"rule":"","target_field":"WERKS","target_table":"VBAP"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file (XLSX or CSV) is read from the user's PC or, in a background job, from the application server; rows are grouped into orders by customer PO number (BSTKD), sold-to and ship-to.\n2. Checks: the sold-to must exist in the selected sales area (KNVV); if the material is blank, the customer material number is converted to the SAP material through KNMT; the material must have sales organization data (MVKE).\n3. With the duplicate check selected, a group is skipped when an order with the same customer PO number (VBKD-BSTKD) already exists for the customer.\n4. In test mode BAPI_SALESORDER_SIMULATE is called; net price, confirmed quantity and messages are shown without saving.\n5. In a real run BAPI_SALESORDER_CREATEFROMDAT2 is called per group, followed by BAPI_TRANSACTION_COMMIT for successful orders. Order number, item, net value and messages are listed per row; failed rows can be downloaded as a separate file.","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":"Customer PO number","source_field":"BSTKD","source_table":"VBKD"},{"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":"Material","source_field":"MATNR","source_table":"VBAP"},{"calculated":false,"formula":"","label":"Net value","source_field":"NETWR","source_table":"VBAP"},{"calculated":true,"formula":"From the BAPI return messages: simulated, created, skipped 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\\musteri_siparis.xlsx","kind":"parameter","label":"Order file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"TA","kind":"parameter","label":"Order type","name":"P_AUART","ref_field":"VBAK-AUART","required":true},{"example":"1000","kind":"parameter","label":"Sales organization","name":"P_VKORG","ref_field":"VBAK-VKORG","required":true},{"example":"10","kind":"parameter","label":"Distribution channel","name":"P_VTWEG","ref_field":"VBAK-VTWEG","required":true},{"example":"00","kind":"parameter","label":"Division","name":"P_SPART","ref_field":"VBAK-SPART","required":true},{"example":"X","kind":"checkbox","label":"Skip orders whose customer PO number already exists","name":"P_DUPCHK","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (simulate without saving)","name":"P_TEST","ref_field":"","required":false}],"part_of":["ca-mass-upload-toolkit-pack"],"performance":"Run files above a few thousand rows as a background job. Committing per order isolates failed orders. Read KNMT and KNVV once with the list of customers in the file.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-sales-order-upload","related":["sd-incomplete-orders-missing-fields","sd-open-order-mass-change"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Creates orders one at a time by hand; does not read files.","tcode":"VA01"},{"note":"Can load from files but relies on screen recordings and needs technical maintenance.","tcode":"LSMW"}],"summary":"A custom program that creates sales orders in bulk from the rows of an order file sent by the customer. It groups rows into orders by customer PO number, converts customer material numbers to SAP materials, shows price and confirmed quantity in test mode without saving, and lists the result of every row.","tables":[{"access":"write","join_on":"","role":"Order header: type, sales area, sold-to","table":"VBAK","variant":"both"},{"access":"write","join_on":"","role":"Order items: material, quantity, plant","table":"VBAP","variant":"both"},{"access":"write","join_on":"","role":"Schedule lines: requested delivery date","table":"VBEP","variant":"both"},{"access":"read_write","join_on":"","role":"Customer PO number and date; also read for the duplicate check","table":"VBKD","variant":"both"},{"access":"write","join_on":"","role":"Ship-to partner","table":"VBPA","variant":"both"},{"access":"read","join_on":"KNVV-KUNNR = sipariş veren","role":"Customer sales area data (check)","table":"KNVV","variant":"both"},{"access":"read","join_on":"KNMT-KUNNR = sipariş veren AND KNMT-KDMAT = dosyadaki müşteri malzemesi","role":"Conversion from customer material number to SAP material","table":"KNMT","variant":"both"},{"access":"read","join_on":"MVKE-MATNR = malzeme","role":"Sales organization data of the material (check)","table":"MVKE","variant":"both"}],"title":"Mass Sales Order Creation from Excel Program","url":"https://nekuhub.com/en/programs/mass-sales-order-creation-from-excel-program/","vendor_id":"nekudos"}