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

How to find Printprogram for Smartform.

Former Member
0 Likes
687

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.

3 REPLIES 3
Read only

Former Member
0 Likes
665

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

Read only

Former Member
0 Likes
665

I got the answer. we could see in TNAPR Table.

bye,

Nagesh.

Read only

suresh_datti
Active Contributor
0 Likes
665

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