cancel
Showing results for 
Search instead for 
Did you mean: 

pass Internal table to the Smartform

Former Member
0 Kudos

Good day experts..

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

Thank you for you replies.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

In the driver program,

DATA :

t_vbrk LIKE STANDARD TABLE OF vbrk.

Smartform-->form interface:

Import tab ---> t_vbrk TYPE Y_TY_VBRK.

Create the line type of the y_ty_vbrk.

In se11--> data type :

table type :

line type vbrk

Regards,

Sravanthi

Former Member
0 Kudos

Hi

If your internal table structure is not similar to any database table structure or anyother structure in R3 then define your own structure which is similar to your internal table.

Following link is helpful in creating structure,

http://help.sap.com/saphelp_nw70/helpdata/EN/90/8d7307b1af11d194f600a0c929b3c3/frameset.htm

Now in Smartform click on Form interface and select tables tab then define your internal table.

Regards

Rajesh

Former Member
0 Kudos

hai,

in smartforms in form interface u will be having tab tables in that declare internal table that u want....

system will generate f.m use that f.m in se38 program and pass the internal table from there.

shan.