{"audience":"General ledger teams, accountants who run the period close and finance teams that bring entries calculated in external systems into SAP.","authorization_objects":[{"note":"Accounting document posting authorization by company code","object":"F_BKPF_BUK"},{"note":"Posting authorization by document type","object":"F_BKPF_BLA"}],"components":[],"countries":[],"effort_days_max":5,"effort_days_min":3,"effort_size":"M","faq":[{"a":"The standard version posts the documents and lists their numbers. By adding a reversal date column, the uploaded documents can be reversed on that date with BAPI_ACC_DOCUMENT_REV_POST; this extension adds 1–2 days to the effort range.","q":"Can accruals be reversed automatically at the start of the next month?"},{"a":"Yes. When a tax code column is added to the template, the tax line is calculated through the BAPI tax structure and added to the document. The tax codes are checked against local regulation during installation.","q":"Can entries with tax be uploaded?"},{"a":"Yes. BAPI_ACC_DOCUMENT_POST is supported on S/4HANA as well and the posting is written to ACDOCA. Where the Fiori journal entry upload app is not used or company-specific checks are needed, this program works with the same template.","q":"Can it 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":"Rows of failed documents 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_ACC_DOCUMENT_CHECK","role":"Checks the document without posting (test mode and pre-check)"},{"name":"BAPI_ACC_DOCUMENT_POST","role":"Posts each document with all its lines"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful documents permanently"}],"gap":"FB50 and F-02 enter postings one by one on the screen; accrual or allocation files with hundreds of lines are typed by hand. Pasting from Excel in FB50 is limited to the screen and gives no cross-document check or result list per row. File-based entries that repeat every month at the close need an upload program with a test mode.","id":"fi-gl-journal-entry-upload","industries":[],"input_columns":[{"derived":true,"label":"Document key","required":true,"rule":"Rows with the same key are collected into one document","target_field":null,"target_table":null},{"derived":false,"label":"Company code","required":true,"rule":"","target_field":"BUKRS","target_table":"BKPF"},{"derived":false,"label":"Document type","required":true,"rule":"","target_field":"BLART","target_table":"BKPF"},{"derived":false,"label":"Document date","required":true,"rule":"","target_field":"BLDAT","target_table":"BKPF"},{"derived":false,"label":"Posting date","required":true,"rule":"","target_field":"BUDAT","target_table":"BKPF"},{"derived":false,"label":"Currency","required":true,"rule":"","target_field":"WAERS","target_table":"BKPF"},{"derived":false,"label":"Reference","required":false,"rule":"","target_field":"XBLNR","target_table":"BKPF"},{"derived":false,"label":"Header text","required":false,"rule":"","target_field":"BKTXT","target_table":"BKPF"},{"derived":false,"label":"G/L account","required":true,"rule":"","target_field":"HKONT","target_table":"BSEG"},{"derived":true,"label":"Amount","required":true,"rule":"Positive = debit, negative = credit; written to the BAPI amount structure in document currency","target_field":null,"target_table":null},{"derived":false,"label":"Cost center","required":false,"rule":"","target_field":"KOSTL","target_table":"BSEG"},{"derived":false,"label":"Profit center","required":false,"rule":"","target_field":"PRCTR","target_table":"BSEG"},{"derived":false,"label":"Internal order","required":false,"rule":"","target_field":"AUFNR","target_table":"BSEG"},{"derived":false,"label":"Assignment","required":false,"rule":"","target_field":"ZUONR","target_table":"BSEG"},{"derived":false,"label":"Item text","required":false,"rule":"","target_field":"SGTXT","target_table":"BSEG"}],"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 and rows with the same document key are collected into one document.\n2. Every document is checked: company code and document type must exist, the account must be open in the company code and must not be an automatic-postings-only account (SKB1-XINTB), the cost center must be valid on the posting date (CSKS), and total debits must equal total credits.\n3. The document is mapped to the header, G/L line and amount structures and checked with BAPI_ACC_DOCUMENT_CHECK; closed periods and account assignment errors show up here.\n4. In test mode only the check runs and all messages are listed.\n5. In a real run each document is posted with BAPI_ACC_DOCUMENT_POST followed by BAPI_TRANSACTION_COMMIT. With P_ALLOK, nothing is posted if a single document in the file has an error. The document number and fiscal year are taken from the returned object key to build a result list per row.","module":"FI","object_type":"upload","output_columns":[{"calculated":true,"formula":"Document key from the file","label":"Document key","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of file rows in the document","label":"Lines","source_field":null,"source_table":null},{"calculated":true,"formula":"From the BAPI return messages: posted, checked or error","label":"Status","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Document number","source_field":"BELNR","source_table":"BKPF"},{"calculated":false,"formula":"","label":"Fiscal year","source_field":"GJAHR","source_table":"BKPF"},{"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\\tahakkuklar_ekim.xlsx","kind":"parameter","label":"Upload file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Post only if all documents are error-free","name":"P_ALLOK","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 document isolates failed documents; a single document must not exceed 999 lines.","process":"R2R","quote_url":"https://nekuhub.com/en/request-a-quote/?report=fi-gl-journal-entry-upload","related":["co-cost-center-plan-upload","fi-parked-documents-aging"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Enters a G/L document manually on one screen; no bulk posting from a file and no result per row.","tcode":"FB50"},{"note":"General posting screen; every document is entered separately.","tcode":"F-02"}],"summary":"A custom program that posts multi-line G/L documents (accruals, reclassifications, allocation entries) in bulk from Excel or CSV rows. It checks every document first, shows all errors in test mode without posting, and lists the document numbers per row at the end.","tables":[{"access":"write","join_on":"","role":"Accounting document header: company code, document type, dates, reference","table":"BKPF","variant":"both"},{"access":"write","join_on":"BSEG-BUKRS = BKPF-BUKRS AND BSEG-BELNR = BKPF-BELNR AND BSEG-GJAHR = BKPF-GJAHR","role":"Document line items: account, amount, cost center, profit center, assignment","table":"BSEG","variant":"both"},{"access":"read","join_on":"SKB1-BUKRS = BKPF-BUKRS AND SKB1-SAKNR = BSEG-HKONT","role":"Check that the account exists in the company code and is not automatic-only","table":"SKB1","variant":"both"},{"access":"read","join_on":"CSKS-KOSTL = BSEG-KOSTL","role":"Validity of the cost center on the posting date","table":"CSKS","variant":"both"}],"title":"Mass G/L Journal Entry Upload from Excel","url":"https://nekuhub.com/en/programs/mass-gl-journal-entry-upload-from-excel/","vendor_id":"nekudos"}