Debugging a script

hi,
please can any onne tel me all the possible ways to debugg a script
thanks,
shilpa

Hi,
You could not debug your script alone like reports. First goto SE71 and input the script name which need to be debugged. Then navigate through menu 'Utilities' --> Activate Debugger. On status bar, you could find message "SAPScript form debugger was activated".
Next step is execute the print form / corresponding application which can trigger the form and you can find start of debugger which control comes to script.
Regards,
Prasanth

Similar Messages

  • Debugging a script and smart form

    Hi   Can u explain me How to Debug a Script and Smart from in Real time

    hi,
    for smartforms
    1. use transaction SMARTFORM_TRACE
    2. in the SMARTFORMS, use utilities to show the function name. You can analyze this function in SE37 and set dynamic breakpoints as required. Lok at the SMARTFORM_TRACE to decide where to set break points.
    3. BREAK-POINT can be used only in own program lines in smartform - not very helpful because it always stops until removed and generated again.
    for scripts
    from SE71 enter form name
    from Menu Utilities->ACTIVATE DEBUGGER
    then execute the script from the Application Transaction
    it will stop in the script and check for the Values you need
    or
    Execute RSTXDBUG.
    ~~Guduri

  • Debugging SAP Scripts MR_PRINT and MR_REKL

    Hi All,
    Can anybody tell me if there is an easy way to debug the SAP Script Layoutsets MR_PRINT and MR_REKL, which are triggered through MRKO and MIRO transactions. Also I need to know how to repeat the print out of the above layouts, which are outputs of Invoice reductions and Invoice corrections.
    I already tried SE71 -> Utilities -> Activate Debugger and also placing a break-point in one of the performs, I call, but I think the print program is a dynamic call and it is not stopping at the break-points.
    Let me know what I am missing.
    Thank you for your time,
    yrkanth

    Sorry, if it sounds dumb. But how will you put a hard breakpoint in a SAP Script? I don't hink there is a BREAK-POINT command which can be used in SAP Script? I activated the sap script debugger and am running the MRKO transaction which triggers the layoutset, but it is not stopping as it does stop for any other layouset.
    The other way I tried was, to put in BREAK-POINT command in one of the performs the SAP script calls and I was able to stop at that only when I debug in Update debugging mode. This only allows me to debug the perform code but it still does not allow me to debug the script as we debug the script for PO (Purchase Order) by activating the SAP Script debugger and print previewing the PO.
    Hope this helps?
    I really appreciate your time.
    Thank you,
    yrkanth

  • Debug SAP script

    Hi Gurus,
    I need to debug SAP script. How can I do this?
    Thanks,
    Pavan
    Moderator message - Please search before asking - post locked
    Moderator message - Please see Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! before posting - post locked
    Edited by: Rob Burbank on Oct 13, 2009 5:00 PM

    Hai Rajiv
    For Debugging SAP Scripts & Smartforms as follows
    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

  • About debugging of script

    hi experts,
    can u plz help me how to debugg the script in general way.and i would like toknow how to debugg the transaction F150.and tell me clearly where exactly the script will be triggered  and where exactly the driver program will trigger.
    in detail

    Hi Gupta,
    There are 2 ways to debug a script.
    1.Go to Se38 ,Enter the program name "RSTXDBUG' & then press Execute.
    2.Go to se71,enter the form name .In the same page,go to Utilities -->Activate Debugger.
    In both the cases,the debugger will b activated.Then u run the print program,automatically the form will b in debugging mode.....
    Actually,while configuring,we will mention the print program & the form to a transaction,so both of them will b linked to the transaction,no need to link them explicitly again.
    Reward points if useful.....
    Pavan.

  • I ALWAYS HAVE A MESSAGE FROM BROWSER THAT YOU NEED TO STOPAT I SHOULD DO? OR DEBUG THIS SCRIPT,FOR ALMOST EVERY WEBSITE...WH

    as soon as i click on a link and select open in anew tab i face the window asking me to stop or debug a script...for almost every website

    Does it mention a chrome:// URL in the error message that might indicate a problem with an extension?
    Firefox uses the "chrome://" protocol to access its own internal files and also access files from extensions (no connection with Google Chrome).
    *https://developer.mozilla.org/en/Chrome
    Note that your System Details List shows multiple Flash plugins.
    *Shockwave Flash 12.0 r0
    *Shockwave Flash 11.7 r700
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • Not able to debug SSIS SCRIPT using VS 2013

    Hi,
    I am trying to debug a script file using VS 2013 but wizard ask for VS 2012. It has only one option.
    Kindly let me know if there is any setting that I am missing
    Thanks,
    Anuj

    PL/SQL Developer has it's own forum @http://forums.allroundautomations.com/ubb/ubbthreads.php?ubb=postlist&Board=3&page=1&PHPSESSID=13b3aab3b0281796203ac9eca9db0f82
    You have an old version, by the way, why not upgrade?

  • How to debug a script?

    hi
    can anyone tell me how can we debug a script please?
    points will be given

    Hi
    check with this..
    can be done in two ways:
    In the form Utilities->debugger / RSTXDBUG FM for debugging script
    The Procedure for debugging SAP script is:
    Generally SAP script contains the Layout and corresponding print program.
    First go to SE71 and enter ur script name. In the same screen go to Utilities->click on activate debugger option.
    Now go to SE 38 and enter ur Print Program name and execute the program.
    Now you can debug the script Page wise and window wise.
    Reward if hepful
    With Regards
    vachana

  • Debugging the script.

    Hi All,
    I need to debug a script and i am facing a challenge like when i checked the nace transaction for a particular Tcode i am able to c two processing routines.
    When i c the output i am able to see a form which has got attached to the first routine and when i press the back button from the form output i am able to c the form which is attached to the processing routine2.( this is what i need to debugg)
    Now my problem is when i make activate debugger in the second script the debugger is calling only the first form not the second one..
    Can any one suggest me how to debugg it.
    Thanks in Advance,
    Joe

    Hi meetjoe,
    Basically u want to debug the 2nd form attached to the 2nd routine right?
    But always when u activate debugger and start debugging u can see the 1st form.
    See as per what u have said i feel the flow of your program is as follows...
    your routine1 calls the form1...it displays it and then returns to your routine2 which then calls the
    form2...thats why when u go back from output of form1...u directly reach the form2.
    I feel your form2 is taking some values / data from form1...so always before displaying form2, it is going in sequence  and showing form1 1st and then form2.
    do one thing...activate debugger for form2...start debugging..if it starts debugging form1...continue doing it, come to form output.....then click on BACK button as u said...then when u come to the form2, which u wanted to debug....then just put a breakpoint there in the script of form2 in the debugger and simply save it...
    so the breakpoint will be saved at a position in form2...and next time when u start debugging the control will directly come to the breakpoint in ur form2, or even if it goes to form1 first, then definitely next it'll move to breakpoint in form2....and i guess thats wat u wanted to do
    Hope this helps u...All The Best
    Regards,
    Radhika

  • Can i debug Java script of my_interactve_form, where my Reader version 9.0?

    Hello
    I saw some threads on SDN on this topic, but, am not sure for my version, how to procedd! (  [url]  Debug Formcalc Script [url]  )
    I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP) When i opened this VISITOR interactive form in a browser, right clicking and checked form PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
    Pls. let me know how to debug my java script wrote on the interactive form? wht settings i need to to for my specifications (Designer 8.1 and Reader 9.0 PDF Version: 1.6 (Acrobat 7.x) )
    Than you

    You can use this activex component when you install Adobe Acrobat, not Adobe Reader.

  • How to Debug Java Script in Adobe Form

    I have used an alert for empty fields . I have used Check button control for this.
    But the button click is very inconsistent. Some times it triggers the event sometimes it doesnt. Is there anyway to debug the java script. I have installed Script editor for IE but I am unable to use it for Adobe Forms.
    Any help is appreciated.
    Thanks,
    Vasu

    Hi Vasu,
    i think that maybe is the check sequence is not very correct.. and maybe you can try to code it one check for empty fields at a time..
    example
    Name.
    Address.
    Tel.
    Hp.
    Email.
    so u can try to code for one item at a time then slow try to debug it... as last time i use to insert the javascript inside each component then after it i implement into a button and slowly check for the check sequence which one need to be 1st and etc.
    hope it help you. if not maybe u can give more information. maybe i can help you out at myside.
    Regard,
    Ng Jia Jun

  • Debugging of script

    hii guys,
    1. can we debugg form how
    2. can we debugg driver program how.
    regards
    rahul

    hi Rahul,
    <b>They are two ways to debug the SAPScript.</b>
    1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
    It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
    2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
    When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.
    <b>Check this link:</b>
    /people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
    Reward me if useful...........
    Harimanjesh AN

  • Debugging in script for  F110 transaction

    Hi all,
    For bank transfer form i have created a vendor document in FB60 and the corresponding document was created in F110.
    Script name for this bank transfer form is f110_d_avis.When customizing the script i have taken a z-copy of this script. From that copied script i have called perform statement and then put a debug in the program.
    My need is whenever i click the spool request in F110 the debugging should on.But it was not even i had activated RSTXDBUG and using break-point in the program.
    Can anyone please help me?
    Regards,

    if u included a break point in the form routine it should stop there, and if its not stopping there, u need to check following things.
    Is the correct script being called, for that put a break point at open_form and check the value of script name.
    is the perform within and if condition, that is causing the script to entirely skip the perform,
    is ur breakpoint within any condition in the form subroutine.
    check these three things first.

  • Debugging Sap Script

    HI all,
    I am working on a SAP Script...this custom SAP SCRIPT is being used for transaction F110...every time we are running this transaction we are missing some data in the checks that are printing and this problem is coming after we applied the Service PAck, now my question is how can I debug ths Sap Script because when activated the debugger in SAP Script and ran transaction F110 and when finally printed the checks it never went or stopped at the SAP Script...the checks are printing fine in the other box where we haven't applied the SP. So basically I want to compare in both the boxes.
    Thanks,
    Rajeev

    Hi ,   
    Programs  executes in printout in F110 .  u can see those programs in  Printout/DataMedium Tab in F110 .  identify the program u r using  for print out and execute it after activating the debugger in sap script .
    Regards
    Neetesh

  • Debugging the scripts and smartforms

    Hi,
    Please Tell me How to debug the SAP SCRIPTS and SMARTFORMS.
    Thank in advance
    Ajay

    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
    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
    Refer to these related threads
    smartforms debug
    Smartforms debug
    How to debug Smartforms?
    How to Debug the Smartforms
    Re: Smartforms Debug
    Smartforms
    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.
    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
    They are two ways to debug the SAPScript.
    1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
    It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
    2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
    When you debug Print program it is same as you debug any other ABAP program.
    While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.

Maybe you are looking for