cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging in Smartforms

Former Member
0 Kudos

Hi,

How can i debug the smartforms in runtime. Can i debug at end user level? If possible how?

Thanks & Regards,

Abhijit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Write explicitly 'BREAK-POINT' from where u want to debug in the form....

Abhijit74
Active Contributor
0 Kudos

That i know but how can i debug it at end user level?

Former Member
0 Kudos

well a smartform is finally a generated function module which is beeing called.

Get the name of the generated function module. goto se37 and place your break points there.

Former Member
0 Kudos

Hi,

if u want to debugg the SF at user level, just write a statement 'BREAK' followed by ur User ID.

write like above wherever u want to debugg...

Eg:

if ur SAP user ID is 'ABHMAN' then u should write like below in ur code lines.

BREAK ABHMAN.

Rgds,

Pavan

Answers (7)

Answers (7)

Former Member
0 Kudos

How can i debug the smartforms in runtime

Hi,

What i have understood from ur query is u dont want to put 'Breakpoint' statement in smartform but want to check it at runtime .

Yes it can be done.

Steps to debug a particular node:

1. Execute the required smartform and take the function module name from there,do not enter into that function module.

2. in SE38 search for programs by the function module name,

for eg., if the func module name is /BCDWB/SF00000024 then search parameter for f4 would be

/BCDWB/SF00000024, this would give u 4 to 5 prgs in the search list,

these are the include files which it create for the same smartform .

out of this open the prg with the name /BCDWB/LSF00000024F01 in SE38.

3./BCDWB/LSF00000024F01 - this include file actualy containes the code that we type inside smartforms.

every node or the windows that is added to the smartform is coded in FORM...ENDFORM ,

inside this include file.

4. FORM look like this .

FORM %C01.

  • NODE CODE5 - this is the name of the node in smartform

for the prg line node 'code5',name of the node, coding is inside this form.

so u can easily put a break point here at this point .

ENDFORM.

like this for every node the FORM is created , u can search for required node and but a break point.

I hope this will solve ur problem.

Regards,

Edited by: Vishal Chavan on May 4, 2009 11:41 AM

Former Member
0 Kudos

goto tcode smartforms enter the form name and press the F8 then you will get one Functiona module like /1BCDWB/SF0000038 , and goto SE37 dispaly FM anf put break point.

Former Member
0 Kudos

Hi,

yes , you can debug at end user level. As in your previous post you mention that you know how to put a break-point in smartforms. When you put that you can check the step-wise process at runtime.

Inspite of that i again write here the process for putting break-point.

Via Flow-logic- Program lines - Pass i/p parameter - write 'Break-point' .

Activate it and than run transaction.

Regards,

Himanshu

Former Member
0 Kudos

write '/h' in command field at the leftmost corner of the sap screen.

It will switch on debugging mode..

Former Member
0 Kudos

Hi,

Three ways of debugging the smartfrom..

1. Hardcode the BREAK-POINT:

2. Breakpoint using BREAK user-name:

3. Breakpoint on the fly:

Refer to this link..[Debugging Smartfrom|http://help-abap.blogspot.com/2008/10/smartforms-breakpoints.html]

Former Member
0 Kudos

Hi,

debug the Function Module of that smartform.

(OR)

write a ABAP line and breakpoint above where you want to debug ,then with that breakpoint it starts debugging.

Regards,

jaya

Former Member
0 Kudos

You need to active debugger. Menu bar ->utilities.

Or

put add this statement at the beginning of initialization "BREAK POINT."

or BREAK <your id> .

and after completing the above things run your tcode .

Hope this will solve your problem.

Cheers,

Suvi