Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 06:14 PM

    Hi

    Write the name of SM in upper case

    or

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

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 06:15 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 03:28 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 04:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.