2014 Oct 20 11:42 AM
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.
2014 Oct 20 11:50 AM
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?
2014 Oct 20 11:50 AM
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?
2014 Oct 20 11:55 AM
check types of FS_KNA1 & IM_FS_KNA1 in smartform, there would be a mismatch.
2014 Oct 20 11:57 AM
Hi Darshan,
You might have forgot to activate the smartform after adding the parameter.
You code seems work.
2014 Oct 20 12:25 PM
Hi,
Try pattern to eliminate parameter name problems.
Regards.
2014 Oct 20 2:01 PM
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.
2014 Oct 20 2:09 PM
Activate your smartform, and delete the old function module call, call smartform again using function module name through pattern.