0% found this document useful (0 votes)
8 views4 pages

Understanding SAP Smart Forms and Scripts

Smart Forms is a GUI tool used to design business legal documents like invoices and delivery notes, and it is client independent due to the generation of function modules upon activation. It offers various features such as dynamic tables, background images, and multiple page formats, distinguishing it from SAP Scripts, which are client and language dependent. Key components include different types of windows, nodes for displaying information, and the ability to debug and translate text modules.

Uploaded by

dhanu 8185
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Understanding SAP Smart Forms and Scripts

Smart Forms is a GUI tool used to design business legal documents like invoices and delivery notes, and it is client independent due to the generation of function modules upon activation. It offers various features such as dynamic tables, background images, and multiple page formats, distinguishing it from SAP Scripts, which are client and language dependent. Key components include different types of windows, nodes for displaying information, and the ability to debug and translate text modules.

Uploaded by

dhanu 8185
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

SMART FORMS

1. what is the smart forms ? when & where they are used?
smartform is a GUI tool which is used to design the business legal documents such as
delivery note , po , invoice Etc .
SMART FORMS is the Tcode to design the smartform layout
2. why smart forms are client independent?
whenever smartform is activated a FM will generated which contains the entire
source code of smartform
Since FM is client independent , SAP smartform are client independent.
3. how do u find smartform FM name dynamically from the program?
Using the FM SSF_function_module_name.
4. how do u find smartform FM name statically from the program?
create smartform > save& activate> click on environment > FM name
5. what are the difference between Scripts & smartforms?

Scripts Smartforms

Client dependent Client independent

Background images are not possible Back ground images possible

Scripts can't be created without main window Can be created without main window

Scripts are not possible without Print Smart forms can be executed without driver
program program

Colours format are not possible Colours formats are possible

Tables & templates are not possible but It is easy to draw tables & templates using
boxes can be drawn using command box the nodes

Labels are not possible Labels are possible

Whenever sap script get activated it won't Whenever we activate the smartform it will
generate FM generate FM

By using RSTXDBUG standard program we By using BREAK-POINT keyword we can


can debug the SAP script. debug the smartform

Multiple page formats are not possible Multiple page formats are possible

6. Explain the different kind of nodes in smart forms?

i. WINDOW - Used to display information or text at particular place on the page


ii. GRAPHIC - used to display logos or images
iii. ADDRESS- used to display address of customer/ vendor/employee
iv. TEXT- used to display the information or text
v. TABLE - used to display in the form table(default HEADER , MAIN AREA , FOOTER
will be displayed)
vi. TEMPLATE - it is also like a table which doesn't expand
vii. PROGRAM LINES- used to write the ABAP program
viii. ALTERNATIVE- used to provide alternative conditions like (IF-ELSE)
ix. LOOP- used to loop the internal tables
x. COMMAND- used to trigger an event (call a new page)
xi. FOLDER- used to group all the sub nodes
7. What are the types of windows in smartforms?
i. MAIN WINDOW - for continuous output
ii. SECONDARY WINDOW - for output with a fixed length
iii. FINAL WINDOW - Special type of secondary window for outputting the
information that is not known until the end of form processing
iv. COPIES WINDOW - Special type of secondary window for marking pages as copy or
original.
8. How to display address window dynamically ?
%page > create> address> type
9 .What are the important T-codes in smart forms?
SMARTFORMS - to design the form
SMARTSTYLES - to maintain styles
SE78 - To upload the image
10. what are the components of smartforms?
Global Settings
Form Attribute.
Form Interface.
Global Definition.
11. what are the system fields associated with smartforms?
PAGE - Current page no
FORMPAGES - total no of pages
JOBPAGES - total no of pages of print job
DATE - current date of application server
TIME - current time of application server
SUBRC - return value
USERNAME -user name
PAGENAME - page name + variant
[Link] is text module?
 Text module is used for reusability. user cant go and edit the text.
