cancel
Showing results for 
Search instead for 
Did you mean: 

Debug the smartforms & Print Progarams

Former Member
0 Kudos

Hai experts,

how the the debug the smartforms, how to know the print programs for particular smartform.

plz help, i am new to forms.

thanks

sitaram

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

1) You can write the code in smartform in program lines or in subrotines right . there you can hard code break point

break-point. or break username.

2) when you activate form function moldule will be generated right? take that function moldule name and go to SE38

let us say FM is /1BCDWB/SF00000109

then add SAPL after second slash /1BCDWB/SAPLSF00000109 and say display

now you can put soft break points wherever you need.

3) your FM is /1BCDWB/SF00000109 go to se 37 and put break points in the function module.

Reward points if useful

Regards,

Nageswar

Former Member
0 Kudos

If you're looking to find a print program of a Smart Form,

use se16 to show table TNAPR. It will show you all the information you need to find the print program and the matching form.

DEBUG SMARTFORM:

In the Smartform, within the Code Node you can hardcode a normal abap Break Point ..

Please set a break point in side the smartform:

BREAK <USERNAME>.

Then at the time of print/ preview the program stops there.

Example : If you set the break point in initializationas

BREAK <USERNAME>.

Program stops at break point. After that use Serach and set more break points.

-


>Search the program logic/Textelement/Address via search and set the break point at that code.

Other way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.

or

SFTRACE can be used for debugging SMARTFORMS.

Read More here.

http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

See the Below thread for how to debug the Smartforms

Former Member
0 Kudos

Hi,

Search the forum for 'debug smartforms' there are lots of answers to this part of your question already.

Regards,

Nick

Former Member
0 Kudos

Hi,

how to debug the smartforms

create program lines and then put a break point

break user name.

and finding the prrint program

go to nace transaction and select the application area

and then the output type

regards,

Venkatesh

Former Member
0 Kudos

Hi,

1) DEBUG Smartform:

1) One way to debug smartform is to debug the Function Module of that smartforms.

If you want to debug particular smartform node that the solution would be,

insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.

So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.

2) SFTRACE can be used for debugging SMARTFORMS.

Read More here.

http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

TNAPR is the table to find the Print Program of the corresponding smartform.

Regards,

Satish

Former Member
0 Kudos

TNAPR / TTXFP table contains the driver prg and smartform name

Four ways you can debugging.....

1.place SFTRACE inplace where we enter T_CODE and press ENTER.

after that press F8.

2 ./H

3 /SH

4.after generating the function module there is a button DEBUGGING

Test smartform:

1.after creating FM ditect press F8 or Excute(button) then select print preview.

Smart debugging:--> Execute the smartform.It will open a FM in se37 screen.

--> Press Display.

--> Press find(CTRL+F).

--> Enter command here at which you want to put the break point.

--> Select the radio button 'in main program'.It will open the point at which you want to put the breakpoint.

--> Put the breakpoint here and execute the smartform again.It will stop at the point where you put the breakpoint.