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

Similar Messages

  • 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 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

  • Hi, how to debug IDOC using se37.

    Hello experts:
           Thank you in advance for all your replies.
           I tried to debug the function IDOC_OUTPUT_ORDCHG like the following in our company(because the structure of IDOCS this morning are totally wrong):
          1   I set some breakpoints at  IDOC_OUTPUT_ORDCHG .  
          2  modify a PO with me22n and an IDOC was created because the MESSAGE(on the menu bar) showed that an IDOC is created .
          3 the program didn't stop at where I set the breakpoint.
          Is there anything wrong how I tried to debug?
           couldn't thank you more.
    Best regards.
    Frank

    Hi,
    To debug IDOC
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1268508,00.html
    Regards,
    Jagadish

  • How to debug FM used in event type linkage?

    Hi experts,
    I have actived below linkage by tcode SWETYPV.
    BO BUS2032  ALECREATED    ,
    and I find the Receiver Function Module is PUR_ORDER_CREATE_VIA_SD_EVENT, can we debug this function module?
    Thank you in advance.
    Richard

    Hi Richard,
    Can you give us  more details about the issue?
    Actually we cannot debug the receiver function module when the event is occured. The reason is, its a background process.
    As far as i know, its not possible to debug the receiver function module.
    To check the event trace, use the transaction SWEL. It will show you whether the action triggered the event or not?
    Thanks,
    Viji.

  • 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 call serlvet using ftp protocal

    Hai,
    How to call servlet using ftp protocal . if any one having please send that program . because generic servlet will receive any protocal request .

    The basics are to have your Server listen to port 21.
    You would then have to parse the request information to determine what is being asked for and generate an appropriate response.

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • Debugging JSPs using Visual Cafe

              I am using WL 5.1 and trying to figure out how to debug JSPs using Visual Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain "javac" for compilation. If I change the compiler to include -g option (for debug), I get the following error.
              Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed with Exception
              java.lang.NumberFormatException: error=2
              at java.lang.Integer.parseInt(Integer.java:409)
              at java.lang.Integer.parseInt(Integer.java:458)
              at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
              at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:168)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:99)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              weblogic.properties
              weblogic.httpd.initArgs.*.jsp=\
                        pageCheckSeconds=1,\
                        compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
                        workingDir=C:/weblogic/myserver/classfiles,\
                        verbose=true
              If I don't use -g option, the page gets displayed correctly. Any help would be appreciated.
              Thanks
              Sree Pillai
              

    assuming you are running on Windows, you can use a .cmd file with the
              following command in it
              javac -g %*
              if you name it c:/java/bin/javac.cmd, then replace the line with
              compileCommand=C:/java/bin/javac.cmd,\
              Barry
              Sree <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am using WL 5.1 and trying to figure out how to debug JSPs using Visual
              Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain
              "javac" for compilation. If I change the compiler to include -g option (for
              debug), I get the following error.
              >
              > Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed
              with Exception
              > java.lang.NumberFormatException: error=2
              > at java.lang.Integer.parseInt(Integer.java:409)
              > at java.lang.Integer.parseInt(Integer.java:458)
              > at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
              > at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              > java:168)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:99)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > textImpl.java:742)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > textImpl.java:686)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > ContextManager.java:247)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > a:361)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              >
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              >
              > weblogic.properties
              > -------
              > weblogic.httpd.initArgs.*.jsp=\
              > pageCheckSeconds=1,\
              > compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
              > workingDir=C:/weblogic/myserver/classfiles,\
              > verbose=true
              > --------------
              >
              >
              > If I don't use -g option, the page gets displayed correctly. Any help
              would be appreciated.
              >
              > Thanks
              > Sree Pillai
              

  • 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 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 find smartform that is used within a transaction

    Hi experts,
    Im trying to find the smartform that are used behind transaction FNVS/me22n/zab1/zapb
    From me22n i know it uses zmedruck and i could find this by doing the following:
    transaction nace - ef - neu. there i could find everything, even the printprogram.
    this i found because someone told me you can find everything from orders there within EF.
    but the other transactions i don't know how to start looking for the smartform, as i cant debug those printpreviews neither.
    If someone can explain me how i can find the smartform used behind those printscreens that would help me a lot.
    regards,
    michael

    hi,
    i've put a external breakpoint and a normal breakpoint within the function module,
    but when i press the print preview it doesnt trigger :/
    [image breakpoint|http://img256.imageshack.us/img256/2888/capturede.png]
    even within me22n.
    Am i doing something wrong?
    thx already for the fast reaction.
    regards,
    Michael

  • How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?

    Hi Experts,
    How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
    I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM  for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.
    Call function SSF_FUNCTION_MODULE_NAME
    Export
    formname = 'zsmartform'
    import
    fm_name = function_name.
    function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?
    thanks in advance.

    hi,
    Chk this sample.
    DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
    p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
    p_output_options-TDCOPIES = 3. "number of copies.
    p_output_options-tddest = 'LP01'. "def
    p_control_parameters-no_dialog = 'X'. "no dilog box
    p_control_parameters-preview = 'X'. "no preview
    DATA : v_form_name TYPE rs38l_fnam.
    *---- Function to get the function module name of the    ----
    *---- specified Smart form.                              ----
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'GIVE YOUR SMART FORM NAME'   
    * VARIANT = ' '
    * DIRECT_CALL = ' '
    IMPORTING
    fm_name = v_form_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3 .
    *---- Function Module to call the Smart Form          ----
    *step 1 - go to ur smart form
    *step2 - take environment
    *step3-take function module name
    *copy that unique number.
    *step4 -come back to ur driver program.
    *step5 - place ur cursur here. take patter,.give that unique number.
    *at that time u will get the below code.
    *step6 - rename that unique number with 'v_form_name' in the code generated by pattern.
    CALL FUNCTION v_form_name
    EXPORTING
    * ARCHIVE_INDEX =
    * ARCHIVE_PARAMETERS =
    control_parameters = p_control_parameters
    * MAIL_APPL_OBJ =
    * MAIL_RECIPIENT =
    * MAIL_SENDER =
    output_options = p_output_options
    user_settings = ' '
    * ARCHIVE_INDEX_TAB =
    * IMPORTING
    * DOCUMENT_OUTPUT_INFO =
    * JOB_OUTPUT_INFO =
    * JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    for any clarifiaction pls revert.
    regards,
    Reshma

Maybe you are looking for

  • Error/Crash on Start up

    OSX 10.6.8 keeps crashing on Start Up therefore I'm unable to use SpeedGrade (Cs 6.0.4), which is strange while all other applications on Creative Suite work without any problem on my good old MacPro 2,1 (2x3.0 Ghz) ATI4870 9GB What am I missing? Doe

  • The RECOVERY D drive in my HP Envy x 2 is almost 90% full.

    Doh. I've only just seen that the RECOVERY D drive in my HP Envy convertable device is almost 90% full.  The machine is still less than a year old, yet the D drive has acquired nearly 8 GB of stuff.  I know not what that stuff is in detail, nor how t

  • Re:Cancellation of Proforma Invoice

    Hi, My client requirement is that , He is creating proforma invoice and creating an excise invoice.Now he is able to cancel proforma invoice with out cancelling excise invoice so he wants to control that with out cancelling excise invoice he shouldnt

  • Rewrite the max query...

    The inner select statement works fast and few columns generated based on A.QSN_DESC_X values, AND to get a single row I am doing a group by on cmpltn_i by taking the max row. When I do this group by the query takes approx 5 mnts. The inner query retu

  • Row height of a JTree

    Hi There, I have set the laf of my application to be Windows Look And Feel. In case of windows laf, the Row Height of the JTree is not changing from the default one. I want All my Leaf to be of Different height than the Nodes. I have rendred my cells