cancel
Showing results for 
Search instead for 
Did you mean: 

Passing table to smartform

Former Member
0 Kudos

Hi All,

i am making a smartform having 2 tables. In the driver program, i have passed the values in the 2 internal tables. When generating the print preview, i am getting a runtime error saying "

" When calling the function module "/1BCDWB/SF00000155", one of the parmeters needed according to the interface description was not specified.This parameter was "ITAB1".

I have also specified the name of the internal tables in the table tab of smartform also.

My code is as below:

CALL FUNCTION 'SSF_OPEN'

EXPORTING

CONTROL_PARAMETERS = CONTROL

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

EXIT.

ENDIF.

LOOP AT ITAB_EMP_DEATILS INTO ITAB_EMP_DEATILS .

LOOP AT ITAB1 INTO ITAB1.

CALL FUNCTION V_FMNAME

EXPORTING

CONTROL_PARAMETERS = CONTROL

ITAB_EMP_DEATILS = ITAB_EMP_DEATILS

ITAB1 = ITAB1

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDLOOP.

ENDLOOP.

Please advice,

Thanks & Regards,

preeti

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

your smartform call shoul be like this

CALL FUNCTION 'SSF_OPEN'

EXPORTING

CONTROL_PARAMETERS = CONTROL

<b>TABLES

itab1 = it_itab(internal table in ur program shud be of same type as itab1)

itab2 = it_tab2

(itab1 & itab2 u have declared in tables part of ur form interface.)</b>

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

reward points if helpful

Answers (0)