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 identify print program for smart forms

Former Member
0 Likes
2,522

Hi,

I am not sure how to identify print program for a smart forms.

I tried table TNAPR to see whether it is stored.

What is exact way to identify print program connected to smart forms.

I need to debug the smart form. In order to debug, I need to identify print program so that I execute to debug to see what is the issue.

Thnx.

Edited by: Deepan Gunalan on Jan 17, 2011 9:02 PM

1 ACCEPTED SOLUTION
Read only

Subhankar
Active Contributor
0 Likes
1,916

In one shot to get the program details goto SE16 of TNAPR and and search the details (program name, subroutine, output types and application) where SFORM equals to your smartform name. If want search for SAPScript then search for FONAM = SapScript name.

Then you can go to NACE and get the configuration.

To debug the smartform first put a break point in in the Subroutine what you will get from TNAPR. Then start the debugging by /h and activate Update debugging and system debugging. Then it will stop at your break point as this froms are triggered in background from program RSNAST00.

Thanks

Subhankar

6 REPLIES 6
Read only

brad_bohn
Active Contributor
0 Likes
1,916

View the config in NACE or use TNAPR as you mentioned already. You can trigger debugging from the generated function directly though.

Read only

Former Member
0 Likes
1,916

it is possible debug using FM. If so, it is possible to debug to see how those values pulled inside smart form layout?

Read only

brad_bohn
Active Contributor
0 Likes
1,916

Yes, though I was merely pointing out that you don't need to know the program name to debug, It's easier to look up the program in NACE or TNAPR though and work with that. However, among other options, you can set a breakpoint in the generated function module (name found from SMARTFORMS txn), then process the output from the application transaction. Ensure that you have update debugging turned-on if applicable. You DO NOT need system debugging as the other poster mentioned, nor do you need to go to both TNAPR and NACE - one is sufficient. You can view the call stack in debug mode to see the form call from the output processing program.

Edited by: Brad Bohn on Jan 17, 2011 3:42 PM

Read only

Former Member
0 Likes
1,916

You will have to identify the application and Output type associated with the Smart form and then go to NACE to determine the execution program...

And if it is a custom smart form and you are lucky enough to have smaller number of smartforms, you can do a where used list of

SSF_FUNCTION_MODULE_NAME in custom objects(enter Z* or y* in your search criteria) and go through your Custom Objects to relate smart form and program name (provided it is custom object)

Read only

Subhankar
Active Contributor
0 Likes
1,917

In one shot to get the program details goto SE16 of TNAPR and and search the details (program name, subroutine, output types and application) where SFORM equals to your smartform name. If want search for SAPScript then search for FONAM = SapScript name.

Then you can go to NACE and get the configuration.

To debug the smartform first put a break point in in the Subroutine what you will get from TNAPR. Then start the debugging by /h and activate Update debugging and system debugging. Then it will stop at your break point as this froms are triggered in background from program RSNAST00.

Thanks

Subhankar

Read only

Clemenss
Active Contributor
0 Likes
1,916

Hi Deepan,

a smartform is created by a function module. This can be found in the extras/utilities of SMARTFORMS transaction or just hit TEST button to bring up function builder for the.associated function module.

Because you have thoroughly searched before posting, you already knew this. Also yolu know well transaction [SMARTFORM_TRACE (SFTRACE)|http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/content.htm] and how to use it with highest level to get not only the names and values of fields in text outputs but also the attribute values of processed output nodes (text elements, text modules, include texts, graphics, addresses), for example, language, style used, technical name of the included text module, and so on.

I found all of that using F1 & google. Shame on me.

Regards,

Clemens