How to debug smartforms

hi
could anybody suggest me how to debug smatforms
thank you
kalyan.

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.
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.
1)goto tcode SFTRACE --> click "trace on"
2) Get the function module name and set break points in function module name.
There is a transaction 'SMARTFORMS_TRACE' (or was it 'SMARTFORMS_TRACE') which will give you quite helpful information.
In SAPSCRIPTS, you can 'Activate the debugger' in SE71 to start the debugging of script.
In SMARTFORMS, you can use BREAK-POINT (coded in any code window node) to initiate debugging of SF.
SFTRACE can be used for debugging SMARTFORMS.
Go in smartforms, put a breakpoint where you want in the generated FM.
Then go in you're PO, go to messages, generated you're output and make sure in further data option 1 is selected.
Then run program rsnast00 with you're form settings, that's it!
You could debug sapscript like that also,
regards,
srinivas

Similar Messages

  • Hai how to debug smartforms using SFTRACE .

    how to debug smartforms using SFTRACE .

    Hi,
    Go to the FM of the Smartform and in the main Program of the FM keep a break point. Whenever the Form is triggered which will stops at that break point, from there you can debug.
    Regards,
    Satish

  • How to debug smartform in display mode?

    Hi,
    How to debug smartforms program lines in display mode? Need help on this issue?
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:32 AM
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Jan 12, 2010 11:57 AM

    Please search before posting
    << Cut and paste without attribution from http://it.toolbox.com/wiki/index.php/SAP_Smart_Forms removed >>
    << Please don't ask other to follow the forum rules and violate them yourself! >>
    *In simple way---follow these steps:-
    If you are in a non-modifiable client:
    Display your SmartForm.
    Go to Environment and copy the function module name.
    Go to SE37 and display the function.
    Go to Smartforms and copy the node name where you want to debugg.
    Go to the function and search for the name in main program. Put a soft break point.*
    Manas M
    Edited by: Kumar Manas Mishra on Jan 12, 2010 12:05 PM
    Edited by: Kumar Manas Mishra on Jan 12, 2010 12:06 PM
    Edited by: Rob Burbank on Jan 12, 2010 11:52 AM

  • How to Debug Smart forms ?

    Hl,
    Please give the stapes of : How to debug Smartforms ?
    Thanking you
    Regards,
    Subash.

    hi,
    Please search SCN before posting with DEBUG SMARTFORM you get lot more info
    put a program line where you need the break point
    and Hard code BREAK POINT
    or else in intialization you can write BREAK Point and debug
    regards
    Prasanth

  • Debuging smartforms

    how to debug the program lines / code lines of the smart forms?

    Hi,
    goto your smartforms. click on test(F8)
    function module will be generated. go inside the function module.
    create a break point.
    come out
    then give the command for print from the application which is calling the smartforms.
    Refer to these related threads
    smartforms debug
    Smartforms debug
    How to debug Smartforms?
    How to Debug the Smartforms
    Re: Smartforms Debug
    Smartforms
    Regards,
    Harish

  • How to Debugg Smartforms

    Hi all,
                While printing Invoice order i am getting Error in SmartForms, pls let me know simplest way how to debugg the same.
    regards
    Rag,

    Ragha,
    DEBUG A 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
    How to Debug Smartform?
    Re: debug of smartfrom
    Smart forms
    Amit.
    Edited by: Amit Gujargoud on Jul 2, 2008 12:17 PM

  • How to debug a smartform?

    I am facing deffficulty.. while debugging the my smartform.
    this is called in e-recruitement portal.. i tried with smartform_trace and break-point and all.
    how to do this?
    Please help me.
    Thanks

    Hi
    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
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    LOGO on Smartform
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) Use TCode SE78 to upload new pictures and logos.
    look at Thread Dynamic Graph in smartforms
    Refer the links also -
    Re: Dinamic Graph in smartforms
    How to get file perperties in Unix server

  • Hi gurus how to debug the smartforms

    hi gurus how to debug the smartforms

    Hi
    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
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    LOGO on Smartform
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) Use TCode SE78 to upload new pictures and logos.
    look at Thread Dynamic Graph in smartforms
    Refer the links also -
    Re: Dinamic Graph in smartforms
    How to get file perperties in Unix server

  • How to trace debug smartform?

    Hi
    how to debug debug smartform?

    HI manooj,
    Before posting any thred please search the thread.
    Seach by Debug Smart form u will get so amny threads.
    see the following link.
    Steps to debug smartfrom
    For debugging Smart Forms :
    1) Execute ur smartform -->> Gives Function Module
    2) Again Execute SmartForm(Function Module Screen).
    >> next screen shows.
    Execute and Debugging.

  • How to debug the smart forms

    Hi All,
    Can any body guide me how to debug the smart forms.
    Thanks & Regards,
    Satish.

    Hi,
    The the best way to debug the form is to put a breakpoint in the function module generated by the smartform.
    Procedure:
    Open the smartform we want to debug.
    Goto Environment -> Function module name.
    Open the function module in SE37. From the menu GOTO -> main program. Open the last include.
    This incude contains the entire code ie the code we have written in initalization + form routines + program lines + sap generated code.
    Even we can search for the text nodes, folders, templates, tables, graphics, address nodes etc with their names.
    Put a breakpoint at any point you want.
    If we issue any doc which triggers this form, when the control reaches the break point it will stop.
    Please note that hard-coding the break points in the code ( Program lines ) is not recommended and it can´t be done unless if it is development server.
    So, always put a session break point in the related function module.
    We can use SFTRACE transaction to know the sequence of the control flow.
    If you want to break at each and every text that is printed on the output form put the break points in the forms.
    1. %write_text  to break at text element.
    2. %WRITE_TEXT_MODULE  to break at text module.
    3. %WRITE_INCLUDE_TEXT  to break at include text.
    Please put a break point at the first sy-subrc check.
    If the control reaches this point, you can find the name of the element in the varible NAME and the content in the text node in %TEXT.
    Its easy to understand the sequence of the printing if we put a breakpoint as stated above.
    Regards,
    Satish.

  • Hi,  how to debug forms of script

    hi
    could anybody tell me how to debug script forms.
    i am using /h in se71, but it is not going inside form.
    pl guide me fast.
    thanx
    robo

    Hi Rocky,
    Go through the following two ways
    SAP Script:
    YOu Can debug a SAP Script by activating debugger in two ways 1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
    2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
    Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.
    1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.
    2.You can debug the function module which generates the smartform.
    Regards
    Sreeni

  • Debugging smartforms

    Can any one help me out with how to debug the smart forms?
    cheers,

    Hi U can Debug the smartform by just puttting BREAK-POINT in any of the flow-logic node. OR
    U can use FM generated by the Smartform and then display it and put the break point where require.Here in this code u can find any String let say u want to debug from DATA c1 type c.
    So find out this string in the main program and put the break point.
    Hope u this will solve ur problem.

  • How to debugg smartform?

    how to debugg smartform?

    Hi Sunil,
    Check this info.
    Debug SF:
    For Preview :
    SMARTFORM-> execute->execute->pass values if require to import & table parameters ->execute-> on the pop up window give Printer name as LP01 and press print preview.
    For debugging -
    1. Write BREAK POINT in the code window.
    2. Put a break point on the call function in the driver program
    3. Put a break point in the generated Function module.
    OR
    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
    OR
    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
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Debug Smartforms

    Hi Experts,
    I have a SF containing some windows.
    Suppose one window is not fit for the page and i got an error at run time.
    No problem at activation.
    When i am running the SF, after inputting the values i didnt get layout .. got an error window does not fit for page.
    How to find out the which window is not fit for page through debugging...
    How to debug SF (w/o program lines)...
    thanks ..
    sekhar

    Hi Sekhar,
      If the window does not fit activation will happen anyway.But once execute the smartform it will give   FORMATTING ERROR .
    1.You can check it by clicking CHECK(ctrl+F4) before the activation.
         OR
    2.You can check it from FORM PAINTER there you can able to see the window size whether it exceeds the page or not.
    For the second Question.
    1.You can Debug Smart form by putting BREAK-POINT in the program lines node in the smartform itself.
        OR
    2. Once you excute the Smart form it will generate the Function Module on the MENU options the
       path you should follow is as below.
         GOTO->MAIN PROGRAM->this will lead to function Pool .
    There you can find the includes.
    Double click on User-defined Include-files and put a BREAK POINT where ever you want.
    I hope this will help you.
    Regards
    Raj

  • How to debug in SAP Netweaver Developers Studio?

    Hi there,
    I am trying to debug and slove my error in SAP NWDS.
    I am building portal application->JSPDynPage
    I am trying to debug the jsp code behind page, it doesn't realli give error message like the java beans does.
    I am quite new to this and do not know how to set the function to test and debug this page can anyone provide any solution ?
    I have have this prob pls refer to this link
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=192104">https://www.sdn.sap.com/irj/sdn/thread?threadID=192104</a>
    Thanks loads
    Quatre

    Hi Quatre ,
    -Select the breakpoints in your Dynpages /beans in ur project
    -To debug u have to change the prespective to debug which u can find in
    window/open prespective /Debug in NWDS
    -Select the Run/Debug or the Debug icon in the toolbar.
    -Fill the project name ,application name in  the in the wizard opnend .
    - Follow the debugging using the next step over F6 ,step return F7 keys .
    These link may be helpful:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/66/547f09281d464b951c9a3a6b06a12d/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/def86ab54da5418a3575373934ca00/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d4/31e24044b80b06e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/be/cffcb407c67842b122bd1296dc810f/frameset.htm
    U can always find out the way in the PDK development /how to debug/
    ie in NWDS /HELP /SAP WAS AS Documentation /SAP J2ee Enterprise Java Beans/Java development User Guide /Running and Debugging
    Cheers,
    Swathi Rao
    Do offer pts:-)

Maybe you are looking for

  • New Apple id not being recognised by iTunes

    I have changed my Apple Id because I have changed my email address.  On my ipad, all is well and the new id is accepted and established.  However on my Windows desktop, the id is not accepted by iTunes ie when I try to sign in, it displays the old id

  • Conversion customer to Business partner: R/3 -- XI -- R/3

    Dears, For the implementation of Credit Management, we needed following setup: 1. Customer data is sent to XI by IDOC 2. The IDOC is mapped to a Business partner in XI 3. The business partner is sent back to the R/3 system with the ABAP proxy. SXMB_M

  • LaserJet M1212 nf - Error Msg: Used supplies in use

    How can I stop my printer sending this message when I am using a non HP Toner? When this message is active I can not scan. This question was solved. View Solution.

  • Where to find ORACLE 8.1.5?

    Please!! I need to download 8.1.5 Oracle DB? Where Can I find it? Thanks a lot!

  • How to get network to see iphone4 os 10.6.8

    I used to have my iphone connected Via USB Tether  to my MacBook OS 10.6.8 until I updated to iTunes 7. I fixed the kext file but network does not see my iPhone4 unless I turn on Bluetooth. This is very slow to the internet and I'd really like to get