{"audience":"General ledger teams, internal and external auditors, tax advisors.","authorization_objects":[{"note":"Accounting document display authorization by company code","object":"F_BKPF_BUK"},{"note":"G/L account authorization by company code","object":"F_SKA1_BUK"},{"note":"Document authorization by account type (customer/vendor lines)","object":"F_BKPF_KOA"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"The account of the largest opposite-side line is used, and the row is flagged as \"multiple\" when there are several. Optionally, a view that produces one row per offsetting line can be added.","q":"How is the offsetting account determined in multi-line documents?"},{"a":"It is taken from the account totals before the period (FAGLFLEXT in the new G/L), so the running balance agrees with the G/L account balance.","q":"Where does the opening balance come from?"},{"a":"On S/4HANA the offsetting account is already in ACDOCA and the report is simpler to build; for the running balance, partner names and the audit layout a custom list is still preferred.","q":"Is it still needed on S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking the document number opens FB03."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":"Large volumes such as the annual audit file are run in the background."}],"functions":[],"gap":"FBL3N and FAGLL03 list G/L line items, but the offsetting account and the customer/vendor name from the same document are not on the row; even with extra fields only the partner on that line is filled. A running balance and separate debit/credit columns are not part of the standard layout either. For the classic ledger format auditors ask for, the data is matched document by document in Excel.","id":"fi-gl-line-items-partner-offset","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Document headers are read from BKPF by company code, posting date range and document type; reversals and parked documents are excluded.\n2. The BSEG lines of the documents are read; lines within the S_HKONT range become report rows.\n3. Partner: when KUNNR/LIFNR is filled on the line it is used; otherwise it is taken from the customer (KOART = D) or vendor (KOART = K) line of the same document. The name is added from KNA1/LFA1.\n4. Offsetting account: in a two-line document, the account of the other line; in a multi-line document, the account of the largest line on the opposite side, flagged as \"multiple\" when there are several. The account name is read from SKAT (with T001-KTOPL).\n5. The amount goes to the debit or credit column by SHKZG; the opening balance comes from the totals before the period and a running balance is calculated per account.","module":"FI","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"G/L account","source_field":"HKONT","source_table":"BSEG"},{"calculated":false,"formula":"","label":"Account name","source_field":"TXT50","source_table":"SKAT"},{"calculated":false,"formula":"","label":"Posting date","source_field":"BUDAT","source_table":"BKPF"},{"calculated":false,"formula":"","label":"Document","source_field":"BELNR","source_table":"BKPF"},{"calculated":false,"formula":"","label":"Document type","source_field":"BLART","source_table":"BKPF"},{"calculated":false,"formula":"","label":"Reference","source_field":"XBLNR","source_table":"BKPF"},{"calculated":false,"formula":"","label":"Text","source_field":"SGTXT","source_table":"BSEG"},{"calculated":true,"formula":"BSEG-DMBTR when SHKZG = S","label":"Debit","source_field":null,"source_table":null},{"calculated":true,"formula":"BSEG-DMBTR when SHKZG = H","label":"Credit","source_field":null,"source_table":null},{"calculated":true,"formula":"Opening balance + debit − credit (cumulative per account)","label":"Running balance","source_field":null,"source_table":null},{"calculated":true,"formula":"BSEG-HKONT of the opposite-side line in the same document (largest amount when several)","label":"Offsetting account","source_field":null,"source_table":null},{"calculated":true,"formula":"SKAT-TXT50 text of the offsetting account","label":"Offsetting account name","source_field":null,"source_table":null},{"calculated":true,"formula":"BSEG-KUNNR or BSEG-LIFNR from the line or from the document's D/K line","label":"Partner","source_field":null,"source_table":null},{"calculated":true,"formula":"KNA1-NAME1 or LFA1-NAME1","label":"Partner name","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Trading partner","source_field":"VBUND","source_table":"BSEG"},{"calculated":false,"formula":"","label":"Cost center","source_field":"KOSTL","source_table":"BSEG"}],"parameters":[{"example":"1000","kind":"select_option","label":"Company code","name":"S_BUKRS","ref_field":"BKPF-BUKRS","required":true},{"example":"7700000000","kind":"select_option","label":"G/L account","name":"S_HKONT","ref_field":"BSEG-HKONT","required":true},{"example":"01.10.2026 – 31.10.2026","kind":"select_option","label":"Posting date","name":"S_BUDAT","ref_field":"BKPF-BUDAT","required":true},{"example":"KR","kind":"select_option","label":"Document type","name":"S_BLART","ref_field":"BKPF-BLART","required":false},{"example":"4110","kind":"select_option","label":"Cost center","name":"S_KOSTL","ref_field":"BSEG-KOSTL","required":false},{"example":"PC100","kind":"select_option","label":"Profit center","name":"S_PRCTR","ref_field":"BSEG-PRCTR","required":false},{"example":"X","kind":"checkbox","label":"Show opening and running balance","name":"P_OPEN","ref_field":"","required":false}],"part_of":[],"performance":"In ECC, BSEG is a cluster table; read BKPF first by date and company code, then go to BSEG with the full document key. For open-item managed accounts the BSIS/BSAS index tables are a faster entry point. On S/4HANA ACDOCA already holds the offsetting account (GKONT) and its type, so the read collapses to one table.","process":"R2R","quote_url":"https://nekuhub.com/en/request-a-quote/?report=fi-gl-line-items-partner-offset","related":["fi-asset-register-depreciation-areas","fi-customer-vendor-netting"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists G/L line items; the offsetting account and the document's partner are not on the row.","tcode":"FBL3N"},{"note":"Shows new G/L line items; gives no running balance or offsetting account name.","tcode":"FAGLL03"}],"summary":"A custom ALV general ledger report that lists the line items of selected G/L accounts with debit, credit and running balance, and adds the offsetting account, the customer or vendor and the trading partner to every row. It produces one file for auditor and tax advisor requests.","tables":[{"access":"read","join_on":"","role":"Document header: posting date, document type, reference (driving table)","table":"BKPF","variant":"both"},{"access":"read","join_on":"BSEG-BUKRS = BKPF-BUKRS AND BSEG-BELNR = BKPF-BELNR AND BSEG-GJAHR = BKPF-GJAHR","role":"Document lines: account, amount, partner, cost center, trading partner","table":"BSEG","variant":"both"},{"access":"read","join_on":"SKAT-KTOPL = T001-KTOPL AND SKAT-SAKNR = BSEG-HKONT AND SKAT-SPRAS = SY-LANGU","role":"G/L and offsetting account names","table":"SKAT","variant":"both"},{"access":"read","join_on":"KNA1-KUNNR = BSEG-KUNNR","role":"Customer name","table":"KNA1","variant":"both"},{"access":"read","join_on":"LFA1-LIFNR = BSEG-LIFNR","role":"Vendor name","table":"LFA1","variant":"both"},{"access":"read","join_on":"T001-BUKRS = BKPF-BUKRS","role":"Chart of accounts and company code currency","table":"T001","variant":"both"},{"access":"read","join_on":"RBUKRS = BKPF-BUKRS AND BELNR = BKPF-BELNR AND GJAHR = BKPF-GJAHR","role":"All line items including the offsetting account (GKONT) on S/4HANA","table":"ACDOCA","variant":"s4"}],"title":"G/L Line Items with Offsetting Account and Business Partner Report","url":"https://nekuhub.com/en/reports/gl-line-items-offsetting-account-partner-report/","vendor_id":"nekudos"}