on 04-10-2007 10:31 AM
hi frnds, cld any one expalin me hw to use the fm ssf_functionmodule_name...which parameters we have to pass...etc....
thnks in advance..
santosh.
HI,
EXPORTING
FORMNAME = <FORM_name>
IMPORTING
FM_NAME = <FUNNAME>
These params u need to pass.
Kishi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSF_TEST' " In Capital Letters with in the codes
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_Name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sudheer...thnx for u r reply......i did the same told by u...now also it got activated but when i click execute...it showing nothing......even no error msg....i am sending the code here...
data fm_name type RS38L_FNAM .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSF_TEST'
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.
regards,
santosh...
Hi santosh,
do you have a smartform with the name 'ZSF_TEST' in your system?
Uncomment the message if you want to display the error that has occured in the FM.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSF_TEST'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
<b> MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.</b>
ENDIF.
Regards,
Ravi
Hi,
In the application program define a variable of type RS38L_FNAM for the name of the generated function module:
data fm_name type RS38L_FNAM .
You can call the Smart Form in other parts of the application program as well. However, in that case you must make sure that the system can access the data to be passed from that location. We recommend to encapsulate the data retrieval in a function module as well.
If desired, you can call the function module SSF_FIELD_LIST . It returns a list of the form parameters actually used in the form. You can use this information to limit data selection, if necessary.
Call function module SSF_FUNCTION_MODULE_NAME . It returns the name of the generated function module:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = '<form name>'
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
<error handling>
ENDIF.
regards,
veeresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = <FORM_name>
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = <FUNNAME>
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.
The Funcname you can use pattern and add the function module which will call the smartform.
assign points if it helps.
-Gaurang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.