Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

script and smartform

Former Member
0 Likes
521

hi

why script is client dependent and smartform client independent

please tell me.

3 REPLIES 3
Read only

Former Member
0 Likes
500

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

Read only

Former Member
0 Likes
500

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

Read only

Former Member
0 Likes
500

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