cancel
Showing results for 
Search instead for 
Did you mean: 

smart forms

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

EXPORTING

FORMNAME = <FORM_name>

IMPORTING

FM_NAME = <FUNNAME>

These params u need to pass.

Kishi.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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...

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi ravi...i did one form named zsf_test..its wrking properly...also i uncommented the msg id....then also it not shwing either o/p or error msg...

santosh.

Former Member
0 Kudos

thnx ravi..nw am gettting ans...

Former Member
0 Kudos

hi ravi...i have one more doubt....in my print program am using two forms with the hepl of radio buttons....so, in the fm ssf_fm......hw can i declare two form names and two function module names there...pls help me in this matter..

santosh.

Former Member
0 Kudos

hi sudheer..i have one more doubt...in my priont program am calling two forms...so hw can i declare two form names and two function module names in FM ssf_function_mod_name.

thnx in advance,

santosh.

former_member673464
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi veeresh...i tried just as told by u...it got activated....but when i am trying to execute it...showing run time error'the form zsf_test does not exist'..

i have activated the form also...where did i go wrong..pls suggest me....

Former Member
0 Kudos

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