‎2008 May 05 11:23 AM
hi
why script is client dependent and smartform client independent
please tell me.
‎2008 May 05 11:45 AM
Hi Chaitu,
scripts are Client Dependent bcoz client dependent objects r those objects whose records
entered in one client for a client dependent table the same
record is not visible for in any other client.
SAPscript are CLient Dependent, SmartForms are Client Independent. The reason why SmartForms are client independent is because when you activate a SMartForm, SAP actually generates a Function Module (which as you know is client independent). The Print Program (or as SAP likes to refer to them these days - Application Program) calls your generated FM.
In the "smartforms" transaction, when you are viewing a smartform, you can go to the Environment->Function Module Name menu path to see the FM name.
Look at the "Application Program" for the Invoice SmartForm (RLB_INVOICE):
code
determine smartform function module for invoice
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = lf_formname
variant = ' '
direct_call = ' '
IMPORTING fm_name = lf_fm_name
EXCEPTIONS no_form = 1
no_function_module = 2
OTHERS = 3.
....
call smartform invoice
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_appl_obj =
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
is_bil_invoice = ls_bil_invoice
is_nast = nast
is_repeat = repeat
importing document_output_info =
job_output_info =
job_output_options =
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
[/code]
Hope this helps.
cheers
sagar
reward me points if usefull
‎2008 May 06 10:22 AM
Hi,
If we create a script in one client, that script is present in that client only it is not available in other client. Suppose you make any changes to a script in that client, you cannot view the change in other clients. You have to copy it to the client number you need and then view.--Client dependant.
In case of smartforms, you create a smartform or make changes to a smartform in one client, it is available across all clients same time.--Client independant.
Regards,
Amrita
‎2008 May 06 11:35 AM
Hi,
Sapscripts are saved in ITF format as text in client dependant tables STXH and STXL. smartforms are not saved in client dependant tables and visible across clients.
Regards
Kiran Sure