Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

getting error of CALL FUNCTION in coding

Former Member
0 Likes
396

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

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
356

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

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
357

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