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

sf --fun

Former Member
0 Likes
550

what r the function modules used in the smart form

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
518

Generally 2 function modules

  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = p_form
*                 variant            = ' '
*                 direct_call        = ' '
       importing  fm_name            = fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.

  if sy-subrc <> 0.
*   error handling
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
  endif.

* now call the generated function module
  call function fm_name
       exporting
*                 archive_index        =
*                 archive_parameters   =
*                 control_parameters   =
*                 mail_appl_obj        =
*                 mail_recipient       =
*                 mail_sender          =
*                 output_options       =
*                 user_settings        = 'X'
                  customer             = customer
                  bookings             = bookings
                  connections          = connections
*      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.

  if sy-subrc <> 0.
*   error handling
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

Cheers

VJ

3 REPLIES 3
Read only

Former Member
0 Likes
518

SSF_FUNCTION_MODULE_NAME is used to get the function module for the corresponding smart form.

Basically function modules starts with SSF are used for smart form.

Regards,

Santosh

Read only

Former Member
0 Likes
519

Generally 2 function modules

  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = p_form
*                 variant            = ' '
*                 direct_call        = ' '
       importing  fm_name            = fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.

  if sy-subrc <> 0.
*   error handling
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
  endif.

* now call the generated function module
  call function fm_name
       exporting
*                 archive_index        =
*                 archive_parameters   =
*                 control_parameters   =
*                 mail_appl_obj        =
*                 mail_recipient       =
*                 mail_sender          =
*                 output_options       =
*                 user_settings        = 'X'
                  customer             = customer
                  bookings             = bookings
                  connections          = connections
*      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.

  if sy-subrc <> 0.
*   error handling
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

Cheers

VJ

Read only

RaymondGiuseppi
Active Contributor
0 Likes
518

to use smart form use

WRITE_FORM

OPEN_FORM

CLOSE_FORM

CONTROL_FORM

WRITE_FORM_LINES

READ_FORM_LINES

DISPLAY_TEXT_EXIT_TX

START_FORM

END_FORM

READ_FORM_ELEMENTS

CONVERT_OTF_MEMORY

GET_TEXT_PRINT_PARAMETERS

RDI_TRANSFER_LABEL

RDI_FILL_SORTFIELDS

Regards