08-07-2006 11:22 PM
Hi ,
What componets does smart forms and SAP Scripts contains(Like Layout ,FM's and PrintPrograms)?and how r they linked when we execute a SmartForm r SAP Scripts?which component follows other components when we execute a SmartForm r SAP Scripts?
and whats the individual fucntionality of all these components do in SmartForms and SAP Scripts?
Regards,
Gopi.
08-08-2006 2:34 AM
Hi,
A Script or smartform is not usually exectued as standalone program.
A script or Smartform is called using FM`s - OPEN_FORM or SSF_FUNCTION_MODULE_NAME resp.
These FM`s are used in a report program and This report program is executed which inturn calls the FM`s and subsequently the Scripts/Smartforms. This report program is called as Print program.
i.e.
Print Program ( Contains FM`s to call Scripts/Smartforms and the logic to fetch/pass data to Scripts/Smartforms) => Scripts/Smartforms => Printout.
Best regards,
Prashant
08-08-2006 2:34 AM
Hi,
A Script or smartform is not usually exectued as standalone program.
A script or Smartform is called using FM`s - OPEN_FORM or SSF_FUNCTION_MODULE_NAME resp.
These FM`s are used in a report program and This report program is executed which inturn calls the FM`s and subsequently the Scripts/Smartforms. This report program is called as Print program.
i.e.
Print Program ( Contains FM`s to call Scripts/Smartforms and the logic to fetch/pass data to Scripts/Smartforms) => Scripts/Smartforms => Printout.
Best regards,
Prashant
08-08-2006 4:40 AM
Hi ,
SAPSCRIPT
-
Sapscript has two compontnts
driver program and form, These are assinged from spro.
In driver program following functions are used.
CALL FUNCTION 'OPEN_FORM'
CALL FUNCTION 'WRITE_FORM'
CALL FUNCTION 'CLOSE_FORM'
SMARTFORMS
-
Tcode is smartforms
It hs following complnents
Driver program
smartform
style
Text Module.
In driver program following function is called to open form and to pass input parameters which can be print in smart form .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'FORM_name'
IMPORTING
fm_name = fm_name.
CALL FUNCTION fm_name
EXPORTING
control_parameters = v_con
user_settings = 'X'
text = p_long
IMPORTING
document_output_info = out_info
job_output_info = prn_ret
job_output_options = out_op
TABLES
gs_out = gs_out
gs_out1 = gs_out_item
git_adrc = git_adrc.
Pankaj
08-08-2006 5:07 AM
Hi,
little change in above reply
For sapscript forms of standard programs need to assingen from spro based upon the requirements and user created forms can be called from z progeams.
Pankaj
08-08-2006 5:26 AM
Hi Gopi,
Both SAPscripts and Smartforms are used for designing forms(Business Documents), In SAP we have tools to achieve this, we have Form Painter(in case of sapscript)and Smartforms, These tools are mainly used for design purpose, we can also add Logics in case of these tools, but both are not executable, to run the forms we need a Print Program(or Driver programs), Generally these print programs will contain the data to be passed to forms and some function modules for interfacing forms, some of the function modules in SAPscripts are:- OPEN_FORM, WRITE_FORM,CLOSE_FORM, etc., and in case of smartforms Function module is automatically generated when you activate the form(in smartforms) thats one of the advantage of smartform over sapscripts.
Regards:-
Santosh.
<b>P.S. Mark usefull answers</b>
08-08-2006 5:29 AM
hi
good
1st-there is lots of difference between sap script and smartforms
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
2-as per linking is concerned in case of sap script you r passing the data though the function modules like open_form start_form and close_form but in case of the smartforms when you r executing the report it is generating a function module which is a dynamic one which helps to pass the data from the driver program to the smartform screen.
thanks
mrutyun
08-08-2006 6:11 PM