[Link] is the difference between text module and standard text?
 Standard text is used for reusability and user can edit the text
 Text module is used for reusability and user can't edit the text
14. how to debug the smartforms?
 By putting dynamic break point in FM.
SE37 > Give FM name > Display > Source code > Find > Give program lines of SF >
Select break point > Press enter.
 By putting static break point in program lines of a smartform.
[Link] do we translate the text modules in smartform?
 Text modules are translated in other language thru transaction SE63
[Link] we keep the backup of smart form? How to upload and download the form?
Yes we can keep the backup for a smartform. In the menu option ‘Utilities’ we have the
options for upload and download form, when we download the form it is stored in xml
format.
17. How to include logo in smartform?
Using SE78 import the logo in SAP system. Create graphics window in Smartform and give
the name of logo to be uploaded
[Link] is the difference between Main window and secondary window?
Secondary window has constant height. If text gets overflow in secondary window, it get
truncated. Whereas in MAIN window, if its overflow, it introduces new page and continue
from that point.
[Link] it possible to migrate sap script into smartform?
Yes , go to SMARTFORM Tcode > provide smartform name > click on utilities> migration >
import SAP script form
[Link] is the difference between template and table?
Table is dynamic .It automatically expands depends on data Template is static .it wont
expand it truncate the data.
[Link] to convert smartform into PDF?
First pass no_dialog = ‘X’ and getotf = ‘X’ to control parameters while calling smartform. We
will get the compress layout in the importing parameter job_output_info. Pass this to
function module ‘CONVERT_OTF_2_PDF’.
21. How to print two sided?
At page level configuration > output option type > select print mode to duplex.
22. How to add water mark?
Go to properties > Background picture tab > Specify source of image
[Link] is initialization in smart form?
 In smartforms->under global settings.->global definitions
 In that under Global data-> u need to declare the data (work area and internal table)
 In Types-> u declare the structure
 And in the initialization tab... write the select query and specify the output parameters like
itab (i.e. into where u are keeping the data)

SAP SCRIPTS

1. what is sap script?


It is an SAP tool which is used to generate printable business documents like
invoice, sales order, delivery note, employee forms.
[Link] are the components of sap scripts?
Header- Contains the header information of the sap script
Administrator data-contains the data related to package name, client no, username etc.
Basic settings-It contains data related to settings like page format, first page etc.
Pages-Page is a group of windows.
Windows-It is used to display the information on sap script.
Pages windows- The window assign to particular page are called page windows.
Paragraph format- It specify the particular format(FONT SIZE,BOLD,)
Character format- It specify the group of characters inside a paragraph.
Layout-It is a place where we can design a page with windows.
[Link] many types of windows are there? what are they?
Main Window- A window which automatically expands depending upon the data is
called main window.
Constant window- A window which is constant for all the pages is called constant
window.
Variable window- A window which does not expand i.e, width and height is fixed.
Graphical window- A window which is used to display graphical or images.
4. What are the function modules in sap scripts?
OPEN_FORM
WRITE_FORM
CLOSE_FORM
START_FORM
END_FORM
[Link] sap scripts are client dependent and language dependent?
Sap scripts are store in the database as a text format . Text format is language
dependent and client dependent.
[Link] is TCODE for sap scripts?
SE71.
7. What are the different ways to debug a sap scripts?
There are 2 ways to debug the sap scripts
GOTO SE71>UTILITES>ACTIVATE DEBUGGER.
Standard program/ Report 'RSTXDBUG'.
8. How to generate windows (or) pages dynamically?
The function module CONTROL_FORM
[Link] to add additional functionality to scripts without modifying the print program?
We need to use external subroutines concept
PERFORM<SUBROUTINE_NAME>USING < ITCSY> IN
PROGRAM<PROGRAM NAME>
END PERFORM.
[Link] is ITCSY?
ITCSY is a structure for storing name and value.
11. How to create for standard texts?
SO10.

You might also like