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

Smartforms.. Function Module not found.. fm_name when tried in the SE38

Former Member
0 Likes
1,367

Hi all,

I created the form using the smartforms, check it and activated it. I can see the unique function module is assigned to the form. I wrote the ABAP program and declared the data types, but when I called the function module fm_name, the system is saying that fm does not exits..My program looks like this in short:

data fm_name type rs38l_fnam.

parameter: p_form type tdsfname default 'zashok01'.

  • where Zashok01 is the form name.

  • print data

call function 'SSF_FUNCTION_MODULE_NAME'

exporting formname = p_form

  • variant = ' '

  • direct_call = ' '

importing fm_name = fm_name

exceptions no_form = 1

no_function_module = 2

others = 3.

--

now after this, when I am calling the function module fm_name to get the generated FM for the form, the system gives a note that FM does not exits..

Can anyone find me the result.. Do I need to create a new FM or what??? or is there anything wrong with my codes to assign the name of FM.

Waiting for your replies..

Regards,

-Ashok Hansraj

Hi all,

I created the form using the smartforms, check it and activated it. I can see the unique function module is assigned to the form. I wrote the ABAP program and declared the data types, but when I called the function module fm_name, the system is saying that fm does not exits..My program looks like this in short:

data fm_name type rs38l_fnam.

parameter: p_form type tdsfname default 'zashok01'.

  • where Zashok01 is the form name.

  • print data

call function 'SSF_FUNCTION_MODULE_NAME'

exporting formname = p_form

  • variant = ' '

  • direct_call = ' '

importing fm_name = fm_name

exceptions no_form = 1

no_function_module = 2

others = 3.

--

now after this, when I am calling the function module fm_name to get the generated FM for the form, the system gives a note that FM does not exits..

Can anyone find me the result.. Do I need to create a new FM or what??? or is there anything wrong with my codes to assign the name of FM.

Waiting for your replies..

Regards,

-Ashok Hansraj

4 REPLIES 4
Read only

Former Member
0 Likes
896

Hi

Write the name of SM in upper case

or

Try to active your SM by transaction SMARTFORMS and check the FM name.

Max

Read only

Former Member
0 Likes
896

Check in debugging what is the return code Sy-SUBRC after

Function SSF_FUNCTION_MODULE_NAME. Check the value in

fm_name.

You can also see the function name for your smartform using tcode SAMRTFORMS -> Test . It will brach to SE37 with the function name on the screen.

Cheers.

Read only

Former Member
0 Likes
896

HI!!!

write like this:

parameter: p_form type tdsfname default 'ZASHOK01'.

not this:

parameter: p_form type tdsfname default 'zashok01'..

'zashok01' make it all capital 'ZASHOK01'.

hope this will help you...

kindly reward a point if this helped you...

ty...

james

Read only

Former Member
0 Likes
896

hi,

correct the following things

1. parameter: p_form type tdsfname default 'ZASHOK01'.

2. check fm name in Smartform - > Environment - > function module name

3. copy name of the function module and call from the program like

CALL FUNCTION '/1BCDWB/SF00000003'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

then replace '/1BCDWB/SF00000003' to fm_name like below

CALL FUNCTION fm_name

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

cheers,

sasi