Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

pass Internal table to the Smartform

Good day experts..

How could I pass the whole internal table into the smartform?

Thank you for you replies.

Former Member
Former Member replied

Hi,

In the calling program you have to call FM 'SSF_FUNCTION_MODULE_NAME',. You should pass Smart form name to this as Import parameter and get FM generated by Smart form.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname                 = 'ZDEMO_SMARTFORM'
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
    IMPORTING
      fm_name                  = fm_name
    EXCEPTIONS
      no_form                  = 1
      no_function_module       = 2
            .
  IF t_header[] IS NOT INITIAL.
    CALL FUNCTION fm_name
      EXPORTING
        apptype     = w_apptype
        startdate   = s_date-low
        enddate     = s_date-high
        name        = p_name
        designation = p_desg
      TABLES
        it_header   = t_header[].
  ELSE.
    MESSAGE i001.
    STOP.
  ENDIF.                               " IF t_header[]

In Smart forms, Go to Interface parameters and there in TABLES parameters define tables.

Hope you understand.

Thanks,

Phani Diwakar.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question