‎2010 Aug 18 10:26 AM
hi all,
i have wrtie a code for calling SMART FORM.In the coding START OF SELECTION,i got error at f_display_report
This the code:
FORM f_display_report .
DATA: fname(30) TYPE c.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZCCL_RATE_COMPARISION2'
IMPORTING
fm_name = fname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
CALL FUNCTION fname
EXPORTING
gi_main = gs_main
TABLES
it_detail = gi_detail.
ENDIF.
ENDFORM.where GS_MIAN and GI_DETAIL are:
gs_main LIKE ekko,
gi_detail LIKE STANDARD TABLE OF ekpo WITH HEADER LINE.
after execuring it gives me error of Incorrect parameter with CALL FUNCTION.
Thanks & Regards,
sappk25
‎2010 Aug 18 10:34 AM
Please also place the type refered in smart forms.
Your dump analysis will clearly say which parameter was mistyped.
My assumption is
CALL FUNCTION fname
EXPORTING
gi_main = gs_main
TABLES
it_detail = gi_detail[] "<--- try adding a square bracket here
‎2010 Aug 18 10:34 AM
Please also place the type refered in smart forms.
Your dump analysis will clearly say which parameter was mistyped.
My assumption is
CALL FUNCTION fname
EXPORTING
gi_main = gs_main
TABLES
it_detail = gi_detail[] "<--- try adding a square bracket here