{"audience":"Receivables and collection teams, finance managers, customer service and sales teams working with small dealers.","authorization_objects":[{"note":"Collection posting authorization by company code (interface user)","object":"F_BKPF_BUK"},{"note":"Account type authorization for customer and G/L postings","object":"F_BKPF_KOA"},{"note":"Sending external email from SAP","object":"S_OC_SEND"},{"note":"Services called by the payment page","object":"S_RFC"}],"components":[],"countries":[],"effort_days_max":25,"effort_days_min":15,"effort_size":"L","faq":[{"a":"No. Card data is entered only on the virtual POS provider's hosted payment page. Only the payment result, amount, instalment information and the provider reference reach SAP, so card data security obligations stay with the provider.","q":"Is card data stored in SAP?"},{"a":"The customer debt is cleared fully at the time of payment and the amount waits on the virtual POS clearing account. When the bank credits the money with its value date, a statement rule clears the clearing account and posts the commission difference to an expense account. Commission rates are not coded in the program; they come from the bank statement.","q":"How are instalment payments and bank commission accounted for?"},{"a":"Yes. The provider connection is kept in a separate connector class; each provider is defined with its own clearing account and is chosen by company code or currency.","q":"Can several virtual POS providers be used?"}],"features":[{"code":"email","label":"Send the result by email","note":"The link, reminders and the collection receipt are emailed to the customer."},{"code":"log","label":"Line-by-line result and error log","note":"Each provider notification and posting result is stored."},{"code":"background","label":"Runs as a background job","note":"Expired links and pending notifications are processed by a periodic job."},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"The collection document and the customer open the related screen."}],"functions":[{"name":"BAPI_AR_ACC_GETOPENITEMS","role":"Reads the open items covered by the link"},{"name":"BAPI_AR_ACC_GETKEYDATEBALANCE","role":"Returns the key-date balance for a balance-based link"},{"name":"BAPI_ACC_DOCUMENT_POST","role":"Posts the virtual POS collection"},{"name":"POSTING_INTERFACE_CLEARING","role":"Clears the paid invoices"},{"name":"SO_NEW_DOCUMENT_ATT_SEND_API1","role":"Emails the payment link and the collection receipt"}],"gap":"SAP manages open items, dunning and account statements, but it does not generate a payment link that works with virtual POS providers for an open invoice and does not post card collections automatically. When the collection is looked up in the virtual POS report and entered manually with F-28, which payment belongs to which invoice and the bank commission are matched afterwards.","id":"fi-online-payment-link-collection","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-19","logic":"1. The sending screen reads open items by company code, customer and invoice reference (BAPI_AR_ACC_GETOPENITEMS; BSID in ECC, ACDOCA in S/4HANA). The user creates a link for one invoice, selected invoices or the total balance at a key date (BAPI_AR_ACC_GETKEYDATEBALANCE).\n2. For each link a unique record with an expiry is kept in a custom link table: customer, items, amount, currency, expiry date. The link is sent to the customer's email address (ADR6) with SO_NEW_DOCUMENT_ATT_SEND_API1.\n3. When the customer opens the link, the payment page asks for the customer number and a one-time code sent by email, then reads the open items covered by the link from SAP in real time. If an item has been cleared in the meantime, the page shows it as paid.\n4. Payment is made on the virtual POS provider's hosted payment page; card data reaches neither SAP nor the payment page's server. The provider's result notification is received after its signature is verified.\n5. On a successful payment BAPI_ACC_DOCUMENT_POST posts a debit to the virtual POS clearing account (bank sub-account, T012K) and a credit to the customer; the paid invoices are cleared with POSTING_INTERFACE_CLEARING. In a partial payment the rest stays open. The provider reference is written to the reference fields of the document.\n6. When the bank credits the virtual POS collection with its value date, the clearing account is cleared by the bank statement (FF_5/FEBAN); the commission is posted to an expense account by a statement rule. The monitor shows sent, opened, paid and expired links and posting errors.","module":"FI","object_type":"interface","output_columns":[{"calculated":true,"formula":"Unique number assigned in the link table","label":"Link number","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Customer","source_field":"KUNNR","source_table":"BSID"},{"calculated":false,"formula":"","label":"Customer name","source_field":"NAME1","source_table":"KNA1"},{"calculated":false,"formula":"","label":"Invoice reference","source_field":"XBLNR","source_table":"BSID"},{"calculated":false,"formula":"","label":"Link amount","source_field":"WRBTR","source_table":"BSID"},{"calculated":false,"formula":"","label":"Currency","source_field":"WAERS","source_table":"BSID"},{"calculated":true,"formula":"Sent, opened, paid, partially paid or expired","label":"Link status","source_field":null,"source_table":null},{"calculated":true,"formula":"Approved amount in the provider notification","label":"Paid amount","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Collection document","source_field":"BELNR","source_table":"BKPF"},{"calculated":true,"formula":"Posting or clearing return message","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Company code","name":"S_BUKRS","ref_field":"BSID-BUKRS","required":true},{"example":"200118","kind":"select_option","label":"Customer","name":"S_KUNNR","ref_field":"BSID-KUNNR","required":false},{"example":"GIB2026000004512","kind":"select_option","label":"Invoice reference","name":"S_XBLNR","ref_field":"BSID-XBLNR","required":false},{"example":"18.11.2026","kind":"parameter","label":"Balance key date","name":"P_KEYDT","ref_field":"BSID-ZFBDT","required":false},{"example":"","kind":"checkbox","label":"Create the link for the total balance instead of invoices","name":"P_BAL","ref_field":"","required":false},{"example":"7","kind":"parameter","label":"Link validity (days)","name":"P_DAYS","ref_field":"","required":false}],"part_of":[],"performance":"The payment page reads the customer's open items every time; limit the read to the documents covered by the link. Queue provider notifications and post them in order, so repeated notifications for the same payment do not create duplicate postings.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=fi-online-payment-link-collection","related":["fi-bank-statement-import-posting","fi-customer-receivables-aging","fi-customer-statement-email"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Posts incoming payments manually; does not generate a payment link or read the virtual POS notification.","tcode":"F-28"},{"note":"Shows customer open items; does not give the customer a way to pay.","tcode":"FBL5N"}],"summary":"A solution that emails customers an online payment link for an invoice number or their open balance, and posts the collection from the virtual POS in SAP automatically and clears the related invoice. The customer logs in on a simple payment page, sees the open items and pays by card; card data never enters SAP.","tables":[{"access":"read","join_on":"","role":"Customer open items (ECC); compatibility view in S/4HANA","table":"BSID","variant":"ecc"},{"access":"read","join_on":"","role":"Customer open items and clearing information (S/4HANA)","table":"ACDOCA","variant":"s4"},{"access":"write","join_on":"BKPF-BUKRS = BSID-BUKRS AND BKPF-BELNR = BSID-BELNR AND BKPF-GJAHR = BSID-GJAHR","role":"Collection document header and provider reference","table":"BKPF","variant":"both"},{"access":"write","join_on":"BSEG-BELNR = BKPF-BELNR AND BSEG-BUKRS = BKPF-BUKRS AND BSEG-GJAHR = BKPF-GJAHR","role":"Collection and clearing line items","table":"BSEG","variant":"both"},{"access":"read","join_on":"KNA1-KUNNR = BSID-KUNNR","role":"Customer name and address number","table":"KNA1","variant":"both"},{"access":"read","join_on":"ADR6-ADDRNUMBER = KNA1-ADRNR","role":"Email address the link is sent to","table":"ADR6","variant":"both"},{"access":"read","join_on":"","role":"Bank sub-account used as the virtual POS clearing account","table":"T012K","variant":"both"}],"title":"Online Payment Link for Open Invoices and Customer Balance with Virtual POS Collection Posted to SAP","url":"https://nekuhub.com/en/programs/online-payment-link-and-virtual-pos-collection-for-open-invoices/","vendor_id":"nekudos"}