cancel
Showing results for 
Search instead for 
Did you mean: 

hi experts insmatforms

Former Member
0 Kudos

hi experts in smatforms when we activate it will generate the function module , we call the form driver program using fm SSF_FUNCTION_MODULE...... , why we call the form using this fuction module , what is the use.

is it possible to call fm ( when form activate that the generated fm) .

give me detailed information about this

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

It is becuase the smartform function module get re generated after each session. The name changes dynamically and hence we use those FMs

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Its the smartforms architecture.

Whenever a smartform is activated a FM gets generated and in the print program we need the FM name to call the smartform interface with the relevant populated data through structures and tables in order to print the document.

I hope this clears the doubt.

Regards,

Ram

valter_oliveira
Active Contributor
0 Kudos

Hello.

Yes, you calll the FM that SSF_FUNCTION_MODULE_NAME returns like:


DATA: wa_fm_name1 TYPE rs38l_fnam,
      wa_control_param TYPE ssfctrlop,
      wa_composer_param TYPE ssfcompop.

CLEAR wa_fm_name1.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname           = 'ZLCCVDO03'
  IMPORTING
    fm_name            = wa_fm_name1
  EXCEPTIONS
    no_form            = 1
    no_function_module = 2
    OTHERS             = 3.

**** Call SMARTFORM
CALL FUNCTION wa_fm_name1
  EXPORTING
    archive_index      = toa_dara
    archive_parameters = arc_params
    control_parameters = wa_control_param
    output_options     = wa_composer_param
    user_settings      = space
  EXCEPTIONS
    formatting_error   = 1
    internal_error     = 2
    send_error         = 3
    user_canceled      = 4
    OTHERS             = 5.

Regards.

Valter Oliveira.

Former Member
0 Kudos

hi,

check this...

i hopr this will clear ur doubt..

pradeep

Edited by: pradeep kandgal on Jul 11, 2008 3:50 PM