{"audience":"Accounts payable teams and finance teams that answer vendors' \"which of my invoices did you pay\" questions.","authorization_objects":[{"note":"Access to payment program data by company code","object":"F_REGU_BUK"},{"note":"Vendor master authorization by company code","object":"F_LFA1_BUK"},{"note":"Authorization to send external email from SAP","object":"S_OC_SEND"}],"components":[],"countries":[],"effort_days_max":7,"effort_days_min":4,"effort_size":"M","faq":[{"a":"Yes. All emails in the address or only the default one can be chosen; P_CC adds a fixed copy recipient to every email.","q":"Can one vendor receive it at several addresses?"},{"a":"The form is designed per company: logo, bank details, invoice reference and deduction lines can be added. The Turkish or English version is chosen by the vendor's language.","q":"Can the advice layout be changed?"},{"a":"Sent payment documents are logged and skipped in the next run. If the vendor asks again, it is resent with P_RESEND.","q":"Can the same advice be sent twice?"}],"features":[{"code":"test_run","label":"Test mode (check without posting)","note":"Each vendor's advice can be previewed before sending."},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"background","label":"Runs as a background job","note":"Can start automatically in a job chain after the payment run."},{"code":"email","label":"Send the result by email","note":""}],"functions":[{"name":"SO_NEW_DOCUMENT_ATT_SEND_API1","role":"Sends the payment advice by email as a PDF attachment"}],"gap":"F110 produces the payment advice through printing or standard output management; the advice form, the choice of the recipient email address and bulk sending as PDF have to be set up per company. Several email addresses, copy recipients and a resend check are not part of the standard flow. To cut vendor queries, an automatic email on the payment day is needed.","id":"fi-vendor-payment-advice-email","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The actual payment records of the selected run are read: REGUH with XVORL blank and the payment document (VBLNR) filled.\n2. For every payment document the paid invoices come from REGUP: reference (XBLNR), document date, gross amount, cash discount (SKNTO) and net payment.\n3. The recipient address is determined: first LFB1-INTAD (accounting email in the company code), otherwise the default email of the vendor address (LFA1-ADRNR → ADR6-SMTP_ADDR, FLGDEFAULT).\n4. The advice form (Smart Form or Adobe Form) is converted to PDF; in test mode only a preview is shown.\n5. In a real run the PDF is sent as an attachment with SO_NEW_DOCUMENT_ATT_SEND_API1; vendors without an address and errors are listed in the log, and unless P_RESEND is set, payment documents already sent are skipped.","module":"FI","object_type":"form","output_columns":[{"calculated":false,"formula":"","label":"Vendor","source_field":"LIFNR","source_table":"REGUH"},{"calculated":false,"formula":"","label":"Vendor name","source_field":"NAME1","source_table":"REGUH"},{"calculated":false,"formula":"","label":"Payment document","source_field":"VBLNR","source_table":"REGUH"},{"calculated":false,"formula":"","label":"Payment amount","source_field":"RBETR","source_table":"REGUH"},{"calculated":false,"formula":"","label":"Currency","source_field":"WAERS","source_table":"REGUH"},{"calculated":true,"formula":"Number of REGUP rows for the payment document","label":"Invoice count","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Email","source_field":"SMTP_ADDR","source_table":"ADR6"},{"calculated":true,"formula":"Sent, preview, no address or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Return message of the send function","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"17.11.2026","kind":"parameter","label":"Run date","name":"P_LAUFD","ref_field":"REGUH-LAUFD","required":true},{"example":"HAFT1","kind":"parameter","label":"Run identification","name":"P_LAUFI","ref_field":"REGUH-LAUFI","required":true},{"example":"1000","kind":"select_option","label":"Paying company code","name":"S_ZBUKR","ref_field":"REGUH-ZBUKR","required":false},{"example":"100245","kind":"select_option","label":"Vendor","name":"S_LIFNR","ref_field":"REGUH-LIFNR","required":false},{"example":"odemeler@ornekfirma.com.tr","kind":"parameter","label":"Copy recipient email","name":"P_CC","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (preview only)","name":"P_TEST","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Resend advices already sent","name":"P_RESEND","ref_field":"","required":false}],"part_of":[],"performance":"Read REGUH/REGUP by the run key and collect addresses in one pass. For runs with hundreds of vendors, schedule the program as a background job after the payment run; the send queue is monitored in SOST.","process":"P2P","quote_url":"https://nekuhub.com/en/request-a-quote/?report=fi-vendor-payment-advice-email","related":["fi-customer-statement-email","fi-payment-proposal-exceptions"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Produces the payment advice through printing or output management; no email address logic or resend check.","tcode":"F110"},{"note":"Shows paid items on screen; sends no notification to the vendor.","tcode":"FBL1N"}],"summary":"A custom program that, after an automatic payment run, emails every vendor a PDF payment advice listing the invoices that were paid. A preview comes first, and the sending result is logged per vendor.","tables":[{"access":"read","join_on":"","role":"Payment document, payee, payment amount and currency (driving table)","table":"REGUH","variant":"both"},{"access":"read","join_on":"REGUP-LAUFD = REGUH-LAUFD AND REGUP-LAUFI = REGUH-LAUFI AND REGUP-XVORL = REGUH-XVORL AND REGUP-ZBUKR = REGUH-ZBUKR AND REGUP-LIFNR = REGUH-LIFNR AND REGUP-VBLNR = REGUH-VBLNR","role":"Paid invoices, reference and cash discount","table":"REGUP","variant":"both"},{"access":"read","join_on":"LFB1-LIFNR = REGUH-LIFNR AND LFB1-BUKRS = REGUH-ZBUKR","role":"Accounting email address in the company code","table":"LFB1","variant":"both"},{"access":"read","join_on":"LFA1-LIFNR = REGUH-LIFNR","role":"Vendor address number","table":"LFA1","variant":"both"},{"access":"read","join_on":"ADR6-ADDRNUMBER = LFA1-ADRNR AND ADR6-FLGDEFAULT = 'X'","role":"Default email in the vendor address","table":"ADR6","variant":"both"}],"title":"Vendor Payment Advice Email Program","url":"https://nekuhub.com/en/programs/vendor-payment-advice-email-program/","vendor_id":"nekudos"}