Skip to Content
avatar image
Former Member

How to Debug Smartform?

Dear All,

How to Debug a Smartform?

Regards,

Dharmesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

11 Answers

  • avatar image
    Former Member
    Apr 05, 2006 at 12:46 PM

    Hi Dharmesh,

    When editing the smartform, you can get the function module name (which is generated by the smartform definition) by Environment > Function Module Name from the menu.

    In the function module, you can search for the relevant code you are trying to debug. It is helpful to search for names of variables etc.

    Cheers,

    Martin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2006 at 12:50 PM

    chk this thread

    how-to-debug-a-smartform

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2006 at 12:53 PM

    hi Dharmesh,

    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

    if this is useful don't forget to reward the point

    Regards,

    naveen

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2006 at 12:55 PM

    hi

    check this thread

    debug-smart-form

    thanks,

    priya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2006 at 01:43 PM

    u can set a break point in smartform code window.

    U HAVE SET LIKE THIS

    BREAK-POINT

    I think this will work..

    Thanks

    Vikranth Khimavath

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 17, 2006 at 10:23 AM

    Hi,

    u can also debug the smartform like this.

    When u generate the smartform it will giv ethe smartformname.

    Now go to se38 and give sapl(smartform name), u will get all the includes.

    Please reward ponits if u fine helpful.

    Regards,

    Nagaraj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 17, 2006 at 10:52 AM

    hi,

    in the program lines place the break point on the cpde you write there or if you have any form routines written then you can use what nagraj have said and go into the includes and place the break point over there

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 17, 2006 at 10:54 AM

    Inside the "Programming Line" of smartform, write hard-coded break point (Break User_name or Break-Point). it will stop there.

    Regds

    Sandip

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2006 at 12:10 PM

    Hi

    good

    In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap

    Break Point.

    thanks

    mrutyun

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI Dharmesh,

      u can also debug smartforms by :

      1. apply 'BREAK-POINT' in driver program

      2. apply the breakpoint in genrated funtion module

      3. hard code the breakpoint in smartform itself while

      writing codes.

      4. But in production u cant

      write break point in smartform. So overcome this , see

      below method.

      Tcode > smartforms > F8>

      u will get a FM exp : /1BCDWB/SF00000138

      Now go to SE38 and add 'L' before S and add 'F01' and the

      end. So this will become /1BCDWB/LSF00000138F01

      now add break point where ever u want.

      BEst Regards,

      Raja

  • avatar image
    Former Member
    Mar 15, 2010 at 04:57 AM

    Hi ,

    You can debug the Smartform by putting the break point on the GLOBAL INIT in the Function Module of the form.

    Hope it will help you,

    Jatender

    Add comment
    10|10000 characters needed characters exceeded