Skip to Content
avatar image
Former Member

Debugging in Smartforms

Hi,

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

Thanks & Regards,

Abhijit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Best Answer
    avatar image
    Former Member
    May 04, 2009 at 08:46 AM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Abhijit Mandal

      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

  • avatar image
    Former Member
    May 04, 2009 at 08:47 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 08:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 08:51 AM

    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]

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 08:53 AM

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

    It will switch on debugging mode..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 09:07 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 08:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 09:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded