- SAP Scripts Tutorial
This wiki explains how to reprint checks through Classic Payment Medium Program RFFOUSC for the payment documents created through Automatic Payment Run (F110) or Manual Payment (F-58). You need to re-print the checks then this WIKI will help you to re-print the checks. Related SAP Notes/KBAs.
- 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
![Rffous_c Rffous_c](/uploads/1/2/6/2/126261740/729911351.jpg)
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 −
- 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.
Section 4 - Print customer bookings
Section 5 - Close form
You call this function module in the end and it has no exporting parameter.