02-22-2007 11:22 AM
HALLOW I DECLARE THIS IN MY REPORT PROGRAM I USE THIS FOR SMART FORM BUT I HAVE
DATA: /1bcdwb/sf00000002 TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'yhr_score_smart_form'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = /1BCDWB/SF00000002
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.
THIS IS THE ERORR
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
Function module "SSF_FUNCTION_MODULE_NAME" was called
with the parameter "FM_NAME".
This parameter is not defined
02-22-2007 11:27 AM
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'yhr_score_smart_form'
VARIANT = ' '
DIRECT_CALL = ' '
<b>* IMPORTING</b>
FM_NAME = /1BCDWB/SF00000002
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
Remove comment ( * ) before importing change it to
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'yhr_score_smart_form'
VARIANT = ' '
DIRECT_CALL = ' '
<b>IMPORTING</b>
FM_NAME = /1BCDWB/SF00000002
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
02-22-2007 11:30 AM
hi,
DATA: fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'yhr_score_smart_form'
VARIANT = ' '
DIRECT_CALL = ' '
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.
now it will work any problem get back to me.
Thank You.
02-22-2007 11:31 AM
Hi
Jus copy it in the following way-
data: form type tdsfname,
fm_name type rs38l_fnam.
form = 'Name of ur smartform'.
call function 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = form
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
others = 3.
CALL FUNCTION fm_name
TABLES
ITAB = itab[]
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.
Hope this helps.
Regds,
Seema