on 07-07-2007 8:15 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.