Application Development 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: 

smartforms

Former Member
0 Kudos
63

is it possible that without driver program can we create form in smrtforms.

why smartforms r client independent justify.

4 REPLIES 4

Former Member
0 Kudos
43

Hi

smartforms generate a function module when executed , so they r client independent.

u can write the code in smartform itself.

Former Member
0 Kudos
43

SmartForms are Client Independent because when you activate them you are actually generating a Function Module. This means that the Print Programs actually call a FM instead of using the "OPEN_FORM", "WRITE_FORM" etc FM's that SAPscript use.

Former Member
0 Kudos
43

Hi,

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,

vasavi.

kindly reward if helpful.

Former Member
0 Kudos
43

thanks and how to process standard text in smartforms.