Professional Documents
Culture Documents
http://www.abapmadeeasy.com
Smart Forms are client independent and SAP Scripts are client dependent.
Multiple page formats are possible in Smart Forms which is not the case in SAP Scripts.
It is possible to have a Smart Form without a main window where as you create a SAP
Script without a main window.
Smart Forms generates a function module when activated, which is not the case with
SAP Scripts.
SAP Scripts require a driver program to display the output whereas in Smart Forms the
form routines can be written so that it is standalone.
An integrated Form Builder helps to design Smart Forms more easily than SAP Scripts.
A Table Painter and Smart Styles to assist in building up the Smart Forms which is not
available in SAP Scripts.
Smart Forms generates XML output which can be viewed through the web.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
Main Window
Secondary Window
Copies Window
Final Window
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
Tables are used to print dynamic data which is not known before the application program
runtime. Example: Material list Of Purchase orders.
Tables node to be used only in main window and no such fixed height can be set for table
rows.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
13. How Do You Create & Maintain Font Style & Font Size Used In Smartforms In SAP?
We can use Transaction SMARTSTYLES. Here we can create and maintain Paragraph formats
and character formats as per the requirement.
We can use our own custom SMARTSTYLES in our Smart Form. We can mention the Smart Style
under the following path.
Global Settings --> Form Attributes -->Output Options tab --> Style.
14. Why SAP Scripts Are Client Dependent & Smartforms Are Client Independent?
Smart Forms create its own function module so it doesnt need to transport the request
through SCC1. As all the Development Object are stored in client independent
tables. Whereas SAP Script doesnt generate any function module while executing so we need
to transport the request number through SCC1. Sap Script is stored inside the client
dependent table as a TEXT. So SAP Scripts are client dependent and Smart Forms are client
independent.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
15. A SAP R/3 System Has 2 Clients 100 & 110. You Create An SAP Script Z_Script & A
Smartform Z_Smartform In Client 100. Will Both Z_Script & Z_Smartform Be Available In
Client 110 As Well?
Client 110 will have just the Smartform Z_Smartform and not the SAP Script Z_Script. SAPScript is client dependent whereas SMARTFORM is client independent. One will have to
manually import the SAP Script to 110 through SCC1 transaction in SAP.
16. How Do You Find The Name Of The Function Module For A Smartform? When Is This
Function Module Created?
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.
17. 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 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 'SSF_FUNCTION_MODULE_NAME' to get the Function Module name by passing the
Smartform name.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
Once you transport the Smartform from Development to Production server, a new function
module name for the Smartform in generated in the Production server. For a particular
Smartform , generated function module names are different in different systems.
18. State The Difference Between Form Interface & Global Definitions In Global Settings Of
Smartforms?
Form Interface is where we can declare what must be passed in and out of the
smartform (in from the print program to the smartform and out from the smartform to the
print program).
Global Definition is where we declare data to be used within the smartform on a global
scope i.e. anything we declare here can be used in any other node in the form.
19. 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.
It happens when the two printers having different Printer Controls. We can go to SPAD
Transaction Menu (Spool Administrator Menu) where we can see the difference in the Printer
Control and if we make the Printer control setting for both the printers as same then there
would be no difference in the output of characters per inch. Also we will have to check what
is the device type used for both the output devices if the issue persist.
20. How Can You Convert Smartforms Output To PDF?
Following steps needs to be carried out to convert Smart Forms output to PDF:
Download the PDF file version of the spool by running Program RSTXPDFT4 and
entering the noted spool number.
Here is one more and probably the easiest way to see PDF output for a Smartform.
Type PDF! In the command prompt and hit enter button.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
23. 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 name. The output option is of the type
SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer
name.
For Example:
OUTPUT_OPTIONS-TDDEST = 'Printer Name'.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
24. 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 mentioned below:
control_options-preview = 'X'. " Print Preview
control_options -no_open = 'X'.
control_options -no_close = 'X'.
control_options -no_dialog = 'X'.
control_options -device = '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 = 5.
&SFSY-DATE& : Date
&SFSY-TIME& : Time
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
&SFSY-USERNAME& : Username
26. 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 may not be enough space in the window to display the variable, either increase the
window dimensions or condense the spaces using &SFSY-FORMPAGES(C)& or using &SFSYFORMPAGES(ZC)& or using &SFSY-FORMPAGES(4ZC)&.
Here
'4' reserves a four character wide output. (It can be set to any value.)
In case if you the address number or the person number is already known, then we just we
need to maintain the values in the options given in the address node.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
In case if you are fetching the address number or the person number dynamically or during
run time, you can achieve it by passing the variable as shown below:
29. What Is The Concept Of Page Protection In Smart Forms? How Do You Achieve Page
Protection In Smart Forms?
Page Protection is used to avoid displaying the broken contents of the page and allow it to
display in the new page from the beginning after the previous page.
Page Protection attribute is to be used to determine whether or not to display a paragraph
completely on one page. Mark it if you want to avoid that a paragraph is split up by a page
break. If on the current page (only in the main window) there is not enough space left for the
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
Note: You have Page-protection property only for Text Elements in the Main Window.
30. 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.
31. Why Pages & Windows Node Are Required Or Mandatory While Creating A Smart Form?
The Page represents the layout of the Page that is printed on and the items to be printed on
the Page are contained in Windows. The page together with the windows defined on the page
determines how the print will appear and the contents of the print.
32. How Can You Find The Generated Function Module Name For A Smart Form?
First activate the Smart Form. Go to Environment -> Function Module Name and get the
automatically generated function module for the Smart Form.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
34. What Are The Different Auxiliary Nodes Available In Smart Form?
Auxiliary nodes help to control and format the print but do not print any contents by
themselves. Following are the different auxiliary nodes available in Smart Form:
Text Element
Text Module
Include Text
Dynamic Text
36. What Are Text Modules In Smart Forms? What Are The Advantages Of Using Text
Module?
A Text Module acts as some sort of container of text, which makes reuse of text easier.
There are texts that frequently appear in different forms. Text Modules can be used to store
these texts centrally in the system. This detaches text maintenance from form maintenance,
with the result that there will be no need to call the Form Builder to edit individual texts.
Text modules can be maintained using 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
called. Since a Text Module is a separate entity, it has its own Management (Attributes) screen.
The main advantages of using a Text module are:
Central storage and maintenance of texts: Commonly used texts like Terms and
Conditions, Address line on footer, etc. do not have to be typed and maintained on every Smart
Form being made. Also, changes made to the text at one place can be cascaded to all Forms
where it is used if the Copy option is not used.
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
Client independence: This is an advantage over Include texts that are client
dependent.
Can be assigned to CTS: An advantage over Standard Texts that are not assigned to a
Transport System by default.
39. How Can You Translate A Smart Form From One Language To Another?
In smart forms, if you want a user to see the text in other languages (other than language in
which smart form is created) , in Global settings ,we need to select radio button Into Selected
languages and maintain the Translations in that particular language using SE63.
There is no other way to automate this process but to maintain translations with human
intervention for selected languages.
In SE63 transaction, Use path Translations -> ABAP objects -> Other Long Text. Click on Forms
and Styles & Select Forms.
Please give object name in CAPITALS. Also select Source and target language from F4 help.
For more information, refer the link mentioned below:
http://www.se63.info/translating-sap-smart-forms/
40. How Do You Assign Transport Request To Translations For Smart Forms?
http://www.abapmadeeasy.com
http://www.abapmadeeasy.com
Once you are done with your translation and you want to push the translation to your target
system, you need a transport request. Run the transaction code SLXT or program
RS_LXE_RECORD_TORDERfor creation of transport request.
For more information, refer the link mentioned below:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0010d07e-ec5d-2e1072ad-f233bd6a2c4d?quicklink=index&overridelayout=true
SAP Smartform Folder control has the Page Protection attribute which can be used by SAP
Smart Form developers as a switch for keeping items in the same page.
http://www.abapmadeeasy.com