Manual Printing of Invoices Generated in Batch We have a batch program that runs every night to generate all the billing documents for that day. Currently all our outputs are set with dispatch time 4-print immediately. To display the FI invoice for the SD document from the Overview, Header, or Item data screen, Click on the Accounting button (shown in step 3) to list accounting documents, as shown below. Click on the category of Accounting document ( e.g., 90034107; range is 90000000 to 99999999) to view the FI Invoice, as shown below. Invoice Split due to Manual Invoice Maintenance Check on Sales Order. Manual invoice maintenance check on SAP sales order item Billing tab causes invoice split on SAP systems which causes related item to be placed into a different sales billing document from others with 'Manual invoice maintenance' values are empty.
- SAP Scripts Tutorial
- SAP Scripts Useful Resources
- Selected Reading
In SAP Scripts, Print Program is used to print the actual form and get the data from database tables, choosing a form and print the text elements in a defined format. It retrieves the data from the database and combines it with the user input, formats the data and prints it.
All print programs and forms are stored in table TNAPR.
Different functional modules are used in Print Program. To start a print program, OPEN_FORM functional module is used, and to end the program CLOSE_FORM functional module is used.
OPEN_FORM − In Print Program, this function should be called first before any printing can take place. You specify the name of the form and the print language.
START_FORM − This function is called to use different forms with similar characteristics in a single request.
WRITE_FORM − This function is used to write text in a window in the form using text elements.
CONTROL_FORM − This function is used to insert SAP Script control commands in an ABAP program.
END_FORM − This function is called in the end and it has no exporting parameters.
CLOSE_FORM − To view the standard form and the standard Print program, run Transaction Code: NACE
Enter Application Types and click the Output Type at the top.
In the following screenshot, you can see the Application name for the selected service.
Print Program − Example
Following is a sample print program that creates an invoice with company-related information such as customer data, date, flight booking, etc.
Section 1 - Get customer data
Section 2 - Open form
In the above function module, the parameter −
How To Print A Manual Invoice In Sap Document
- FORM shows the name of the form.
- DEVICE can be PRINTER (print using spool), TELEFAX (fax output) or a SCREEN (output to screen)
- OPTIONS shows a structure of type ITCPO to control the various attributes - Print preview, number of copies.
Section 3 - Print table heading
- ELEMENT function module shows the ‘textelement’ to be printed and ‘WINDOW’ shows which window of the form to be printed.
- TYPE shows the output area of the window like- TOP, BOTTOM, or BODY.
- FUNCTION tells the text to be replaced, added or appended.
Sap Invoice Print Preview
Section 4 - Print customer bookings
Cached
Section 5 - Close form
You call this function module in the end and it has no exporting parameter.