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

Debugging in smartforms

Former Member
0 Likes
1,002

Hi

Can any one send me the snap shots of Smartform debugging.

Thanks in advance.

Useful posts will be rewarded.

Regards,

Archana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
786

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

Rgds

Reshma

8 REPLIES 8
Read only

Former Member
0 Likes
787

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

Rgds

Reshma

Read only

Former Member
0 Likes
786

Hi,

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

Read only

Former Member
0 Likes
786

Yeah you have to explicitily write

break-point.

any where you are writing code or you may do it for settig the break point...

That is a easy method to see whether all the values are gtting populated or not...

Regards

Jayant

Read only

Former Member
0 Likes
786

Hi,

Set the break point in initialization(Global Definitions--> Initialization) of smartform as :

BREAK <USERNAME>. --Works for particular user.

Please don't use BREAK-POINT this will apply all the users who are testing the smartform.

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.

See the Below thread for how to debug the Smartforms

Regards,

Priyanka.

Read only

Former Member
0 Likes
786

Thank you guys,

I like to know about the transaction code SFTRACE.

I mean how to trace for my smartform in that transaction code.

Thanks again in advance

Regards,

Archana

Read only

Read only

former_member632991
Active Contributor
0 Likes
786

Hi,

Either u can put breakpoint in smartform by doing hardcode BREAK_POINT in any window if u have access to change the smartform

If u don't want to put breakpoint then

first go to smart form transaction -> press f8, -> the windows change to the FM -> click in display and -> click in find -> choose the control program and find a part of the source code and put a break point.

Hope it helps.

Regards,

Sonika

Read only

Former Member
0 Likes
786

Hi Archana,

U can write 'BREAK-POINT' statement in Program lines.

smartform will directly go into degugging.

Reward points if helpful.

Regards,

Hemant