The SAP HR Forms Workplace enables you to create custom reports for HR master data, personnel time data, and payroll results with an attractive design layout. In the examples used in this article, the focus is on SAP Payroll systems in the US and Switzerland, but the processes for other countries are similar.
Dec 5, 2016 - You will not find this trick in every other Adobe Form tutorial.. So buckle your seat. What is the significance of the Context in Form Builder? In the context (also known as. Description: Driver Program to Print Adobe form *. In our case we would choose form builder and make the forms with Adobe interactive forms. The Form builder is the Adobe Interactive form interface and here we would not do much of coding but design the form and values would be automatically populated by the self generated driver program.
In the following sections, I highlight the most important features for generating PDF payslips and present an overview of how to use the HR Forms Workplace.
. What is SAP Smartform? Smart Forms are printing forms used to print Invoice and purchase order forms etc. We are calling smartforms from ABAP programs then spools are generated, now smartform ready to be printed. SMARTFORMS is the transaction to design the smart form layout.
SMARTSTYLES are used to define paragraph and character formats (fonts, barcodes, etc.). What are the differences between SAP Scripts and Smartforms? SAP Scripts are client dependent whereas Smartforms are client independent. SAP Scripts require a driver program to display the output whereas in smartforms the form routines can be written so that it is standalone. An Table Painter and Smartstyles to assist in building up the smartforms An integrated Form Builder helps to design Smartforms more easily than SAP Scripts It is possible to create a Smartform without a main window Function module is generated for Smartforms when we are activating it. Multiple page formats is possible in smartforms.
I have a smartform which works fine in development server. After trasnsporting it to Production, there is no Function module generated for this smartform. Due to that my program dumps in Production? How to solve this? The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSFFUNCTIONMODULENAME to get the Function Module name by passing the Smartform name. DATA: fmname TYPE rs38lfnam.
CALL FUNCTION ‘SSFFUNCTIONMODULENAME’ EXPORTING formname = ‘ZSMARTFORM’ IMPORTING fmname = fmname EXCEPTIONS noform = 1 nofunctionmodule = 2 CALL FUNCTION fmname EXCEPTIONS formattingerror = 1 internalerror = 2 senderror = 3 ENDIF. How can you make the Smartforms to choose a printer name by default? In the CALL FUNCTION of the Smartform Function Module, set the output options parameter to set the printer name.
The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name. Where can I provide the input parameters to the smartform? The input parameters for the smartform can be defined in Global Settings-Form Interface. The Associated Type must be defined in the ABAP Dictionary.
Where do you Configure the Adobe Forms / Smart forms / SAP Script to the output type in NACE? Go to transaction NACE. Choose the required application from the list and click on output types. Chose one of the Output types from the right pane and click on processing routines.
If an SAP Script to be attached, fill-in the driver program name, Form routine and SAP Script name in the field “Form” (shown below)” If an Smart Form / Adobe Form are to be attached, enter the form name in the field “PDF/SmartForm Form” and select one of the types “PDF” or “SmartForm”. (See the screenshot below). How can I insert symbols in Smartforms? Select the Text node.
Change Editor Go to menu Include-Characters-SAP Symbols Choose the SAP symbol that you want to insert. Where can I define my own global types for the smartform? The global types can be defined in Global Settings-Global Definitions-Types The types defined here will be global through the entire smartform. Also the form routines can be defined Global Settings-Global Definitions-Form Routines.
I have defined my own Program Lines, where I have used a global variable GTEXT. I get an error GTEXT is not defined? Whenever using the global variables in the Program Lines, enter the variable name in Input Parameters if you are going to use(read) the variable.
![Builder Builder](http://4.bp.blogspot.com/-EDUgyZIFxdM/T2feSQJhCwI/AAAAAAAAAfs/5EXH2yNp-lQ/s320/driver+scanner+2012+full.jpg)
If you are going to both read/write the variable value enter the same in Output Parameters. I have created a table node for display. Where can I check the condition which must satisfy to display the table?
The conditions can be defined in the Conditions tab. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node. How can I define Page Protect in Smartforms?
To define Page Protect for a node go to the Output options and check the Page Protection checkbox. If SAP R/3 system has 2 clients 300& 302. You create an SAP Script ZScript and a Smartform ZSmartform in client 300. Will both ZScript and ZSmartform be available in client 302 as well? Client 800 will have just the Smartform ZSmartform and not the SAP Script ZScript. SAP-Script is client dependent whereas SMARTFORM is client independent.
How do you convert a Smartform Output to PDF output? The following two function modules and their importing/exporting parameters: CONVERTOTF CONVERTOTF2PDF In the Driver program, import the parameter ‘joboutputinfo’ from the Smartform FM and utilize that info in ‘OTF’ parameter of the two aforementioned function modules. How can you see the Smartform Print Preview output as list output?
Type SLIS in the command prompt and hit enter. How do you achieve Bar Code printing in Smartforms? Step1: Use SE73 i.e. SAP-Script Font Maintenance and create a Bar code say Zbarcode. Step 2: For Smartform, create a character format C1 and use the recently created Barcode Zbarcode. How do you add a Watermark Or a Background Image for Smartforms? If you go to the properties of a page in Smartform, you will find a tab for Background Image.
Specify the source of the image you need here and it can be used as background image / Watermark in Smartforms. Graphics can be maintained using T.code SE78. Background Image for Smartforms. How will you print on both sided of a Smartform? At the Page level in Smartforms, you can find something called as Print Mode. Set the Print mode to duplex to print on both sides of the Smartform. How can you provide a background color to the table?
In the Table Painter, you can specify the color and shading for the table lines. How can you make the Smartforms to display a print preview by default without displaying the popup for print parameters? In the SSFOPEN function module, Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
Set the CONTROL PARAMETERS and control parameters as shown below, control-preview = ‘X’. Control-noopen = ‘X’. Control-noclose = ‘X’. Control-nodialog = ‘X’.
Control-device = ‘PRINTER’. Controlparameters-nodialog = ‘X’. Controlparameters-noopen = ‘X’. Controlparameters-noclose = ‘X’. OUTPUTOPTIONS-TDDEST = ‘PRINTER NAME’.
OUTPUTOPTIONS-TDNOPRINT = ‘X’. CALL FUNCTION ‘SSFOPEN’ EXPORTING outputoptions = outputoptions controlparameters = control usersettings = ‘ ‘ EXCEPTIONS formattingerror = 1 internalerror = 2 senderror = 3 usercanceled = 4 OTHERS = 5. What is the difference in a Table and a Template in Smartform? A Template has fixed number of Rows and Columns whereas a Table can have variable rows and columns.
We should use a template when the tabular output is fixed!. How do you achieve Page Protection in Smartform? While one can use the PROTECT. ENDPROTECT command for SAP-Scripts, for Smartforms the Page-Protection checkbox can be used to ensure page protection: Page Protection in Smartforms.
Can you move a Smartform from one SAP system to another without using transports? Yes, this can be achieved using the Upload/Download feature for Smartforms. One can download the Smartform from one system and save it as an XML file. Once that is done, the XML file can be used to upload the Smartform in another system. Can you have a Smartform without a main window?
Yes, you can create a Smartform without a Main Window. But there is no need to do anything of such sort. How do you find the name of the Function Module for a Smartform? The function module for Smartform is created when the Smartform is activated.
You can find the name of the Function Module for a Smartform by going to Environment – Function Module Name. What is a Copies Window? We use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed. You can determine where to print the inferior nodes of a copies window: Both on the original and on the copies ( Original and Copies ) Only on the original ( Only Original ) Only on the copies ( Only Copies ) You can use the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 to query whether the current output is the original or, respectively, which number the copy has. What is a Final Window?
Final Window is called after all the other windows are called in a Smartform. What is the tcode for SAPScript forms?
SE71 is the tcode for SAPScript forms. What is PROTECT & ENDPROTECT? PROTECT & ENDPROTECT is a command used to protect a paragraph against a page break. What are the different types of SAPScript symbols? 4 different types of SAPScript symbols are as follows. System symbols Standard symbols Program symbols Text symbols. What are the different window types in SAPScript?
MAIN – Main window VAR – Variable window CONST – Constant window How many MAIN windows are allowed in SAPscript? 99 main windows are allowed in SAPscript. How can you display the total number of pages in Smartforms? Use SFSY-FORMPAGES to display the total number of pages in the Smartforms &SFSY-PAGE& Current page number &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set &SFSY-JOBPAGE& Total number of pages in the currently formatted print request &SFSY-COPYCOUNT& Original-1,1st copy-2 &SFSY-DATE& Date &SFSY-TIME& Time &SFSY-USERNAME& Username. How to Debug a SAP Smartform?
To debug a smartform in quality or testing system, go to tcode SMARTFORMS. Enter the name of the smartform if you know or find the name of the smartform name from NACE and display the smartform.debug-smartforms-1Find the statement in the smartform where you want to place the break-point.debug-smartforms-2Go to menu Environment – Function Module Name to get the name of the function module for the Smartform.debug-smartforms-3Copy the function module name in the popup. Debug-smartforms-4Go to tcode SE37 (Function Builder).debug-smartforms-5Enter the name of the function module and go to Menu Goto – Main Program.debug-smartforms-6In the Main Program click on FIND to search the statement where you want to place the break-point.debug-smartforms-7Enter the text of the line where you want to place the break-point in the FIND popup.debug-smartforms-8Place the break-point on the desired line.debug-smartforms-9Now run the driver program, the control stops at the break-point and you can analyze the smartform. What are important trnsacodes used for smartforms?