{"audience":"Controllers, teams that manage marketing and campaign budgets, and CO teams that open many internal orders at the start of the year.","authorization_objects":[{"note":"Internal order create authorization by order type","object":"K_ORDER"}],"components":[],"countries":[],"effort_days_max":4,"effort_days_min":3,"effort_size":"M","faq":[{"a":"Budget entry is outside the scope of this program and is done with the standard budgeting transactions. If needed, a budget column can be added to the same file with a step that enters the budget after the orders are created; this extension adds 1–2 days to the effort range.","q":"Can a budget be loaded to the orders too?"},{"a":"If the order type's number range is internal, the system assigns the number. If external numbering is used, an order number column is added to the template and the numbers from the file are used.","q":"How are order numbers assigned?"},{"a":"The initial status of the order follows the status profile of the order type. If release right after creation is required, a separate status change step can be added to the program.","q":"Is the order released after creation?"}],"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 downloaded to a separate file, corrected and uploaded again."},{"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":"BAPI_INTERNALORDER_CREATE","role":"Creates the internal order with master data and settlement rule"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful orders permanently"},{"name":"BAPI_TRANSACTION_ROLLBACK","role":"Rolls back the change in test mode and for failed rows"}],"gap":"KO01 creates internal orders one at a time; copying from a reference order saves time, but every order is still entered separately. The settlement rule is maintained on a separate screen, often added later with KO02, and forgotten rules cause errors in the month-end settlement. Hundreds of campaign or project orders need bulk creation from a file.","id":"co-internal-order-mass-create","industries":[],"input_columns":[{"derived":false,"label":"Order type","required":true,"rule":"","target_field":"AUART","target_table":"AUFK"},{"derived":false,"label":"Short text","required":true,"rule":"","target_field":"KTEXT","target_table":"AUFK"},{"derived":false,"label":"Company code","required":true,"rule":"","target_field":"BUKRS","target_table":"AUFK"},{"derived":false,"label":"Plant","required":false,"rule":"","target_field":"WERKS","target_table":"AUFK"},{"derived":false,"label":"Profit center","required":false,"rule":"","target_field":"PRCTR","target_table":"AUFK"},{"derived":false,"label":"Responsible cost center","required":false,"rule":"","target_field":"KOSTV","target_table":"AUFK"},{"derived":false,"label":"Receiving cost center","required":true,"rule":"","target_field":"KOSTL","target_table":"COBRB"},{"derived":false,"label":"Settlement percentage","required":false,"rule":"","target_field":"PROZS","target_table":"COBRB"},{"derived":false,"label":"Settlement type","required":false,"rule":"","target_field":"PERBZ","target_table":"COBRB"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file is read from the user's PC or, in a background job, from the application server; the first row is skipped as the header.\n2. Every row is checked: order type, company code and profit center must exist; the responsible and receiving cost centers must be valid in the controlling area (CSKS); the settlement percentage must be between 0 and 100 and the settlement type PER or FUL.\n3. The row is mapped to the master data structure of BAPI_INTERNALORDER_CREATE (order type, short text, company code, plant, profit center, responsible cost center) and to the settlement rule lines.\n4. In test mode the BAPI is called and rolled back with BAPI_TRANSACTION_ROLLBACK, so every error is visible without posting.\n5. In a real run BAPI_TRANSACTION_COMMIT is called after each successful order; the created order number and messages are listed per row.","module":"CO","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":"Order","source_field":"AUFNR","source_table":"AUFK"},{"calculated":false,"formula":"","label":"Short text","source_field":"KTEXT","source_table":"AUFK"},{"calculated":true,"formula":"From the BAPI return messages: created, checked 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\\kampanya_siparisleri_2027.xlsx","kind":"parameter","label":"Upload file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"1000","kind":"parameter","label":"Controlling area","name":"P_KOKRS","ref_field":"AUFK-KOKRS","required":true},{"example":"X","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Files with a few hundred orders run in the foreground; for thousands of orders a background job is recommended. Committing per order isolates failed rows.","process":"R2R","quote_url":"https://nekuhub.com/en/request-a-quote/?report=co-internal-order-mass-create","related":["co-internal-order-budget-availability","co-orders-settlement-check"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Creates internal orders one at a time; no bulk creation from a file.","tcode":"KO01"},{"note":"Adds the settlement rule later, one order at a time.","tcode":"KO02"}],"summary":"A custom program that creates internal orders in bulk from file rows, with order type, company code, responsible cost center and profit center, and adds the settlement rule to each order in the same step. It checks in test mode and lists the created order numbers.","tables":[{"access":"write","join_on":"","role":"Internal order master: type, short text, company code, profit center, responsible cost center","table":"AUFK","variant":"both"},{"access":"write","join_on":"COBRB-OBJNR = AUFK-OBJNR","role":"Settlement rule: receiving cost center, percentage, settlement type","table":"COBRB","variant":"both"},{"access":"read","join_on":"CSKS-KOKRS = AUFK-KOKRS AND CSKS-KOSTL = AUFK-KOSTV","role":"Validity check of the responsible and receiving cost centers","table":"CSKS","variant":"both"}],"title":"Mass Internal Order Creation from Excel with Settlement Rule","url":"https://nekuhub.com/en/programs/mass-internal-order-creation-from-excel/","vendor_id":"nekudos"}