Top 45 Sap Smart Forms Interview Questions
Q1. Can One Restrict The Translations Of Smart Form To Specific Languages?
Yes, you will limit the translations of Smart bureaucracy to unique languages with the aid of growing a first rate set of languages for that you need to permit the translations. Go to form Attributes --> General Attributes --> Language Attributes --> Into Selected Language.
Select all the languages for which you want the translation to take place.
Q2. Explain The Significance Of Final Window?
Final window is to be used where there may be a requirement to expose/show details that has to be processed most effective at the stop of the shape processing.
The windows in a page are processed from pinnacle to bottom. So the execution first skips all the Final windows and completes the processing of other windows. Once all the non-final home windows are processed, the Final home windows are processed from pinnacle to backside.
For instance if there's a demand to display the entire fee of all the objects on the primary web page but the overall value is understood most effective on the quit of the form processing, we will use the Final window for showing the entire price. The sum of line objects is calculated inside the MAIN window.
Q3. How Can You Find The Generated Function Module Name For A Smart Form?
First prompt the Smart Form. Go to Environment -> Function Module Name and get the routinely generated characteristic module for the Smart Form.
Q4. How Can You Convert Smartforms Output To Pdf?
Following steps needs to be carried out to transform Smart Forms output to PDF:
Print the Smart Form to the spool.
Note the spool number.
Download the PDF document model of the spool by way of walking Program RSTXPDFT4 and getting into the noted spool wide variety.
Q5. Is It Mandatory To Have A Main Window In Smartforms?
It is viable to create Smartforms without a primary window additionally. In case, affirmation of a mail to purchaser or purchaser is required there is no want of major window, this may be carried out or accomplished via smartforms with out fundamental window.
Q6. Line In Smartform?
Either you can use a window that takes up the width of your web page and simplest has a height of 1 mm.
Then you placed a frame around it (in window output options).
Thus you have got drawn a box however it looks like a line.
Or you could just draw "__" accross the page and play with the fonts so that it joins every UNDER_SCORE.
Q7. What Are The Different Auxiliary Nodes Available In Smart Form?
Auxiliary nodes assist to manipulate and format the print but do no longer print any contents by means of themselves. Following are the one of a kind auxiliary nodes to be had in Smart Form:
Table: Output of a table containing software/dynamic information.
Template: output of a desk containing static information.
Program Lines: Executes ABAP Code.
Folder: Combines successor nodes to logical agencies.
Loop: Processes successor nodes again and again.
Alternative: Branches depending on situations.
Command: Executes Special Commands.
Q8. What Are Smart Forms In Sap System?
SAP Smartform is a graphical consumer interface device to create and maintain paperwork. SAP Smart Forms helps printer, fax, email or net (XML) as its output medium.
SAP Smartform is a device for the renovation of forms on which software information from the SAP device can be output. Depending on the utility, the quantity of forms to be printed may be very high, and they may need to be published in a brief time frame, in a mass printing. Examples of mass printing are month-to-month invoices sent via telecom corporations or income statements.
Transaction Code to create and keep bureaucracy is SMARTFORMS.
Q9. Forcing A Page Break Within Table Loop?
Create a loop across the desk. Put a Command node earlier than the desk within the loop that forces a NEWPAGE on anything situation you want. Then simplest loop via a subset of the inner table (based totally on the situations inside the Command node) of the factors in the Table node.
Q10. Smartforms Function Module Name?
Once you have got activated the smartform, visit the environment -> function module name. There you may get the call of funtion module name.
The key thing is the program that calls it. For example, the invoice SMARTFORM LB_BIL_INVOICE is ran with the aid of this system RLB_INVOICE.
This software makes use of every other FM to decide the call of the FM to apply itself. The key factor is that after it calls this FM (the usage of a variable to save the real name), that the parameters in shape the paramters for your smartform.
Another factor to word is that the FM name will trade anywhere the SF is transported to.
So you want to use the FM to decide the name of the SF.
Here is the code that may be use to decide the internal name of the function module:
Code:
if sf_label(1) <> '/'. " want to resolve via call
move sf_label to externalname.
Call characteristic 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = externalname
importing
fm_name = internalname
exceptions
no_form = 1
no_function_module = 2
others = 3.
If sy-subrc <> 0.
Message 'e427'.
Endif.
Flow internalname to sf_label.
Endif.
It tests to look if the sf_label begins with a '/', which is how the internal names begin. If it does, the name has already been transformed. If no longer, it calls the FM and converts the call.
You might then CALL FUNCTION sf_label.
Q11. You Have Created A Smartform In Development Server. Then You Transported The Smartform To Production Server. Will The Name Of The Function Module Be Same In Both The Servers?
The Smart Form this is created within the Development won't have the same name in the Production server. So it is continually recommended to apply the Function Module 'SSF_FUNCTION_MODULE_NAME' to get the Function Module name through passing the Smartform call.
DATA: fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSMARTFORM'
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
others = three.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION fm_name
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = five.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Once you delivery the Smartform from Development to Production server, a brand new characteristic module name for the Smartform in generated within the Production server. For a particular Smartform , generated feature module names are specific in one-of-a-kind systems.
Q12. How Can I Display The Total Number Of Pages In Smartforms?
Use SFSY-FORMPAGES to show the total number of pages inside the Smartforms
&SFSY-PAGE& : Current web page variety
&SFSY-FORMPAGE& : Total wide variety of pages in the currently formatted layout set
&SFSY-JOBPAGE& : Total variety of pages in the presently formatted print request
&SFSY-COPYCOUNT& : Original-1,1st replica-2
&SFSY-DATE& : Date
&SFSY-TIME& : Time
&SFSY-USERNAME& : Username
Q13. In A Certain Smartform, For Two Differently Configured Printers, There Seem To Be A Difference In The Output Of Characters Per Inch (the Distance Between Characters Which Gives A Layout Problem - Text
It takes place while the 2 printers having extraordinary Printer Controls. We can go to SPAD Transaction Menu (Spool Administrator Menu) wherein we can see the difference inside the Printer Control and if we make the Printer manipulate placing for each the printers as same then there would be no difference in the output of characters consistent with inch. Also we are able to have to test what's the device kind used for each the output gadgets if the difficulty persist.
Q14. How Do You Use Barcode In Smart Form?
First visit SE73 SAP Script Font Maintenance to create or display the machine bar codes.
Then go to SMARTSTYLES transaction, create a new character format and assign the barcode call that you have created in it. Then you may use the character layout in your Smartform wherever you need the barcode to be displayed.
Q15. How Do You Assign Transport Request To Translations For Smart Forms?
Once you're accomplished along with your translation and also you want to push the interpretation on your goal system, you want a shipping request. Run the transaction code SLXT or software RS_LXE_RECORD_TORDER for creation of transport request.
Q16. How Will You Print On Both Sided Of A Smartform?
At the Page level in Smartforms, you can discover some thing referred to as as Print Mode. Set the Print mode to duplex to print on both facets of the Smartform.
Q17. Sometimes While Using The Variable Sfsy-formpages Or Sfsy-page, You Get A Star '*' Instead Of The Total Number Of Pages Or Current Page Number. How To Resolve Such Issues?
There might not be enough space within the window to show the variable, both increase the window dimensions or condense the areas the usage of &SFSY-FORMPAGES(C)& or using &SFSY-FORMPAGES(ZC)& or using &SFSY-FORMPAGES(4ZC)&.
Here
'4' reserves a four man or woman wide output. (It may be set to any cost.)
'Z' eliminates the main zeroes.
'C' Compress Spaces.
Q18. How Does One Transport Smartform? Se01?How Do You Make Sure That Both, The Smartform & It's Function Module Gets Transported? Or Does The Fm With Same Name Gets Generated Automatically In The Transpor
A smartform is transported no differently than any other item. If it's miles assigned to a improvement magnificence this is atteched to a transport layer, it is going to be transported.
The definition is transported, and when known as, the feature module is regenerated.
This ends in an interetsing state of affairs. On the new system, it's far very likely the function module call could be exceptional than the call at the supply gadget. Make positive, before you call the function module, you remedy the outside name to the internal call the usage of the 'SSF_FUNCTION_MODULE_NAME' characteristic module.
Typically, generate the SF, then use the pattern to being within the interface. Then change the decision function to use the name you get again from the above function module.
Smartforms: guard strains in essential window.
Q19. What Are The Types Of Windows Available In Smartforms?
Four Types of windows available in Smart Forms. They are:
Main Window
Secondary Window
Copies Window
Final Window
Q20. Font Style And Font Size?
Goto Transaction SMARTSTYLES.
There you may create Paragraph codecs and many others just like in sapscript.
Then on your window under OUTPUT OPTIONS you consist of this SMARTSTYLE and use the Paragraph and person formats.
Q21. How Many Main Windows Can We Have In A Smartform?
Unlike SAP Scripts, in Smart Forms you may have best one predominant window. And that too its width ought to be identical in all of the pages whereas peak may be numerous. Only one most important window according to smartforms is permitted however you may have 99 sub-windows.
Main Window - Smartforms – Only 1
Main Window – SAP Scripts - ninety nine
Q22. Smartforms Output Difference?
Problem with Smartforms: in a positive shape for 2 in another way configured printers, there appear to be a difference in the output of characters in line with inch (the space between characters which offers a layout hassle - text in two lines as opposed to one.
It takes place when the 2 printers having one of a kind Printer Controls' if you visit SPAD Menu (Spool Administrator Menu) you could see the distinction inside the Printer Control and if you make the Printer control setting for each the printers as same. Then it is going to be adequate. And additionally u have to check what is the tool kind used for each the output gadgets.
Q23. What Are The Various Text Formatting Options In Smartforms?
Various text formatting alternatives to be had in Smart Forms are:
&image(Z)& : Omit Leading Zeroes
&image(S)& : Omit Leading Sign
&symbol(<)& : Display Leading Sign to the Left
&symbol(>)& : Display Leading Sign to the Right
&symbol(C)& : Compress Spaces
&symbol(.N)& : Display as much as N decimal locations
&image(T)& : Omit lots separator
&symbol(R)& : Right justified
&image(I)& : Suppress output of the initial fee
Q24. How Do You Debug A Smart Form?
By Putting a smash factor at the generated feature module of the Smartform, you could debug it.
Q25. What Is The Difference Between Tables & Template Node?
Template carries a fixed quantity of rows and columns, where the output is constant in which as a desk could have variable number of rows. Templates are also preferred where there is a need of proper alignment. Templates are used to print tables whose layout and rows are fixed and recognised before the software application runtime. Example: Tax Forms
Template is a static entity i.E. Its dimensions cannot be modified at run time whereas Table is a dynamic entity i.E. Its dimensions can be modified at run time. Hence, primarily based at the facts, it is able to last from one web page to a couple of pages. For line items display, generally table is used because one does not have prior records approximately the quantity of line gadgets and no of pages.
Table node has three additives- HEADER, ITEM and FOOTER
The Header issue could be carried out as soon as.
The Item issue can be used to procedure/show table contents.
At the stop footer may be carried out.
Templates can be used to outline the following:
No. Of rows and cellular
Height of each row
Width Of person cells
Separators or frames to be displayed or now not
Alignment of the desk inside the window
Tables are used to print dynamic information which is not regarded earlier than the software application runtime. Example: Material list Of Purchase orders.
Tables node to be used best in primary window and no such fixed top can be set for table rows.
Q26. How To Protect Lines In The Main Window From Splitting Between Pages?
It turned into easy with SAPscript, but how to do it with SF's. For four.7 model if you are the usage of tables, there are alternatives for protection towards line break:
You can guard a line kind towards web page break.
You can protect numerous table lines in opposition to page spoil for output within the most important area.
Q27. What Is The Use Of Command Node In Smart Form?
Command Nodes may be used to obtain web page destroy. By the usage of Command Node, one could manually manage the numbers of information to be displayed in line with page primarily based on some situation.
Q28. What Is The Use Of Folder Node In Smart Form?
Folder option is beneficial for putting all the contents right into a single vicinity which we call as logical grouping. If we need to position a condition on a group of textual content elements or templates we are able to region them in a folder and practice the situation as soon as to the folder.
Folder option allows you to place all of the contents right into a unmarried vicinity. This is essentially useful when you have number of windows and with each window you have got one-of-a-kind snap shots, texts, tables, templates used. So to differentiate among 2 windows we typically move for folders and region all contents of 1 window in a folder and wise versa.
Page Protection property of Folder control might be used so that you can display text within the identical page without isolating it into two one of a kind pages. If there is not sufficient space for a text node, or a set of text nodes, a set of desk rows, and so forth. The gadgets will be displayed as a collection on the next page with maintaining the integrity of these gadgets.
In SAP Smartforms files regularly it's miles a demand to print data in identical web page. For example in a Smart Form table, some of the desk rows are required to print in same page together. If the empty space isn't enough it's far desired to print those desk rows in following page collectively. In such instances Smartforms Folder manipulate helps ABAP developers growing SAP Smartforms documents. Folder manage is the key for page protection in Smartforms.
SAP Smartform Folder manipulate has the Page Protection characteristic which may be utilized by SAP Smart Form builders as a transfer for preserving objects in the same page.
Q29. How Do You Find The Name Of The Function Module For A Smartform? When Is This Function Module Created?
The feature module for Smartform is created while the Smartform is activated. You can locate the call of the Function Module for a Smartform via going to Environment --> Function Module Name.
Q30. Protection Against Page Break For Several Table Lines?
Expand the main vicinity of your table node in the navigation tree.
Insert a report node for the table lines to be protected in the important place.
If you have already created desk strains within the predominant vicinity, you can positioned the lines that you need to guard once more web page wreck beneath the file the usage of Drag&Drop. Otherwise, create the desk traces as subnodes of the report.
Choose the Output Options tab page of the document node and set the Page Protection choice. All desk lines which are within the document with the Page Protection option set are output on one page.
Q31. Difference Between 'forminterface' And 'global Definitions' In Global Settings Of Smart Forms
The Difference is as follows.
To put it very simply:
Form Interface is where you declare what must be passed inside and out of the smartform (in from the print software to the smartform and out from the smartform to the print application).
Global defs. Is where you claim data for use in the smartform on a global scope.
Ie: something you declare here may be utilized in some other node within the shape.
Q32. What Are Text Modules In Smart Forms? What Are The Advantages Of Using Text Module?
A Text Module acts as a few kind of field of text, which makes reuse of text easier. There are texts that often appear in one of a kind bureaucracy. Text Modules can be used to store those texts centrally within the machine. This detaches textual content preservation from form maintenance, with the end result that there will be no need to name the Form Builder to edit individual texts.
Text modules may be maintained the use of smartforms transaction. The text module is maintained exactly just like the Text element. Text literals as well as fields may be written inside the text module. Fields of the Text module take values from the Smart Form from which it's far known as. Since a Text Module is a separate entity, it has its own Management (Attributes) display screen.
The major benefits of the use of a Text module are:
Central storage and upkeep of texts: Commonly used texts like Terms and Conditions, Address line on footer, and so on. Do no longer should be typed and maintained on every Smart Form being made. Also, modifications made to the textual content at one location may be cascaded to all Forms in which it is used if the Copy alternative isn't always used.
Language particular upkeep: Text modules can be maintained in specific languages. Thus, by referring to the identical Text module call, Smart Forms in special languages pick out up the text of the corresponding language.
Client independence: This is a bonus over Include texts that are customer based.
Can be assigned to CTS: An advantage over Standard Texts that are not assigned to a Transport System by way of default.
Can be translated to other languages via the transaction SE6@
Q33. Explain The Significance Of Secondary Window?
Basically, secondary window is used to display text or facts output with a set length.
Secondary windows are used whilst there's a want to show text and information in a predetermined output vicinity. There is no go with the flow textual content display with page break.
If we function a secondary window with the identical call on numerous pages, the device displays the contents of this secondary window on each web page.
Text & records that don't fit into the secondary window are truncated and now not displayed.
Q34. How Can I Make The Smartforms To Choose A Printer Name By Default?
In the CALL FUNCTION of the Smartform Function Module (CALL FUNCTION fm_name ), set the output options parameter to set the printer call. The output alternative is of the sort SSFCOMPOP which incorporates the field TDDEST. Set the TDDEST discipline on your default printer call.
For Example:
OUTPUT_OPTIONS-TDDEST = 'Printer Name'.
Q35. Protection Against Page Break For Line Types?
Double-click in your table node and choose the Table tab page.
Switch to the detail view by way of choosing the Details pushbutton.
Set the Protection in opposition to web page break checkbox in the desk for the relevant line type. Table lines that use this line type are output on one web page.
Q36. Why Pages & Windows Node Are Required Or Mandatory While Creating A Smart Form?
The Page represents the layout of the Page this is printed on and the items to be printed on the Page are contained in Windows. The page collectively with the home windows defined at the web page determines how the print will seem and the contents of the print.
Q37. How Can I Make The Smartforms To Display A Print Preview By Default Without Displaying The Popup For Print Parameters?
In the CALL FUNCTION of the Smartform Function Module (CALL FUNCTION fm_name ), set the Output Options and Control Parameters as stated beneath:
control_options-preview = 'X'. " Print Preview
control_options -no_open = 'X'.
Control_options -no_close = 'X'.
Control_options -no_dialog = 'X'.
Control_options -tool = 'PRINTER'.
Output_options-TDDEST = 'PRINTER NAME'. "Spool: Output Device
output_options-TDNOPRINT = 'X'. "No printing from print preview
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
CALL FUNCTION LF_FM_NAME
EXPORTING
CONTROL_PARAMETERS = control_options
OUTPUT_OPTIONS = output_options
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = five.
Q38. What Are The Text Types Available In Smart Form?
There are four distinct forms of Text available in Smart Forms. They are:
Text Element
Text Module
Include Text
Dynamic Text
Q39. State The Difference Between Form Interface & Global Definitions In Global Settings Of Smartforms?
Form Interface is in which we can declare what should be exceeded in and out of the smartform (in from the print application to the smartform and out from the smartform to the print program).
Global Definition is where we claim records for use in the smartform on a international scope i.E. Some thing we declare here can be utilized in some other node inside the shape.
Q40. How Can One Insert Symbols In Smartforms?
Select the Text Node --> Change Editor --> Go to Menu Option 'Insert' --> Characters --> SAP Symbols.
Choose the SAP symbol which you need to insert.
Q41. How Can You Translate A Smart Form From One Language To Another?
In smart paperwork, in case you need a user to look the textual content in other languages (aside from language in which smart form is created) , in Global settings ,we want to select radio button Into Selected languages and maintain the Translations in that unique language the use of SE63.
There is no different way to automate this technique but to maintain translations with human intervention for decided on languages.
In SE63 transaction, Use route Translations -> ABAP objects -> Other Long Text. Click on Forms and Styles & Select Forms.
Please deliver item call in CAPITALS. Also pick out Source and target language from F4 assist.
Q42. What Are The Differences Between Sap Scripts & Smartforms?
Differences between SAP Scripts and Smart Forms are:
Smart Forms are patron independent and SAP Scripts are consumer established.
Multiple page codecs are viable in Smart Forms which is not the case in SAP Scripts.
It is viable to have a Smart Form without a chief window where as you create a SAP Script without a first-rate window.
Smart Forms generates a function module while activated, which isn't always the case with SAP Scripts.
SAP Scripts require a motive force software to show the output whereas in Smart Forms the shape exercises can be written in order that it's far standalone.
An included Form Builder allows to layout Smart Forms greater without difficulty than SAP Scripts.
A Table Painter and Smart Styles to help in constructing up the Smart Forms which isn't always available in SAP Scripts.
Smart Forms generates XML output which may be viewed thru the web.
Q43. Explain The Significance Of Main Window?
Basically, we use fundamental window when there may be a need to display textual content or facts which can cowl numerous pages. Say there may be a demand to show records of all of the rows of a desk (a table in which you are not very positive as to how many row it has), in such instances we continually use important home windows.
As quickly as a primary window is completely packed with text/information, the machine maintains to show the text/records inside the major window of the next web page. It mechanically triggers the page wreck.
Only one window may be described in a form as major window. The most important window may be referred to as in different pages of the form however it must have the same width on every web page, but can fluctuate in peak.
A web page without major window have to not name itself as subsequent page, on account that this will cause an endless loop. In any such case, the gadget mechanically terminates after three pages.
Q44. Explain The Significance Of Copies Window?
Basically, Copies Window is a special form of secondary window for making pages as replica or unique. This window kind is used to output records both on original, or on copies, or both.
In easy words, Copies window is for use whilst there is a requirement to print copies of the pages.
Copies window is used to outline an output place for the print output, whose content you need to appear either simplest on the copy or simplest on the original. This lets in you to flag copies as copies while the form is printed.
Q45. Smartforms Output To Pdf?
There is a manner to download smartform in PDF format.
Please do the subsequent:
Print the smartform to the spool.
Note the spool quantity.
Download a PDF document (Acrobat Reader) model of the spool by way of running Program RSTXPDFT4 and getting into the mentioned spool variety.

