Top 100+ Sap Smart Forms Interview Questions And Answers
Question 1. Forcing A Page Break Within Table Loop?
Answer :
Create a loop around the desk. Put a Command node before the table inside the loop that forces a NEWPAGE on something circumstance you need. Then only loop thru a subset of the inner table (primarily based at the situations within the Command node) of the factors inside the Table node.
Question 2. Font Style And Font Size?
Answer :
Goto Transaction SMARTSTYLES.
There you may create Paragraph formats and so on just like in sapscript.
Then in your window underneath OUTPUT OPTIONS you consist of this SMARTSTYLE and use the Paragraph and man or woman formats.
SAP CRM Interview Questions
Question three. Line In Smartform?
Answer :
Either you can use a window that takes up the width of your web page and best has a top of one mm.
Then you put a body round it (in window output alternatives).
Thus you have drawn a box however it seems like a line.
Or you could just draw "__" accross the page and play with the fonts in order that it joins every UNDER_SCORE.
Question four. Difference Between 'forminterface' And 'global Definitions' In Global Settings Of Smart Forms
Answer :
The Difference is as follows.
To positioned it very in reality:
Form Interface is in which you declare what need to be surpassed in and out of the smartform (in from the print application to the smartform and out from the smartform to the print program).
Global defs. Is where you declare records to be used in the smartform on a worldwide scope.
Ie: whatever you declare here can be used in some other node in the form.
SAP CRM Tutorial
Question 5. Smartforms Function Module Name?
Answer :
Once you have got activated the smartform, go to the surroundings -> function module name. There you may get the name of funtion module call.
The key issue is this system that calls it. For example, the invoice SMARTFORM LB_BIL_INVOICE is ran by means of this system RLB_INVOICE.
This software uses another FM to decide the call of the FM to apply itself. The key factor is that after it calls this FM (the use of a variable to shop the real call), that the parameters suit the paramters in your smartform.
Another thing to be aware is that the FM call will change anyplace the SF is transported to.
So you want to use the FM to determine the name of the SF.
Here is the code that may be use to determine the internal name of the characteristic module:
Code:
if sf_label(1) <> '/'. " want to remedy by name
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 <> zero.
Message 'e427'.
Endif.
Pass internalname to sf_label.
Endif.
It checks to see if the sf_label begins with a '/', that is how the internal names start. If it does, the call has already been converted. If no longer, it calls the FM and converts the name.
You would then CALL FUNCTION sf_label.
SAP BASIS Interview Questions
Question 6. Smartforms Output Difference?
Answer :
Problem with Smartforms: in a certain shape for two otherwise configured printers, there appear to be a distinction within the output of characters consistent with inch (the space among characters which offers a layout problem - text in strains as opposed to one.
It occurs whilst the 2 printers having unique Printer Controls' if you visit SPAD Menu (Spool Administrator Menu) you may see the distinction in the Printer Control and in case you make the Printer manage putting for each the printers as equal. Then it will be ok. And also u have to test what is the device kind used for both the output devices.
Question 7. Smartforms Output To Pdf?
Answer :
There is a manner to down load smartform in PDF layout.
Please do the subsequent:
Print the smartform to the spool.
Note the spool range.
Download a PDF record (Acrobat Reader) version of the spool with the aid of walking Program RSTXPDFT4 and getting into the stated spool wide variety.
SAP BASIS Tutorial SAP ABAP Interview Questions
Question 8. 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 Transported Client?
Answer :
A smartform is transported no differently than another item. If it is assigned to a improvement elegance that is atteched to a transport layer, it will be transported.
The definition is transported, and while known as, the feature module is regenerated.
This results in an interetsing state of affairs. On the new device, it's miles very in all likelihood the function module name can be special than the call at the supply machine. Make certain, earlier than you call the feature module, you resolve the outside name to the inner name the use of the 'SSF_FUNCTION_MODULE_NAME' feature module.
Typically, generate the SF, then use the pattern to being in the interface. Then change the decision feature to use the call you get back from the above characteristic module.
Smartforms: guard strains in foremost window.
Question 9. How To Protect Lines In The Main Window From Splitting Between Pages?
Answer :
It was smooth with SAPscript, but how to do it with SF's. For four.7 model if you are using tables, there are options for safety in opposition to line destroy:
You can defend a line kind towards page break.
You can guard several desk strains in opposition to page ruin for output in the fundamental area.
SAP BW Interview Questions
Question 10. Protection Against Page Break For Line Types?
Answer :
Double-click in your table node and pick out the Table tab web page.
Switch to the detail view by way of deciding on the Details pushbutton.
Set the Protection against page ruin checkbox inside the desk for the relevant line type. Table traces that use this line kind are output on one web page.
SAP ABAP Tutorial
Question eleven. Protection Against Page Break For Several Table Lines?
Answer :
Expand the principle location of your table node within the navigation tree.
Insert a report node for the desk strains to be covered in the most important area.
If you have already created table traces inside the important area, you can placed the traces which you want to guard again page ruin underneath the file the use of Drag&Drop. Otherwise, create the table lines as subnodes of the record.
Choose the Output Options tab web page of the report node and set the Page Protection choice. All table lines which are inside the record with the Page Protection option set are output on one page.
SAP HANA Interview Questions
Question 12. What Are Smart Forms In Sap System?
Answer :
SAP Smartform is a graphical user interface tool to create and keep forms. SAP Smart Forms helps printer, fax, electronic mail or internet (XML) as its output medium.
SAP Smartform is a device for the renovation of paperwork on which utility information from the SAP system can be output. Depending on the application, the quantity of paperwork to be revealed can be very excessive, and they might must be published in a quick time frame, in a mass printing. Examples of mass printing are monthly invoices despatched by way of telecom agencies or earnings statements.
Transaction Code to create and keep forms is SMARTFORMS.
SAP CRM Interview Questions
Question 13. What Are The Differences Between Sap Scripts & Smartforms?
Answer :
Differences between SAP Scripts and Smart Forms are:
Smart Forms are patron unbiased and SAP Scripts are consumer structured.
Multiple web page formats are viable in Smart Forms which isn't the case in SAP Scripts.
It is possible to have a Smart Form with out a major window wherein as you create a SAP Script without a prime window.
Smart Forms generates a function module when activated, which isn't the case with SAP Scripts.
SAP Scripts require a driving force application to display the output while in Smart Forms the shape exercises can be written so that it's far standalone.
An integrated Form Builder helps to design Smart Forms extra easily than SAP Scripts.
A Table Painter and Smart Styles to assist in building up the Smart Forms which isn't to be had in SAP Scripts.
Smart Forms generates XML output which may be regarded thru the web.
SAP BW Tutorial
Question 14. How Many Main Windows Can We Have In A Smartform?
Answer :
Unlike SAP Scripts, in Smart Forms you may have best one predominant window. And that too its width must be equal in all the pages while top can be varied. Only one important window in line with smartforms is allowed but you could have ninety nine sub-home windows.
Main Window - Smartforms – Only 1
Main Window – SAP Scripts - ninety nine
Question 15. Is It Mandatory To Have A Main Window In Smartforms?
Answer :
It is feasible to create Smartforms with out a prime window additionally. In case, affirmation of a mail to customer or customer is required there may be no need of primary window, this can be performed or executed thru smartforms without essential window.
SAP Crystal Reports Interview Questions
Question 16. What Are The Types Of Windows Available In Smartforms?
Answer :
Four Types of windows to be had in Smart Forms. They are:
Main Window
Secondary Window
Copies Window
Final Window
SAP HANA Tutorial
Question 17. Explain The Significance Of Main Window?
Answer :
Basically, we use important window while there is a want to show textual content or information that could cover numerous pages. Say there is a demand to display facts of all the rows of a table (a table in that you are not very positive as to how many row it has), in such instances we usually use foremost home windows.
As quickly as a prime window is completely packed with text/records, the machine maintains to show the textual content/facts in the predominant window of the subsequent page. It automatically triggers the web page ruin.
Only one window can be described in a shape as important window. The most important window can be known as in different pages of the shape but it ought to have the identical width on each web page, however can range in peak.
A page with out foremost window need to not name itself as subsequent web page, considering this would trigger an limitless loop. In such a case, the gadget automatically terminates after 3 pages.
SAP BPC Interview Questions
Question 18. Explain The Significance Of Secondary Window?
Answer :
Basically, secondary window is used to show textual content or data output with a fixed length.
Secondary home windows are used when there may be a want to display textual content and information in a predetermined output region. There is no drift text display with page break.
If we function a secondary window with the equal call on several pages, the system displays the contents of this secondary window on every web page.
Text & data that don't fit into the secondary window are truncated and not displayed.
SAP BASIS Interview Questions
Question 19. Explain The Significance Of Copies Window?
Answer :
Basically, Copies Window is a unique type of secondary window for making pages as replica or authentic. This window kind is used to output data either on original, or on copies, or each.
In simple phrases, Copies window is for use while there's a demand to print copies of the pages.
Copies window is used to outline an output location for the print output, whose content material you need to appear both handiest at the reproduction or only on the unique. This permits you to flag copies as copies while the form is outlined.
SAP Crystal Reports Tutorial
Question 20. Explain The Significance Of Final Window?
Answer :
Final window is to be used wherein there may be a demand to reveal/display information that needs to be processed only on the quit of the form processing.
The home windows in a web page are processed from top to backside. So the execution first skips all of the Final home windows and completes the processing of different home windows. Once all of the non-final windows are processed, the Final windows are processed from top to bottom.
For example if there may be a requirement to display the total cost of all the gadgets on the first page however the total price is understood simplest at the end of the shape processing, we are able to use the Final window for showing the entire value. The sum of line objects is calculated in the MAIN window.
SAP SCM Interview Questions
Question 21. What Is The Difference Between Tables & Template Node?
Answer :
Template contains a hard and fast number of rows and columns, in which the output is fixed in which as a table may have variable wide variety of rows. Templates are also desired wherein there is a want of proper alignment. Templates are used to print tables whose format and rows are fixed and regarded earlier than the application software runtime. Example: Tax Forms
Template is a static entity i.E. Its dimensions can not be modified at run time while Table is a dynamic entity i.E. Its dimensions can be changed at run time. Hence, primarily based on the information, it could remaining from one page to more than one pages. For line gadgets show, normally table is used due to the fact one does no longer have prior records approximately the variety of line gadgets and no of pages.
Table node has three additives- HEADER, ITEM and FOOTER
The Header factor may be done as soon as.
The Item aspect can be used to system/show desk contents.
At the give up footer can be accomplished.
Templates may be used to define the following:
No. Of rows and cell
Height of each row
Width Of individual cells
Separators or frames to be displayed or not
Alignment of the desk in the window
Tables are used to print dynamic statistics which is not acknowledged earlier than the application program runtime. Example: Material list Of Purchase orders.
Tables node to be used handiest in main window and no such fixed peak can be set for table rows.
Question 22. How Do You Find The Name Of The Function Module For A Smartform? When Is This Function Module Created?
Answer :
The characteristic module for Smartform is created when the Smartform is activated. You can locate the call of the Function Module for a Smartform with the aid of going to Environment --> Function Module Name.
SAP BPC Tutorial
Question 23. 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?
Answer :
The Smart Form this is created inside the Development may not have the identical call within the Production server. So it's miles usually advised to apply the Function Module 'SSF_FUNCTION_MODULE_NAME' to get the Function Module name by using passing the Smartform name.
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 = 3.
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 = three
user_canceled = 4
others = five.
IF sy-subrc <> zero.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Once you transport the Smartform from Development to Production server, a brand new feature module name for the Smartform in generated inside the Production server. For a specific Smartform , generated feature module names are special in one-of-a-kind structures.
SAP Workflow Interview Questions
Question 24. State The Difference Between Form Interface & Global Definitions In Global Settings Of Smartforms?
Answer :
Form Interface is wherein we are able to declare what must be handed inside and outside of the smartform (in from the print software to the smartform and out from the smartform to the print application).
Global Definition is where we declare records for use inside the smartform on a global scope i.E. Anything we claim right here may be used in some other node in the shape.
SAP ABAP Interview Questions
Question 25. 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 In Two Lines Instead Of One?
Answer :
It takes place while the 2 printers having specific Printer Controls. We can visit SPAD Transaction Menu (Spool Administrator Menu) in which we can see the distinction in the Printer Control and if we make the Printer manipulate putting for each the printers as same then there would be no difference inside the output of characters in keeping with inch. Also we can have to check what is the device kind used for both the output gadgets if the problem persist.
SAP SCM Tutorial
Question 26. How Can You Convert Smartforms Output To Pdf?
Answer :
Following steps desires to be accomplished to convert Smart Forms output to PDF:
Print the Smart Form to the spool.
Note the spool variety.
Download the PDF report version of the spool by using jogging Program RSTXPDFT4 and entering the stated spool wide variety.
XForms Interview Questions
Question 27. How Will You Print On Both Sided Of A Smartform?
Answer :
At the Page stage in Smartforms, you may discover some thing known as as Print Mode. Set the Print mode to duplex to print on both aspects of the Smartform.
SAP BW Interview Questions
Question 28. How Can One Insert Symbols In Smartforms?
Answer :
Select the Text Node --> Change Editor --> Go to Menu Option 'Insert' --> Characters --> SAP Symbols.
Choose the SAP symbol which you want to insert.
SAP BW on HANA Tutorial
Question 29. How Can I Make The Smartforms To Choose A Printer Name By Default?
Answer :
In the CALL FUNCTION of the Smartform Function Module (CALL FUNCTION fm_name ), set the output options parameter to set the printer name. The output choice is of the type SSFCOMPOP which incorporates the sphere TDDEST. Set the TDDEST area on your default printer name.
For Example:
OUTPUT_OPTIONS-TDDEST = 'Printer Name'.
SAP BW on HANA Interview Questions
Question 30. How Can I Make The Smartforms To Display A Print Preview By Default Without Displaying The Popup For Print Parameters?
Answer :
In the CALL FUNCTION of the Smartform Function Module (CALL FUNCTION fm_name ), set the Output Options and Control Parameters as noted under:
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 <> zero.
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 = four
OTHERS = 5.
Question 31. How Can I Display The Total Number Of Pages In Smartforms?
Answer :
Use SFSY-FORMPAGES to show the full quantity of pages within the Smartforms
&SFSY-PAGE& : Current web page wide variety
&SFSY-FORMPAGE& : Total wide variety of pages within the currently formatted layout set
&SFSY-JOBPAGE& : Total range of pages inside the presently formatted print request
&SFSY-COPYCOUNT& : Original-1,1st copy-2
&SFSY-DATE& : Date
&SFSY-TIME& : Time
&SFSY-USERNAME& : Username
SAP Scripts Tutorial
Question 32. 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?
Answer :
There won't be enough space within the window to show the variable, both increase the window dimensions or condense the spaces the usage of &SFSY-FORMPAGES(C)& or using &SFSY-FORMPAGES(ZC)& or the usage of &SFSY-FORMPAGES(4ZC)&.
Here
'four' reserves a four individual wide output. (It can be set to any price.)
'Z' removes the leading zeroes.
'C' Compress Spaces.
SAP Scripts Interview Questions
Question 33. What Are The Various Text Formatting Options In Smartforms?
Answer :
Various text formatting alternatives to be had in Smart Forms are:
&image(Z)& : Omit Leading Zeroes
&symbol(S)& : Omit Leading Sign
&symbol(<)& : Display Leading Sign to the Left
&symbol(>)& : Display Leading Sign to the Right
&image(C)& : Compress Spaces
&image(.N)& : Display up to N decimal places
&image(T)& : Omit lots separator
&symbol(R)& : Right justified
&image(I)& : Suppress output of the preliminary price
SAP HANA Interview Questions
Question 34. Why Pages & Windows Node Are Required Or Mandatory While Creating A Smart Form?
Answer :
The Page represents the format of the Page that is revealed on and the gadgets to be imprinted on the Page are contained in Windows. The page together with the home windows defined at the web page determines how the print will appear and the contents of the print.
Question 35. How Can You Find The Generated Function Module Name For A Smart Form?
Answer :
First prompt the Smart Form. Go to Environment -> Function Module Name and get the automatically generated characteristic module for the Smart Form.
Question 36. How Do You Debug A Smart Form?
Answer :
By Putting a spoil point at the generated characteristic module of the Smartform, possible debug it.
SAP Crystal Reports Interview Questions
Question 37. What Are The Different Auxiliary Nodes Available In Smart Form?
Answer :
Auxiliary nodes help to control and format the print but do now not print any contents with the aid of themselves. Following are the unique auxiliary nodes available in Smart Form:
Table: Output of a desk containing application/dynamic records.
Template: output of a desk containing static information.
Program Lines: Executes ABAP Code.
Folder: Combines successor nodes to logical companies.
Loop: Processes successor nodes time and again.
Alternative: Branches relying on conditions.
Command: Executes Special Commands.
Question 38. What Are The Text Types Available In Smart Form?
Answer :
There are 4 specific types of Text available in Smart Forms. They are:
Text Element
Text Module
Include Text
Dynamic Text
Question 39. What Are Text Modules In Smart Forms? What Are The Advantages Of Using Text Module?
Answer :
A Text Module acts as a few sort of container of textual content, which makes reuse of textual content easier. There are texts that often seem in distinctive forms. Text Modules can be used to shop these texts centrally in the device. This detaches text protection from shape upkeep, with the result that there might be no want to name the Form Builder to edit person texts.
Text modules may be maintained the use of smartforms transaction. The text module is maintained exactly like the Text element. Text literals as well as fields can be written in the text module. Fields of the Text module take values from the Smart Form from which it is referred to as. Since a Text Module is a separate entity, it has its very own Management (Attributes) display.
The essential benefits of the usage of a Text module are:
Central garage and renovation of texts: Commonly used texts like Terms and Conditions, Address line on footer, etc. Do no longer have to be typed and maintained on every Smart Form being made. Also, modifications made to the textual content at one vicinity may be cascaded to all Forms where it is used if the Copy option is not used.
Language specific upkeep: Text modules can be maintained in exceptional languages. Thus, by way of referring to the equal Text module call, Smart Forms in special languages pick up the text of the corresponding language.
Client independence: This is a bonus over Include texts that are client established.
Can be assigned to CTS: An gain over Standard Texts that are not assigned to a Transport System via default.
Can be translated to other languages via the transaction SE63.
Question forty. What Is The Use Of Command Node In Smart Form?
Answer :
Command Nodes can be used to reap web page damage. By the usage of Command Node, possible manually control the numbers of facts to be displayed in step with page based totally on some situation.
SAP BPC Interview Questions
Question 41. Can One Restrict The Translations Of Smart Form To Specific Languages?
Answer :
Yes, you can actually restrict the translations of Smart bureaucracy to unique languages with the aid of developing a exceptional set of languages for which you want to permit the translations. Go to shape Attributes --> General Attributes --> Language Attributes --> Into Selected Language.
Select all the languages for that you want the interpretation to show up.
Question 42. How Can You Translate A Smart Form From One Language To Another?
Answer :
In smart paperwork, in case you want a person to peer the textual content in other languages (other than language in which smart shape is created) , in Global settings ,we need to pick out radio button Into Selected languages and keep the Translations in that particular language the usage of SE63.
There isn't any different way to automate this process but to hold translations with human intervention for selected languages.
In SE63 transaction, Use route Translations -> ABAP gadgets -> Other Long Text. Click on Forms and Styles & Select Forms.
Please deliver object name in CAPITALS. Also choose Source and target language from F4 assist.
SAP SCM Interview Questions
Question 43. How Do You Assign Transport Request To Translations For Smart Forms?
Answer :
Once you are done along with your translation and also you need to push the interpretation in your target gadget, you need a delivery request. Run the transaction code SLXT or program RS_LXE_RECORD_TORDER for advent of shipping request.
Question 44. What Is The Use Of Folder Node In Smart Form?
Answer :
Folder alternative is useful for putting all the contents into a single vicinity which we name as logical grouping. If we need to position a situation on a group of text elements or templates we will location them in a folder and observe the circumstance once to the folder.
Folder choice permits you to place all the contents into a unmarried place. This is largely beneficial when you have wide variety of home windows and with each window you have one of a kind pix, texts, tables, templates used. So to differentiate between 2 windows we normally move for folders and area all contents of 1 window in a folder and wise versa.
Page Protection property of Folder control can be used with a view to show textual content within the equal web page with out separating it into distinctive pages. If there isn't enough area for a textual content node, or a group of textual content nodes, a collection of desk rows, and so on. The items might be displayed as a collection on the following web page with retaining the integrity of those objects.
In SAP Smartforms files frequently it is a demand to print records in identical web page. For example in a Smart Form table, some of the table rows are required to print in equal web page together. If the empty space isn't always enough it's miles preferred to print those desk rows in following page together. In such cases Smartforms Folder control helps ABAP builders developing SAP Smartforms files. Folder control is the key for web page protection in Smartforms.
SAP Smartform Folder control has the Page Protection attribute which can be utilized by SAP Smart Form builders as a switch for maintaining items in the same web page.
Question 45. How Do You Use Barcode In Smart Form?
Answer :
First go to SE73 SAP Script Font Maintenance to create or display the machine bar codes.
Then go to SMARTSTYLES transaction, create a brand new character format and assign the barcode name which you have created in it. Then you can use the character layout on your Smartform anywhere you want the barcode to be displayed.
