How to add breakpoint in abap code

when use <i><b>java</b></i> call abap code ,
how to add breakpoint in abap code?

Hi,
To start the ABAP debugger from your java client you have to set the JCO client to debug mode:
e.g.
yourJCOClient.setAbabDebugMode(true)
(hope thats the right method name:-)).
And don't forget to set also a break point of type "External" in the function module you call from your java client. For debuging, the user which calls the FM has to be a SAP User of type "<b>Dialog"</b> and has to be the rights to call RFCs, ...

Similar Messages

  • How to create breakpoint with ABAP code?

    Hi all,
    I would like to create a breakpoint for my user id only.
    So far, the only way that I know is by:
    break <user_id>.
    e.g.
    break john.
    HOWEVER, my user id contain a "." (i.e. chris.p) , and this cause syntax error.
    Could anyone help me?
    Thank you.
    Best regards,
    Chris

    Hi chris.
    greetings
    try like this:-
    if sy-uname = 'CHRIS.P'.
    break-point.
    endif.
    if helpful, plz reward points.
    regards
    prashant

  • How to add my article in code gallery

    Hi All,
    Can anyone of you tell me how to add my article in code gallery. I want to post my article in code gallery, I tried to do that but I don't understand how to add my own screenshots, code and paragraphs.
    Looking forward for helpfuld answers.
    Thanks,
    Venkat

    Hi,
        Check this link , it's PPT how to contribute
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2f5d32b1-0c01-0010-4590-9ccd7d0cba4c
    for more details check this link
    ABAP Frequently Asked Questions
    Salil..

  • How to insert Method in ABAP code

    Hi Gurus,
    Plz tell me how to insert a METHOD in ABAP code as we do in the case of inserting function in ABAP code using PATTERN.Button
    Rgds
    rajesh

    Hi,
    Try this.
    Click pattern tab ans select AABAP object patterns.
    Select call method.
    Then give the instance name , class/interface name and the method name.
    Sharin.

  • How to send mail from ABAP code?

    Hi,
    I need to send e-mail from ABAP Code .
    e.g:  If sy-subrc ne 0.
         ( send e-mail to  "[email protected]" )
           endif.
    Please provide me any Function module for this or any code.
    Correct answear will be rewarded my maximum points.
    Thanks & Regards,
    Gaurav.

    Check this code sample
    * Send mail
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      loop at htmllines.
        mailtxt = htmllines.
        append mailtxt.
      endloop.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards.

  • I can't figure out how to add my soundcloud iframe code.etc in my site in cc 2014?

    Im having trouble adding codes to my animated site.i have everything ready,i just need to add forms and players from others sites and what not,but i cant figure out how to make a div a iframe, and no one is making videos on this problem or asking about it..so im stuckk ?

    Oops, your question duplicated. I replied here: https://support.mozilla.org/questions/1038640

  • Need to know how to add a delay between code

    I need to add delays between the following lines of code. Any ideas?
    speed=speed*.98;
    //Delay here
    speed=speed*.50;
    //Delay here
    speed=speed*.1;

    You can't add delays in the way you show, but you can build those delayed lines into functions and have the calling of the functions delayed.  Look into the setTimeout() function as one possibility.  setInterval() is another, though it can require more maintenance.

  • How to call a radiobutton from radiobutton and how to add in webdynpro abap

    first i have created my first radio buttonkey rgp and nrgp.my requirement is that when i selected RGP radiobutton then then another radiobutton group PO and NON PO is opened..how to do that in webdynpro abap..Please its very urgent ..see the attached photo

    DEAR HAWKINS,
                                              how can i solve it..pleasee help me to  resolve this
    select of first radio buttoon rgp method,
    method ONACTIONON_SELECT .
       DATA lo_nd_radio_a TYPE REF TO if_wd_context_node.
       DATA lo_el_radio_a TYPE REF TO if_wd_context_element.
       DATA ls_radio_a TYPE wd_this->Element_radio_a.
       DATA lv_radio1 TYPE wd_this->Element_radio_a-radio1.
       DATA lo_el_context TYPE REF TO if_wd_context_element.
       DATA ls_context TYPE wd_this->Element_context.
       DATA lv_visibility TYPE wd_this->Element_context-visibility.
    * navigate from <CONTEXT> to <RADIO_A> via lead selection
       lo_nd_radio_a = wd_context->get_child_node( name = wd_this->wdctx_radio_a ).
    * @TODO handle non existant child
    * IF lo_nd_radio_a IS INITIAL.
    * ENDIF.
    * get element via lead selection
       lo_el_radio_a = lo_nd_radio_a->get_element( ).
    * alternative access  via index
    * lo_el_radio_a = lo_nd_radio_a->get_element( index = 1 ).
    * @TODO handle not set lead selection
    **  IF lo_el_radio_a IS INITIAL.
    **  ENDIF.
    * get single attribute
       lo_el_radio_a->get_attribute(
         EXPORTING
           name =  `RADIO1`
         IMPORTING
           value = lv_radio1 ).
    * get element via lead selection
       lo_el_context = wd_context->get_element( ).
       IF lv_radio1 = 'x'.
         lv_visibility = 02.
       else.
         lv_visibility = 01.
       ENDIF.
    * @TODO handle not set lead selection
    **  IF lo_el_context IS INITIAL.
    **  ENDIF.
    * @TODO fill attribute
    * lv_visibility = 1.
    * set single attribute
       lo_el_context->set_attribute(
         name =  `VISIBILITY`
         value = lv_visibility ).
    endmethod.
    select of second radio button nrgp
    method ONACTIONON_SELECT1 .
          DATA lo_nd_radio_a TYPE REF TO if_wd_context_node.
          DATA lo_el_radio_a TYPE REF TO if_wd_context_element.
          DATA ls_radio_a TYPE wd_this->Element_radio_a.
    *    navigate from <CONTEXT> to <RADIO_A> via lead selection
          lo_nd_radio_a = wd_context->get_child_node( name = wd_this->wdctx_radio_a ).
    *    @TODO handle non existant child
    *    IF lo_nd_radio_a IS INITIAL.
    *    ENDIF.
    *    get element via lead selection
          lo_el_radio_a = lo_nd_radio_a->get_element( ).
           ls_radio_A-key_to_select = ' x '.
           ls_radio_A-radio1 = '  '.
           ls_radio_A-radio2 = ' x '.
    *    @TODO handle not set lead selection
    **     IF lo_el_radio_a IS INITIAL.
    **     ENDIF.
    *    @TODO fill static attributes
    *    ls_radio_a = xxx->get_yyy( ).
    *    set all declared attributes
          lo_el_radio_a->set_static_attributes(
             static_attributes = ls_radio_a ).
    endmethod.
    and THE WDDOINIT METHOD
    method WDDOINIT .
          DATA lo_nd_radio_a TYPE REF TO if_wd_context_node.
          DATA lo_el_radio_a TYPE REF TO if_wd_context_element.
          DATA ls_radio_a TYPE wd_this->Element_radio_a.
          DATA lv_radio1 TYPE wd_this->Element_radio_a-radio1.
    *    navigate from <CONTEXT> to <RADIO_A> via lead selection
          lo_nd_radio_a = wd_context->get_child_node( name = wd_this->wdctx_radio_a ).
    *    @TODO handle non existant child
    *    IF lo_nd_radio_a IS INITIAL.
    *    ENDIF.
    *    get element via lead selection
          lo_el_radio_a = lo_nd_radio_a->get_element( ).
           ls_radio_A-key_to_select = ' x '.
           ls_radio_A-radio1 = ' x '.
           ls_radio_A-radio2 = '  '.
    *    @TODO handle not set lead selection
    **     IF lo_el_radio_a IS INITIAL.
    **     ENDIF.
    *    @TODO fill static attributes
    *    ls_radio_a = xxx->get_yyy( ).
    *    set all declared attributes
          lo_el_radio_a->set_static_attributes(
             static_attributes = ls_radio_a ).
    *      navigate from <CONTEXT> to <RADIO_A> via lead selection
            lo_nd_radio_a = wd_context->get_child_node( name = wd_this->wdctx_radio_a ).
    *      @TODO handle non existant child
    *      IF lo_nd_radio_a IS INITIAL.
    *      ENDIF.
    *      get element via lead selection
            lo_el_radio_a = lo_nd_radio_a->get_element( ).
    *      alternative access  via index
    *      lo_el_radio_a = lo_nd_radio_a->get_element( index = 1 ).
    *      @TODO handle not set lead selection
    *       IF lo_el_radio_a IS INITIAL.
    *       ENDIF.
    *      get single attribute
            lo_el_radio_a->get_attribute(
              EXPORTING
                name =  `RADIO1`
              IMPORTING
                value = lv_radio1 ).
    endmethod...

  • How to add streaming live video code

    in drmwvr mx how do i "embed" streaming video. what is the
    code? if u can help or point me in the right direction that would
    be great. i'm thinking of using windows media encoder. this is to
    broadcast church service.
    thanks

    In Indesign create a frame, use Overlay creator panel to create a Web content overlay, in webcontent overlay paste the url as http://www.youtube.com/embed/Y4DhGDpnRnA
    Click on Allow user interaction and auto play if required

  • How to add a working bar cod in a pdf form?

    I am able to create a bar code using adobe acrobat. It is working perfect in acrobat viewer. But when i open the same form with adobe reader, after a filling corresponding fields, the bar code disappears and a grey box appears. Here i attached an image of the pdf form. One is before i filling the form and one is after filling the form.
    What i need to do? Please help me It's urgent.Please help me.

    http://www.adobe.com/sea/products/server/readerextensions/
    I would recommend:
    1. Check the hardware requirements. (WIndows server, probably). The cost of the server is probably insignificant, even if you have to buy a new one.
    2. Estimate total usage (forms, users per form) over a year and the lifetime of the project.
    3. Contact a sales rep and get a preliminary price quote based on your usage,

  • If  I know authority object is 'S_OC_SEND', how to check it in ABAP code ?

    Can i find if people in other place check the authority 's_oc_send'.
    Best regards,

    Hi Blake,
    Check program RSUSR060
    Thanks
    Lakshman

  • How to Debug a ABAP code running the background in Portal

    How can I debug a ABAP code running in the background while executing a transaction code through portal.
    e.g Presently I have to incorporate some checks in the portal. For that I know the function module where i need to put though checks. Now I want to know, how does the code during runtime. What values do we get in the function module. For this I need to get into the debugging mode while executing the portal.
    So how can we do that???

    Namit,
    it doesnot matter whether it is a standard funtion module or a custom one .check whether you are debugging for proper user(portal user and backend user are same) and check debugging is activated

  • Debuggng ABAP code from  Portal ?

    Hi ,
    We are enhancing a portal Application ( EP 7.0) which points to the R/3 4.6 c in Backend . This Application  has customised views .  I want to debug  the ABP CODE and see   R/3 logic .
    1) How can  I see the RFC Function modules or Business objjects where logic pertaining to a I view is coded?
    2)How Can I stop at R/3 while processing in the portal , so that I can debug ?
    Thanks in Advance ,
    Dharma .

    There are 2 steps involved in external debugging:
    1. Setting up the external debugging in R3:
    GOTO se37
    From the main menu goto
    Utilities->settings
    Under settings goto:
    ABAP Editor->debugging
    Under debugging subscreen you will get option of external debugging, make sure your user ID is mentioned (Please make sure you login to the portal with the same ID as mentioned here)  and put a checkbox for "IP Matching".
    2. Puting an external breakpoint in ABAP Code:
    Now, you put a external breakpoint in your RFC FM which is getting called from the portal. Now your external debugging is set and once you click on the specific button on portal it will give you the debugging screen the moment it touches the ABAP code in R3.
    Regards,
    Raman.

  • Debug ABAP code in InfoPackage

    Hi friends,
    How i can debug a ABAP code from a variable selection in Infopackage?
    Thanks,
    EA

    I guess you would have figured it out - but for the use of people who might chance upon this post while searching ...
    to debug the ABAP code in an Infopackage - you need to run it in dialog mode ( Start Data Load Immediately ) and not in background. This is because background processes cannot be debugged.

  • How to translate std. ABAP report in german language to English in SAP

    Dear All,
    How to translate std. ABAP code in German language to English in SAP ?

    Hi,
    code does not need to be translated.
    Data elment descriptions, documentation, text elements, etc. can be translated in the transaction se63.
    Also you can translate almost each single object in the editor in the menue  goto-translation.
    Regards,
    Gianpietro

