Debugging in BSP

Hi,
Can anyone tell me how to debug a BSP page?

place an external (http) break point and run the application.
more on this.
https://wiki.sdn.sap.com/wiki/display/BSP/Debugging+Problems
Raja

Similar Messages

  • How to do debug in BSP App....

    Hi All,
           I know lot of threads ask the same query. but still i am not able to do it. so kindly tell me how to debug the BSP Application.
            say for example i am using oninitialization event , in this event i am going to fetch some values from DB , now i want to see the flow(data moving) in debug mode. for this example how do i use break-point in my BSP Application.
           I am using Web AS 6.20.
    Thanks In Advance,
    Regards,
    kumar.

    Hi Brain,
       thank you . now i don't get 404 error in BSP application using HTTP Mode.
      Brain i have given my coding here.
    <b>Event Handler</b>
    <b>onCreate Event</b>
    data wa like line of sflight.
    <b>* here i have specified external break-point using STOP (Red Color) button in application tool bar and enabled the active check box in setting->abap editor->debug too.</b>
    select * from sflight into CORRESPONDING fields of wa.
    append wa to sflight.
    endselect.
    <b>Layout</b>
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = "exam ">
        <htmlb:form>
          <htmlb:tableView   id   = "id1"
                  table           = "<%=sflight%>" > />
       </htmlb:tableView>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Page Attributes</b>
    sflight type sflighttab.
    Note :
    <b> i enabled my service as active mode in SICF T.Code. as well as i have checked active debugging in application tools on SICF T.code too.</b>
    but still i am not able to do it.
    can you tell me where i made a mistake or i lift out.
    Thank you,
    Regards,
    Saravanan.

  • Step by Step Debugging in BSP page

    Hi,
      Can any one tell me How to do the Step by step debugging? In ABAP application we are doing through /h command.Like this any command is there in BSP page for debugging? And where actually we need to place the break point means in Controller or in View?
    Thanks in advance,
    Regards,
    Anu.

    HI
    GOOD
    GO THROUGH THESE LINKS
    http://www.sappro.com/downloads/technical_guides/WebAppDevTOC.pdf
    http://www.sap.com/solutions/netweaver/pdf/50052038.pdf
    THANKS
    MRUTYUN

  • How to debug a BSP

    Hi not a developer, but I am looking for either error logs or a method to debug BSP when something doesnt work on the page.
    Any suggestions?
    Thanks
    Jeremy Baker

    Hi Jeremy,
    Visit this link....
    http://help.sap.com/saphelp_erp2004/helpdata/en/17/00ab3b72d5df3be10000000a11402f/frameset.htm
    This will help you.
    Regards,
    Narinder Hartala

  • Debugging BSP page

    I want to debug a bsp application (Z app), i am logged in remote desktop, ecc 6.0, internet explorer: 7
    i have tried to test page directly from se80 and also from URL.
    I have tried setting external break-point, activating debugging for user...............but no success to reach debugger and program does not stop at any of the break-point.
    any guess on how  do i get to debugger??

    Hi Ankit,
    Try HTTP debugging. Details to activate this are here - http://help.sap.com/SAPHELP_CRM70/helpdata/EN/17/00ab3b72d5df3be10000000a11402f/content.htm .
    Hope this helps.
    Bhavana.

  • Debugging BSP Pages

    Hi,
       We are upgrading from ECC 5.0 to 6.0.
    The test environment is upgraded and after upgrade i am unable to do HTTP debugging for BSP pages.
    is there any configuration settings that i have to change ?
    Kindly Help
    Regards
    Bharath Mohan B

    For ECC:
    Before settings the break-point, you need to Active External break-point for HTTP. YOu can find this option in
    SE80, in
    Utilites--> External break-point-->Activate/Deactive for HTTP users
    then it will ask you the user name, mention your user name. This will activate your HTTP break-point.
    Then "Set External break-point (CtrlShiftF12).
    This will solve your problem...
    <i>*Reward each useful answer</i>
    Raja T

  • Debugging BSP Application

    Hi,
         I am having a button the web page. How to debug the BSP Application, what is happening after clicking on that particular button.

    Hi,
    In your BSP Application-in the respective page
    Place the cursor at the line which you want to debug from
    The put a session breakpoint (CtrlShiftF9)
    Now run your BSP application. It wud stop at the line you want to debug.
    Continue using F5
    This will help!!
    Regards,
    Prashant

  • Issue in debugging

    Hi All,
    I am facing an issue in debugging a BSP application.
    I placed an external break point in oncreate, oninitialization and oninputprocessing event but its not taking me to the break point.
    I have even tried with having some BREAK-POINT hard coded , but it doesn't help.
    I have tried with placing an external break point in layout and activated the HTTP debugging in SICF, even after that it doesn't work.
    I have not set default user name password for the application in SICF and also my user id in the external debugging option of Utilities->ABAP editor -> debugging is same as the one which i am giving while executing the page.
    But I am not able to debug the application.
    But when I tried debugging some other BSP applications, I am able to do that.
    your inputs will be very helpful.
    Thanks in advance.

    Hi Jyothi,
    Login userid and Debugger user id should be the same. If not debugging will not call.
    1) Have you given any user credintials while testing.
    2) Have you checked the debug user : utilities-> settings-> debugging-> check the user.
    Regards,
    Eswar.

  • Function calls in BSP

    Hi guys,
    Can I call a function module in a BSP application? Everytime when I call a function module,  I get the error message :'The page cannot be displayed'. Could anyone help me on this? Thanks.
    Regards,
    Conrad

    How do you try to call is what we are all asking.
    Do you use this format?
    CALL FUNCTION 'CRM_SVY_DB_CONVERT_STRING2HEX'
    Please also do as Thomas asked and turn off your friendly HTTP errors
    <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a>
    Have you debugged your BSP yet to see exactly where it blows up?
    Do you have a short dump in the system? (ST22)

  • Debugger Message SY495 in BSP code

    Hi, I ran into message SY495 while trying to debug a BSP. The solution we found I have posted in the ABAP forum. I put the message number in the title.

    For those wondering, see the actual Debugger "cannot determine the breakpoint" position SY495.
    I suspect that it would have been safer to not directly clean the table, but to use transaction SICF. There is a menu entry to disable debugging for a specific user. From what I know (which might not be 100% correct), this should be sufficient to clean up all breakpoints and disable HTTP debugging for the user.

  • Mystery BSP + Smartforms

    Hi,
    I am facing a peculiar problem with our e-learning site.
    Whenever an end user edits a letter(customized smartform) before sending, it is not sent as a PDF attachment but is sent as a simple text mail. If the letter is not edited then it works perfectly fine (ie it is attached like a PDF file).
    I have debugged the BSP page and have finally concluded that SAP std does not change the name of the smartform but check marks it to be edited. The transaction SCOT is configured to send all the letters as PDF attachment.
    Pleae help, its urgent.
    Thanks!
    Best regards,
    Kanav

    Hi,
    I am facing a peculiar problem with our e-learning site.
    Whenever an end user edits a letter(customized smartform) before sending, it is not sent as a PDF attachment but is sent as a simple text mail. If the letter is not edited then it works perfectly fine (ie it is attached like a PDF file).
    I have debugged the BSP page and have finally concluded that SAP std does not change the name of the smartform but check marks it to be edited. The transaction SCOT is configured to send all the letters as PDF attachment.
    Pleae help, its urgent.
    Thanks!
    Best regards,
    Kanav

  • Debug into request- get_form_fields

    I am just curious:
    When I debug my BSP application, it is not posible to debug into request->get_form_field. Instead, the debugger just jumps over this method.
    There are some other messages as well, that you cannot debug into, e.g. in the class CL_HTMLB_MANAGER.
    Are these methods special in some so that you cannot debug into them?

    I debugged class CL_HTMLB_MANAGER so many times. I didnt face any problem.
    For example in below code put a break-point in GET_EVENT_EX & execute the BSP Application. You can able to debug the CL_HTMLB_MANAGER class.
      EVENT ?= CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    <b>* Reward each useful answer</b>
    Raja T

  • Internet Explorer Page Refresh in Stateful BSP ?

    Hello All,
            I created a BSP Application with "<b>Page-with-Flow-Logic</b>" not MVC Model and the output page of this BSP conatins the Push Buttons which will handle the <b>Download to XLS,XML,HTML and PDF</b> along with the output Table view.
    This particular output page is stateful.
    The Output is displayed in the Tableview as per the selection and now if I use the Buttons to Download the Tableview content to any of the above mentioned options(XLS,XML,HTML,PDF) It gets downloaded perfectly depending on the choosed option and shows the Downloaded Content in a new window.
    Now after seeing the downloaded content in the respective format in the new window the User closes the window manually.This closing of window is not done thru the code.
    After closing the Download content window manually and now If I press REFRESH Button on the INTERNET EXPLORER PAGE  a pop-up is raised saying :-
    The page cannot be refreshed without resending the information.Click RETRY to send the informmation again or click CANCEL to return to the page that you were trying to view.
    Now If I choose either RETRY or CANCEL Button I'm again getting the window  of the Downloaded Content along with the Output page.
    I debugged the BSP to know the actual reason after pressing the REFRESH Button of the Internet Explorer.
    The Events are not getting cleared and so since the last event was " to download the content to a format and to open a new window ". The window is again getting opened with all the data which was there previously as there is no code to close it.
    <b>1, How to avoid this ?</b>
    Atleast I want to close the new window (DOWNLOAD Content) thru the codeafter the USER closes it manually. Can this be acheived ?
    <b>
    2,  When Internet Explorer's REFRESH Button is pressed I want to clear everything on the particular output page.</b>
    Is it possible to do this when my page is stateful ?
    If yes can anyone help me out......
    Hope I'm clear in my explanation !!!
    Regards,
    Deepu.K

    Hello Raja,
             I want this button in the newly opened window.
    So where should I write this code ?
    My code is as follows :-
                       <br>
              <br>
    <htmlb:tableView id              = "MB51_Header"
                      table           = "<%= gt_temp %>"
                      design          = "alternating"
                      footerVisible   = "TRUE"
                      headerVisible   = "true"
                      headerText      =
               "<%= otr/BSHP/FM_BSP/CONSIGNMENT_STOCK) %>"
                      tableLayout     = "auto"
                      visibleRowCount = "20"
                      width           = "100%"
                      filter          = "server"
                     iterator        = "<%= iterator %>"
                     selectionMode   = "multiselect" >
              </htmlb:tableView>
            </htmlb:trayBody>
          </htmlb:tray>
          <br>
          <br>
          <%
      data: gv_event type ref to if_htmlb_data.
      gv_event ?= cl_htmlb_manager=>get_event_ex( request ).
      if gv_event is not initial.
      case gv_event->event_server_name.
      when 'HandleUpload'.
      IF display_url IS NOT INITIAL.
          %>
          <script language="Javascript">
          window.open("<%= display_url%>");
          </script>
          <%
      ENDIF.
      endcase.
      endif.
      clear: gv_event,display_url.
          %>
    Regards,
    Deepu.K
    Message was edited by:
            deepu k
    Message was edited by:
            deepu k
    Message was edited by:
            deepu k

  • Debug session language

    hi all
    when i debug a bsp application
    via external debbuging breakpoint,
    the sap session for debugging does not open in english.
    how can i change it for english?
    i changed sap logon codepage to english
    but it doesn't help.
    thanks - Ronen

    Hi,
    please take a look at this OTR - is it reallly that simple? especially the comments posted by Brian and myself regarding how you can change the language.
    regards
    Thomas

  • If statement within a view is not working correctly ?

    Hi all,
    maybe i am wrong but i think the if statement within a view is not working correctly. See code down below.
    I would like to use the Hallo World depending on the page attribute isFrame with or without all the neccessary html tags. Therefore i have embedded the htmlb tags in an if statement. But for any reason if isframe is initial it isn't working. It would be great if anybody could help me.
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if not isframe is initial. %>
      <htmlb:content design="design2003">
         <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    hallo world
    <% if not isframe is initial. %>
         </htmlb:page>
      </htmlb:content>
    <% endif. %>
    thanks in advance and best regards
    Matthias Hlubek

    Matthias,
    The short answer: your example is <b>NOT</b> going to work. The long answer will probably 5 pages to describe. So first let me rewrite the example so that it could work, and then give a short version of the long answer. Do not be disappointed if it is not totally clear. It is rather complicated. (See the nice form of IF statements that are possible since 620.)
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if isframe is <b>NOT</b> initial. %>
    <htmlb:content design="design2003">
      <htmlb:page title = "Top Level Navigation view">
        hallo world
      </htmlb:page>
    </htmlb:content>
    <% else. %>
      hallo world
    <% endif. %>
    So why does your example not work? Let us start with a simple tag:
      <htmlb:page title = "Top Level Navigation view">
      </htmlb:page>
    Now, for each tag, we have effectively the opening part (<htmlb:page>), an optional body, and then the closing part (</htmlb:page>). We are now at the level of the BSP runtime processing one tag. What the runtime does not know, is whether the tag wants to process its body or not. Each tag can decide dynamically at runtime whether the body should be processed. So the BSP compiler generates the following code:
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
      ENDIF.
      tag->DO_AT_END( ).
    You should actually just debug your BSP code at ABAP level, and then you will immediately see all of this. Now, let us mix in your example with our code generation. First you simplified example:
    <% if isframe is NOT initial. %>
      <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    <% if isframe is NOT initial. %>
      </htmlb:page>
    <% endif. %>
    And then with our generated code. Look specifically at how the IF/ENDIF blocks suddenly match!
    if isframe is NOT initial.
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
    endif.
    if isframe is NOT initial.
      ENDIF.
      tag->DO_AT_END( ).
    endif.
    You can see that your ENDIF statements are closing IF blocks generated by the BSP compiler. Such a nesting will not work. This is a very short form of the problem, there are a number of variations, and different types of the same problem.
    The only way to solve this problem, is probably to put the body into a page fragment and include it like I did above with the duplicate HelloWorld strings. But this duplicates source code. Better is to put body onto a view, that can be processed as required.
    brian

Maybe you are looking for

  • [JS CS3] ScriptUI button wants to be clicked twice

    Hi I created a sample scriptUI dlg with three buttons: res = ]"dialog { \ ]s: StaticText { text:'Chosissez une période:' }\ ]]period: DropDownList { alignment:'center' }, \ ]]s: StaticText { text:'Chosissez un fichier:' }\ ]]files: DropDownList { ali

  • 5508 -- 5760

    Hello, We are looking at possibly adding a second 5508 controller to our network and running in HA mode.  I see now that there are 5760's available that run on IOS.  Is there any way we can integrate a 5760 into our existing network instead of going

  • Recently Added Folder Deleted...How Do I Get It Back???

    I mistakenly deleted the "recently added folder" on my iTunes page. Does anyone know how I can retrieve it, or re-add it???? Thanks.... Kevin.

  • Middle Mouse Click Doesn't Scroll

    I haven't installed anything lately, but all of a sudden my middle click mouse button (when I click it down) doesn't work. Before when I click it down, the little arrow thing would pop up and I would be able to scroll up and down if I move my mouse u

  • Magic Trackpad on Windows?

    Hi... Will magic trackpad work on Windows 7/8? (Real Windows PC/laptop not Windows in Mac)