2005 Sep 26 7:07 PM
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
2005 Sep 26 7: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
2005 Sep 26 7: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.
2005 Sep 29 4: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
2005 Sep 29 5: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