{"audience":"Accounts payable teams, general ledger, facilities and fleet management owners.","authorization_objects":[{"note":"Posting authorization for the company code","object":"F_BKPF_BUK"},{"note":"Authorization to post vendor and G/L items","object":"F_BKPF_KOA"},{"note":"Authorization to read cost center master data","object":"K_CSKS"}],"components":[],"countries":[],"effort_days_max":15,"effort_days_min":10,"effort_size":"L","faq":[{"a":"If a vehicle ID system or card number is on the invoice, the rule is set up with the card number. If there is no distinguishing data, the invoice is posted to a default cost center and a distribution list can be uploaded separately.","q":"How is fuel distributed if the plate is not on the invoice?"},{"a":"The rate is kept in the rule table with a valid-from date; the new rate is entered from the relevant date and past invoices are not affected. The program contains no legal rate; the finance team maintains it according to current regulation.","q":"What if the non-deductible rate changes?"}],"features":[{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"background","label":"Runs as a background job","note":"Incoming e-invoices are processed automatically every day."},{"code":"email","label":"Send the result by email","note":"Invoices waiting for a rule are notified to the owner."}],"functions":[{"name":"FI_DUPLICATE_INVOICE_CHECK","role":"Blocks duplicate invoices"},{"name":"BAPI_ACC_DOCUMENT_CHECK","role":"Checks the document without posting"},{"name":"BAPI_ACC_DOCUMENT_POST","role":"Posts the vendor invoice"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful documents"},{"name":"CALCULATE_TAX_FROM_GROSSAMOUNT","role":"Checks the tax amount from gross lines"}],"gap":"FB60 and FB10 enter the invoice by hand; e-invoice integration solutions bring the invoice into SAP but do not know which account and cost center the lines belong to. For hundreds of subscriptions and vehicles the same distribution is done by hand every month, the non-deductible share for passenger cars is calculated as a separate line and small rounding differences are a nuisance. FBD1 recurring entries do not suit invoices whose amounts change.","id":"fi-utility-einvoice-auto-posting","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-18","logic":"1. Invoices from the e-invoice integration are read: supplier tax number, invoice number and date, lines, taxes and the subscriber/installation number or plate on the invoice. The vendor account is found by the supplier tax number (LFA1-STCD1/STCD2 in ECC, business partner tax numbers DFKKBPTAXNUM in S/4HANA).\n2. The rule table is checked: supplier + subscriber/installation number → G/L account and cost center; supplier + plate → vehicle cost center and vehicle type (passenger/commercial). An invoice without a rule goes to the 'rule pending' list, and a rule defined once is used in later months.\n3. For passenger cars the non-deductible share is split to a separate expense account with the rate in the rule table; the rate and scope are entered during installation according to current regulation, the program has no fixed value. Rounding and discount lines are written to defined accounts.\n4. Checks that the G/L account is open for posting (SKB1), the cost center is valid (CSKS) and the tax code (T007A) fits; duplicate invoices are blocked with FI_DUPLICATE_INVOICE_CHECK.\n5. The document is checked with BAPI_ACC_DOCUMENT_CHECK and posted as a vendor invoice with BAPI_ACC_DOCUMENT_POST (BKPF, BSEG; ACDOCA in S/4HANA). Optionally it is parked first and sent to the invoice approval workflow.\n6. The result list shows supplier, subscriber/plate, distributed accounts, non-deductible amount and document number; a monthly comparison flags subscriptions whose amount rose clearly compared with the previous month.","module":"FI","object_type":"interface","output_columns":[{"calculated":false,"formula":"","label":"Supplier","source_field":"LIFNR","source_table":"LFA1"},{"calculated":false,"formula":"","label":"Supplier name","source_field":"NAME1","source_table":"LFA1"},{"calculated":false,"formula":"","label":"Invoice number","source_field":"XBLNR","source_table":"BKPF"},{"calculated":true,"formula":"Subscriber, installation number or plate on the invoice","label":"Subscriber / plate","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"G/L account","source_field":"HKONT","source_table":"BSEG"},{"calculated":false,"formula":"","label":"Cost center","source_field":"KOSTL","source_table":"BSEG"},{"calculated":false,"formula":"","label":"Amount","source_field":"WRBTR","source_table":"BSEG"},{"calculated":true,"formula":"Amount split with the rule rate on passenger car lines","label":"Non-deductible","source_field":null,"source_table":null},{"calculated":true,"formula":"(This month − last month) / last month","label":"Change vs previous month","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Document","source_field":"BELNR","source_table":"BKPF"},{"calculated":true,"formula":"Posted, parked, rule pending, duplicate or error","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Company code","name":"S_BUKRS","ref_field":"BKPF-BUKRS","required":true},{"example":"","kind":"select_option","label":"Supplier","name":"S_LIFNR","ref_field":"LFA1-LIFNR","required":false},{"example":"01.11.2026 – 30.11.2026","kind":"select_option","label":"Invoice date","name":"S_BLDAT","ref_field":"BKPF-BLDAT","required":false},{"example":"30.11.2026","kind":"parameter","label":"Posting date","name":"P_BUDAT","ref_field":"BKPF-BUDAT","required":true},{"example":"","kind":"checkbox","label":"Park and send for approval instead of posting","name":"P_PARK","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Load the rule table once per supplier. For invoices with hundreds of lines such as fuel invoices, summarize the plate lines by cost center and account to reduce the number of document lines.","process":"P2P","quote_url":"https://nekuhub.com/en/request-a-quote/?report=fi-utility-einvoice-auto-posting","related":["fi-external-system-journal-interface","fi-incoming-invoice-approval-workflow","tr-einvoice-earchive-ewaybill-cockpit"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Enters the vendor invoice by hand; no distribution rules by subscriber or plate.","tcode":"FB60"},{"note":"Offers fast invoice entry; the user still chooses the account and cost center.","tcode":"FB10"},{"note":"Sets up recurring entries with fixed amounts; does not suit invoices whose amounts change.","tcode":"FBD1"}],"summary":"A program that distributes the monthly electricity, gas, water, telecom and fuel e-invoices to the right G/L account and cost center by rules based on the supplier tax number, subscriber or installation number and vehicle plate, and posts them as vendor invoices. The non-deductible expense split for passenger cars, rounding and discount lines are also handled automatically by rule.","tables":[{"access":"read","join_on":"","role":"Vendor account from the supplier tax number","table":"LFA1","variant":"both"},{"access":"read","join_on":"LFB1-LIFNR = LFA1-LIFNR","role":"Vendor company code data and reconciliation account","table":"LFB1","variant":"both"},{"access":"read","join_on":"","role":"Business partner tax numbers (S/4HANA)","table":"DFKKBPTAXNUM","variant":"s4"},{"access":"read","join_on":"SKB1-SAKNR = kuraldaki ana hesap","role":"Expense account open for posting","table":"SKB1","variant":"both"},{"access":"read","join_on":"CSKS-KOSTL = kuraldaki masraf yeri","role":"Cost center validity","table":"CSKS","variant":"both"},{"access":"read","join_on":"","role":"Tax code check","table":"T007A","variant":"both"},{"access":"read_write","join_on":"BKPF-XBLNR = e-fatura numarası","role":"Vendor invoice document; duplicate reference check","table":"BKPF","variant":"both"},{"access":"write","join_on":"BSEG-BUKRS = BKPF-BUKRS AND BSEG-BELNR = BKPF-BELNR","role":"Distributed expense, non-deductible expense and tax lines","table":"BSEG","variant":"both"},{"access":"write","join_on":"ACDOCA-RBUKRS = BKPF-BUKRS AND ACDOCA-BELNR = BKPF-BELNR","role":"Journal entry lines (S/4HANA)","table":"ACDOCA","variant":"s4"}],"title":"Automatic Posting of Utility, Telecom and Fuel e-Invoices with Account and Cost Center Determination","url":"https://nekuhub.com/en/programs/automatic-posting-of-utility-telecom-and-fuel-einvoices/","vendor_id":"nekudos"}