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

CALL_FUNCTION_PARM_MISSING error in smartform driver program

former_member219850
Participant
0 Likes
3,709

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was

  not caught and

therefore caused a runtime error.

The reason for the exception is:

When calling the function module "/1BCDWB/SF00000295", one of the parameters

needed according to the interface description was not specified.

This parameter was "IM_FS_KNA1".

*                  START-OF-SELECTION EVENT                  *

*"--------------------------------------------------------------------*

START-OF-SELECTION.

  SELECT SINGLE *

           FROM kna1

           INTO fs_kna1

          WHERE kunnr EQ p_kunnr.

  SELECT *

    FROM vbrk

    INTO TABLE t_vbrk

   WHERE kunag EQ p_kunnr

     AND vbeln EQ p_vbeln.

  SELECT *

    FROM vbrp

    INTO TABLE t_vbrp

     FOR ALL ENTRIES IN t_vbrk

   WHERE vbeln = t_vbrk-vbeln.

  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

      formname                   = 'ZSF_INVOICE'

    IMPORTING

      fm_name                    = fm_name

    EXCEPTIONS

      no_form                     = 1

      no_function_module = 2

      OTHERS                   = 3.

  IF sy-subrc <> 0.

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

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

  ENDIF.

CALL FUNCTION fm_name

    EXPORTING

      im_fs_kna1       = fs_kna1

      im_t_vbrk        = t_vbrk

      im_t_vbrp        = t_vbrp

    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.

1 ACCEPTED SOLUTION
Read only

SimoneMilesi
Active Contributor
0 Likes
2,141

The error is self-explained:

in your smartform ZSF_INVOICE  you have a mandatory parameter you are not trasmitting in the calling report.

Are you sure it's IM_FS_KNA1? The parameter IM_FS_KNA1 is declared like fs_kna1?

6 REPLIES 6
Read only

SimoneMilesi
Active Contributor
0 Likes
2,142

The error is self-explained:

in your smartform ZSF_INVOICE  you have a mandatory parameter you are not trasmitting in the calling report.

Are you sure it's IM_FS_KNA1? The parameter IM_FS_KNA1 is declared like fs_kna1?

Read only

Former Member
0 Likes
2,141

check types of FS_KNA1 & IM_FS_KNA1 in smartform, there would be a mismatch.

Read only

former_member215561
Participant
0 Likes
2,141

Hi Darshan,

You might have forgot to activate the smartform after adding the parameter.

You code seems work.

Read only

rosenberg_eitan
Active Contributor
0 Likes
2,141

Hi,

Try pattern to eliminate parameter name problems.


Regards.

Read only

former_member201275
Active Contributor
0 Likes
2,141

Maybe when you are doing your select from KNA1 nothing is being returned i.e.

SELECT SINGLE * 

           FROM kna1

           INTO fs_kna1

          WHERE kunnr EQ p_kunnr.

You should really check here that SUBRC = 0.

Read only

0 Likes
2,141

Activate your smartform, and delete the old function module call, call smartform again using function module name through pattern.