{"audience":"Billing teams, shipping and warehouse staff, export operations teams and customer service.","authorization_objects":[{"note":"Billing document display and output authorization by billing type","object":"V_VBRK_FKA"},{"note":"Billing document authorization by sales organization","object":"V_VBRK_VKO"},{"note":"Delivery authorization by shipping point","object":"V_LIKP_VST"},{"note":"Authorization to send external email from SAP","object":"S_OC_SEND"}],"components":[],"countries":[],"effort_days_max":10,"effort_days_min":7,"effort_size":"M","faq":[{"a":"The legal electronic document is produced by your e-document solution. This form is used as the information copy sent to the customer, for recipients outside the e-document scope and for the delivery note copy printed in the warehouse; the layout can be aligned with the e-document view.","q":"We use electronic invoicing; is this form still needed?"},{"a":"The program compares the recipient's country with the company code country and checks the flag set during installation for the billing type or customer group. The rule is kept in one place, so adding a new type of sale does not require changing the form itself.","q":"How is the layout to print determined?"},{"a":"Yes. When you select the document in the mass resend screen and run it, a new output record is created and the PDF is sent again; the earlier sendings remain visible in NAST with date and user.","q":"Can we send the same invoice to the customer again?"}],"features":[{"code":"email","label":"Send the result by email","note":"The PDF goes to the contact person on the document, otherwise to the customer's default email."},{"code":"test_run","label":"Test mode (check without posting)","note":"Each document's PDF can be previewed before a mass sending."},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"background","label":"Runs as a background job","note":"A job can retry unsent documents at the end of the day."}],"functions":[{"name":"SSF_FUNCTION_MODULE_NAME","role":"Finds the generated function name of the form when Smart Forms is used"},{"name":"FP_FUNCTION_MODULE_NAME","role":"Finds the interface function of the form when Adobe Forms is used"},{"name":"READ_TEXT","role":"Reads document header and item texts"},{"name":"SD_PRINT_TERMS_OF_PAYMENT","role":"Prepares the payment terms as printable text"},{"name":"SO_NEW_DOCUMENT_ATT_SEND_API1","role":"Sends the PDF as an email attachment"}],"gap":"The standard system ships with sample forms for invoices and deliveries; they offer one generic layout and do not print a different heading, language, currency or annotation text depending on whether the sale is domestic, export or export-registered. VF31 and VL71 reprocess output in bulk but do not decide which layout to use, and the email address is usually taken only from the customer's main address. The custom solution picks the layout from the document data, prints the amount in words and a tax summary, and sends the PDF to the right person.","id":"sd-invoice-delivery-note-forms","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. Separate output types are defined for the invoice and the delivery note and linked to the custom output program and form in NACE (TNAPR). When the document is saved, standard output determination creates the NAST record.\n2. The layout is chosen from the document data: if the recipient's country differs from the company code country, the export layout is used; if the billing type or customer group is flagged as an export-registered sale during installation, the export-registered layout is used; otherwise the domestic layout.\n3. VBRK/VBRP are read for the invoice and LIKP/LIPS for the delivery note. Payer, ship-to and recipient addresses come from VBPA and ADRC, delivery and payment terms from VBKD, price and tax lines from KONV (PRCD_ELEMENTS in S/4HANA); header and item texts are added with READ_TEXT.\n4. In the export layout the document is printed in the customer's language and in the document currency, with incoterms and commodity codes. The export-registered layout prints the legal annotation and the details of the exporting buyer; the annotation text is checked against current regulation during installation. The amount in words and the VAT summary are calculated inside the form.\n5. The form is converted to PDF. The recipient email is taken from the contact person on the document (VBPA → ADR6), otherwise from the customer's default email, and the PDF is sent with SO_NEW_DOCUMENT_ATT_SEND_API1; it can also be printed at the same time.\n6. The result is written to the NAST processing status. The mass resend screen runs the same steps for the selected documents and returns a result list per document.","module":"SD","object_type":"form","output_columns":[{"calculated":true,"formula":"Billing document (VBRK-VBELN) or delivery (LIKP-VBELN) number","label":"Document","source_field":null,"source_table":null},{"calculated":true,"formula":"Invoice or delivery note","label":"Document kind","source_field":null,"source_table":null},{"calculated":true,"formula":"Domestic, export or export-registered (rule in step 2)","label":"Layout","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Customer","source_field":"KUNAG","source_table":"VBRK"},{"calculated":false,"formula":"","label":"Customer name","source_field":"NAME1","source_table":"KNA1"},{"calculated":false,"formula":"","label":"Recipient email","source_field":"SMTP_ADDR","source_table":"ADR6"},{"calculated":false,"formula":"","label":"Language","source_field":"SPRAS","source_table":"NAST"},{"calculated":false,"formula":"","label":"Net value","source_field":"NETWR","source_table":"VBRK"},{"calculated":false,"formula":"","label":"Currency","source_field":"WAERK","source_table":"VBRK"},{"calculated":true,"formula":"Sent, previewed, printed only or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Return message of sending or form processing","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Sales organization","name":"S_VKORG","ref_field":"VBRK-VKORG","required":true},{"example":"01.11.2026 – 16.11.2026","kind":"select_option","label":"Billing date","name":"S_FKDAT","ref_field":"VBRK-FKDAT","required":true},{"example":"90031245","kind":"select_option","label":"Billing document","name":"S_VBELN","ref_field":"VBRK-VBELN","required":false},{"example":"F2","kind":"select_option","label":"Billing type","name":"S_FKART","ref_field":"VBRK-FKART","required":false},{"example":"RD00","kind":"parameter","label":"Output type","name":"P_KSCHL","ref_field":"NAST-KSCHL","required":true},{"example":"X","kind":"checkbox","label":"Also send the related delivery notes","name":"P_LIKP","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Preview only (do not send)","name":"P_PREV","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Print in addition to email","name":"P_PRINT","ref_field":"","required":false}],"part_of":[],"performance":"Read the form data once per document instead of separate SELECTs per item; fetch addresses and texts once per document. In a mass resend, process documents in packages, issue COMMIT WORK after each package and run the program in the background for hundreds of documents.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-invoice-delivery-note-forms","related":["fi-customer-statement-email","sd-billing-not-posted-to-accounting","sd-scheduled-billing-with-checks"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Reprocesses billing output in bulk; does not choose a layout by type of sale or email the contact person.","tcode":"VF31"},{"note":"Processes delivery output in bulk; the delivery note is printed with the standard sample form.","tcode":"VL71"}],"summary":"A custom form and output program that prints invoices and delivery notes with the right layout for each type of sale. Domestic, export and export-registered sales each get their own layout, language and annotation texts; the PDF is emailed to the customer's contact person and every sending can be traced in the output record.","tables":[{"access":"read","join_on":"","role":"Invoice header: billing type, date, currency, recipient country (driving table)","table":"VBRK","variant":"both"},{"access":"read","join_on":"VBRP-VBELN = VBRK-VBELN","role":"Invoice items: material, quantity, net value, tax","table":"VBRP","variant":"both"},{"access":"read","join_on":"LIKP-VBELN = VBRP-VGBEL","role":"Delivery note header: goods issue date, ship-to, weight","table":"LIKP","variant":"both"},{"access":"read","join_on":"LIPS-VBELN = LIKP-VBELN","role":"Delivery note items: material, batch, delivery quantity","table":"LIPS","variant":"both"},{"access":"read","join_on":"VBPA-VBELN = VBRK-VBELN","role":"Payer, ship-to and contact person with address numbers","table":"VBPA","variant":"both"},{"access":"read","join_on":"ADR6-ADDRNUMBER = VBPA-ADRNR","role":"Email address of the contact person or the customer","table":"ADR6","variant":"both"},{"access":"read","join_on":"KNA1-KUNNR = VBRK-KUNAG","role":"Customer name, language and country","table":"KNA1","variant":"both"},{"access":"read","join_on":"VBKD-VBELN = VBRP-AUBEL","role":"Incoterms and payment terms","table":"VBKD","variant":"both"},{"access":"read","join_on":"KONV-KNUMV = VBRK-KNUMV","role":"Price and tax lines (ECC)","table":"KONV","variant":"ecc"},{"access":"read","join_on":"PRCD_ELEMENTS-KNUMV = VBRK-KNUMV","role":"Price and tax lines (S/4HANA)","table":"PRCD_ELEMENTS","variant":"s4"},{"access":"read","join_on":"NAST-OBJKY = VBRK-VBELN","role":"Output record and processing status","table":"NAST","variant":"both"},{"access":"read","join_on":"TNAPR-KSCHL = NAST-KSCHL","role":"Link of the output type to program and form","table":"TNAPR","variant":"both"}],"title":"Sales Invoice and Delivery Note Forms for Domestic, Export and Export-Registered Sales with Email Sending","url":"https://nekuhub.com/en/programs/sales-invoice-and-delivery-note-forms/","vendor_id":"nekudos"}