2005 Dec 13 1:16 PM - last edited on 2024 Feb 04 12:55 AM by postmig_api_4
Hi,
I want to see the print program(Executable program) of the Smartform. We have one Smartform, when we activate smartform it will generate one FM. that function module is called Dynamically. How can i know which program is calling that function module.
Regards,
Nagesh.
Hi,
I want to see the print program(Executable program) of the Smartform. We have one Smartform, when we activate smartform it will generate one FM. that function module is called Dynamically. How can i know which program is calling that function module.
Regards,
Nagesh.
2005 Dec 13 1:23 PM
Hi
You can't do it.
If your print is std, you can try the link in TNAPR table if you know the message type.
If your print is custom, you should know the program.
The print program for smartform has usually a code like this to run SM:
DATA: formname type tdsfname value 'ZMY_SMARTFORM',
fm_name type rs38l_fnam.
Here get out the mane of fm of sf
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = formname
importing
fm_name = fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
exit.
endif.
Here run the sf
call function fm_name
........
Max
Message was edited by: max bianchi
2005 Dec 13 1:25 PM
I got the answer. we could see in TNAPR Table.
bye,
Nagesh.
2005 Dec 13 1:26 PM
Hi Nagesh,
Just like in SAPSCRIPT there is no 'Where Used' option in SMARTFORMS. You will have to scan the ABAP source for the smartform name using the delivered Program RPR_ABAP_SOURCE_SCAN.
Regards,
Suresh Datti
P.S. Cool..pl ignore my post
Message was edited by: Suresh Datti