Maybe you are looking for

  • Problems with creating badi implementation for virtual key figures

    Hi, I'm running BI 7.0 (unicode). I have been trying to follow this blog to calculate the virtual keyfigure in my infoset - Using Virtual Key Figure and Characteris in an InfoSet My infoset includes 1 infocube, and 3 master data infoobjects. I have c

  • How to install weblogic

    A weblogic server (a domain with some web applications) is running. The version is 10.3.2. I install Weblogic 10.3.3.0 on the same machine and install SOA Suite 11g. I create a new domain with SOA functions and change the port number from 7001 to 703

  • Can someone help with 10.5.8 Flash Player?

    I've been struggling with my MacOS 10.5.8. I AM ABLE watch videos on YouTube, but (i dont have cable so i watch shows online) on sites like mtv.com. I just get the spinning circle, no sound, no nothing. I tried everything I could find. I read threw t

  • Gatewayed URL problem to Flex portlet

    i'm create a remote portlet which point to a flex content and jsp in a remote server and through by gateway, but after and add gateway URL in front of the remote server URL, the portlet become can't display on the screen. Because of my remote server

  • Windows CS

    I am trying to use raw for the first time since I purchased CS in 04-05 but can't find where it is located. My 2 questions: Did camera raw plug-in load automatically when I installed or is it something I have to purchase and add? If it was part of th