How to debug abap macros?

Hi,
Can anyone tell me How to debug abap macros?
Thanks in advance.
-Selva

Hi Rigel,
Understand it is a very old thread, but still could you please help me out with this? I tried to search for the option which you mentioned, but to no avail. I have SAP ECC 7.0.
Thanks in advance.

Similar Messages

  • How to debug ABAP Web services from Microsoft Visual Studio

    When developing .NET based Web services clients using Visual Studio that call Web services in SAP NetWeaver .NET developers would like to be able to debug inside SAP. In my blog <a href="/people/andre.fischer/blog/2007/02/07/how-to-debug-abap-web-services-from-microsoft-visual-studio to debug ABAP Web services from Microsoft Visual Studio</a> I would like to point .NET developers to the fact that SAP NetWeaver offers the option of external debugging to perform this task. Though the steps that have to be performed are described in the SAP Online Help I am sure that this option is not well known amongst the .NET developer community.

    Hello WilliamIV,
    >>How can I "configure" Visual Studio debugger to allow validation to work?
    Since I do not have a VS2012 environment, according to your provided link, I created a test demo with VS2013, however, both ways catch the validation error:
    If possible, you could have a try with VS2013 to see if it works or run the example on other machine with VS2012 to see if this is caused by the VS environment, in my side, I do not change any configuration, all are default.
    If I misunderstood this issue, please feel free to let me know.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to debug ABAP code

    Hi Gurus,
    Can anyone please tell me how to debug code written in EXIT for extractions.
    If possible please provide me a step by step approach.
    Thanks
    Regards,
    aarthi
    [email protected]

    Hi Dinesh,
    Thanks for your prompt reply.
    That is where, I am facing the problem. I know how to set break point. But, how to check the required field value, which key to press to reach the break point directly, etc. I need to know these kind of this.
    Can you please provide details about those things.
    Thanks
    Regards,
    aarthi
    [email protected]

  • How to debug Abap List in New Debugger?

    Hi All
    How can we debug the ABAP list in the new debugger? I know that it can be done by switching to old debugger.
    Or
    Did SAP by any chance missed this option?
    Regards,
    Rupesh

    You can just look for this variable  (SAPMSSY0)%_LIST
    it is an internal table of the current list; double_click on it and you will get a look at the contents of the table
    slide your horizontal scroll bar to the right till you get the field LINE . Here we go !
    18.08.2011                         Progr. ZIPPO_FOR_ALL_SERVICE                                1#1########`
    ##########R
    ##########R
    LH  0400 DE  FRANKFURT            FRA US  NEW YORK             JFK 6.162,0000  KM               ##########R
    LH  0400 DE  FRANKFURT            FRA US  NEW YORK             JFK 6.162,0000  KM               ##########R
    LH  0401 US  NEW YORK             JFK DE  FRANKFURT            FRA 6.162,0000  KM               ##########R
    LH  0401 US  NEW YORK             JFK DE  FRANKFURT            FRA 6.162,0000  KM               ##########R
    Edited by: luciano puppo on Aug 18, 2011 11:36 AM

  • How to debug ABAP mapping

    Hello
    I've built a ABAP mapping based on How To convert an IDoc-XML structure to a flat file and vice versa in XI 3.0, however it runs into exeception when I tested it in SXI_MAPPING_TEST with error;
    - <cls:CX_SY_NO_HANDLER id="o265">
    - <CX_ROOT>
      <TEXTID>1F09B73915F6B645E10000000A11447B</TEXTID>
      <PREVIOUS href="#o266" />
      <KERNEL_ERRID>UNCAUGHT_EXCEPTION</KERNEL_ERRID>
      <IS_RESUMABLE />
    - <INTERNAL_SOURCE_POS>
      <PROGID>217</PROGID>
      <CONTID>5192</CONTID>
      </INTERNAL_SOURCE_POS>
      </CX_ROOT>
      <CX_NO_CHECK />
    - <CX_SY_NO_HANDLER>
      <CLASSNAME>CX_SY_REF_IS_INITIAL</CLASSNAME>
      </CX_SY_NO_HANDLER>
      </cls:CX_SY_NO_HANDLER>
    I want to debug into the mapping class, someone said jsut set break point in the mapping class and run sxi_mapping_test, then I would be able to debug. However this doesn't work, the execution doesnot stop at the break point (I set session break point, not external break point). Somebody can help?
    Thanks
    Eric

    The trace I got is like:
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <Top>
      <First>BeginTrace</First>
      <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      <Trace level="2" type="T">......attachment XI_Context not found</Trace>
      <Trace level="3" type="T">Mapping is determined</Trace>
      <Trace level="1" type="T">Interface Mapping http://mynamespace/xi OM_Order_to_Simple</Trace>
      <Trace level="3" type="T">Object ID of Interface Mapping F1B943B7E3EB382FB1334066F113E0E6</Trace>
      <Trace level="3" type="T">Version ID of Interface Mapping EAA847208A4B11DD96D8F1C80AD60A0B</Trace>
      <Trace level="3" type="T">Mapping Steps 1 R3_ABAP Z_ABAP_MAPPING_IDOC_TO_FLAT</Trace>
      <Trace level="3" type="T">MTOM Attachments are Transferred to the Payload</Trace>
      </Top>

  • ** How to debug ABAP Mapping at run time?

    Hi Friends,
    We have created one class using the interface IF_MAPPING and the method EXCUTE. Inside the class we have written coding. We refer this class in the interface mapping as mapping program. But, while execute the scenario, how do I debug my class ? (If it is proxy, we will mention the user name in XI adpater CC, refer the same user in ABAP external debuggine, but in the abap mapping class how do i refer..?
    Kindly help me friends.
    Kind Regards,
    Jeg P.

    Hi,
    maybe you could do it like described in this thread:
    Error when using ABAP mapping
    Regards
    Patrick

  • How To debug ABAP code using sapui5 application on NWBC

    Hi All
    I am working on NWBC with SAP_PAO_HRPROFESSIONAL_3 Role. This role contains SAPUI5 application. I am trying debug the ABAP code called while executing this application.
    Please help me how to get into ABAP debugger while executing this application.
    Thank you
    Ujj

    HI Ujj,
    First thing to do is look at the role and see which UI5 application is being executed. The UI5 application will be running in the web container of NWBC, you can make it open in a standalone browser (hold down the CTRL key in NWBC and go to the Help Menu) and then turn on the debugging tools (F12) in the browser. There you will see which Gateway services are being called. You will need to set your ABAP breakpoint in the implementation of the Gateway services. Find the class in SE80.
    Hth,
    Simon

  • How to debug a macro ?

    I have a piece of code, which has macro and it skips the below code, which I assume the check withing the macro has failed.Unable to trace anything so far.
    * keys set within both stock types must match
        relation = s2l_strel_unrelated.
        DEFINE check_intsect_key.
    * exit if key in intersection doesn't match
          check ( intsect z s2l_stock_key_&1 ) or
                ( keyvals-&1 = stock_type->keyvals-&1 ).
        END-OF-DEFINITION.
        apply_macro_to_stock_keys check_intsect_key. --- THIS CAUSES THE BELOW CODE TO BE SKIPPED, how to identify WHY ?
    * if we get were, the intersection part matches
        IF only_me IS INITIAL.
          IF only_st IS INITIAL.
            relation = s2l_strel_equal.
          ENDIF.
    * 'me' is more general than stock_type
          relation = s2l_strel_more_general.
        ELSEIF only_st IS INITIAL.
    * 'me' is more specific than stock_type
          relation = s2l_strel_more_specific.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    <Added code tags>
    Edited by: Suhas Saha on Feb 8, 2012 5:14 PM

    Made the below changes, moved the code out of the macro and debugged the same. Helps.
    keys set within both stock types must match
        relation = s2l_strel_unrelated.
       DEFINE check_intsect_key.
    exit if key in intersection doesn't match
         check ( intsect z s2l_stock_key_&1 ) or
               ( keyvals-&1 = stock_type->keyvals-&1 ).
       END-OF-DEFINITION.
    apply_macro_to_stock_keys check_intsect_key.
       check ( intsect z s2l_stock_key_matnr )  or
                ( keyvals-matnr = stock_type->keyvals-matnr ).
    if we get were, the intersection part matches

  • How to Debug  ABAP/4 routine in Dynamic Selection?

    Problem:
            I am not able to debug the ABAP/4 routine in data dynamic selection.
    Analysis:
            I typed /H on  transaction command prompt. I entered to ABAP/4 debug mode.
    Then I am not  able to debug my routine. Give me solution for this problem?

    Hi Surya,
    If you want to debug the routines in transformation
    GOTO Transformation you need to debug -- seelct the tranformation id
    To debug these routines we need to go to the generated program of the Transformations in two ways:
    We can get the Program ID for the Transformation ID (6HkDSDsHJNQO0VTU3HK01MH7) from table RSTRAN.
    You can get the program id from the table... append GP to the program id you will get the report program for transformations.
    Now goto Tcode : se38 enter the program name and set the break points.
    On going with display we will be to the ABAP editor of the Report Program.
    The other way of getting to this program is from the Transformations itself.
    Go to Extras -->Display Generated Program. It directly takes us to the ABAP editor of the Report Program.
    Set a break point at the code you want to debug, i.e. at your selections at start routine and at your update
    routine.
    Now after setting the Break points run the DTP in the debug mode.(Select the Processing Mode Serially in the Dialog process (for Debugging)).
    If you are on BW 3.x
    /people/pavan.bayyapu/blog/2006/09/06/debugging-data-upload-in-bw
    Regards
    KP
    Edited by: prashanthk on Jul 25, 2010 10:05 AM

  • Send me with screenshots how to debug ABAP PROGRAMS !

    i NEED HELP IN aBAP DEBUDGGING AS I AM NEW TO THIS.
    pLEASE HELP ME

    Hi,
    Debuging means checking the functionality (line by line of your code) of your program at runtime.
    you can do it in below possible ways.
    1) Putting break-point in your program.
    select the line from where you want to debug in your program, put the cursor on that line and the choose 'stop' button in your application tool bar which will set's break point on that line, then execute that program it will take you to debug mode, in debug mode you can see the values in variables using 'fields' tab, and you can see the internal table records by choosing 'tables' tab, and you can put 'watch points'....etc.
    2) Putting '/H' command in your command box.
    which will take you to debug mode right from the first line of your code.
    put '/h' and press enter in your command box, and then execute your program it will goes to debug mode.
    3) write 'BREAK-POINT' code in your coding part.
    write the 'BREAK-POINT' code before your debug line, and then execute the code it will stops the execution of your program and it will take you to debug mode.
    Note:- don't use this option, if you forgot to remove this code, it will create some problems, it's better to avoid this option.
    4) Debugging SAP-Scripts.
    go to SE71 tcode, in the 'UTILITIES' option of your menu-bar options you  can find 'activate debugger' option select that option, while running that script it will take you to debug mode.
    once if your entered to debug mode, by doing some R&D you can easily find the available options.
    Reward if useful.
    Thanks,
    Sreeram.

  • How to Debug ABAP Webservice - called from Form

    Hi All,
    Need to debug a web service (RFC-enabled function module in basis 640). Is it possible? We are calling the web service from an adobe interactive form and need to see what is being passed to the web service.
    (Note: Form is being used in offline mode)
    Please let me know if you can think of a way to do this.
    HTTP-enabled break-point did not work for me.
    Regards,
    Akshay

    Hi,
    If you have defined the Logon Procedure with your SAP Logon ID in the WebService that was created then by placing the External Debugger in the RFC Enabled Function Module you can trigger the Break Point.
    Regards
    Pradeep Goli

  • Debug ABAP Multi Mapping in a BPM

    Hi Guys,
           My scenario is as follows.
    1) Send IDOCS from SAP.
    2) Loop start
    3) Collect in BPM based on some correlation
    4) append to a multi line container
    5) Loop ends at certain condition
    6) Transform using interface mapping which is in this case ABAP mapping.
    7) Send the merged message
    I am facing a mapping error, but could not figure out what it is, it says
    "Parsing error after mapping: unexpected symbol: '<' (line 0, column 53)"
    My question is how to debug ABAP Mapping when it is BPM.
    Things already done and did not work
    1) HTTP break point does not work as BPM is run by WF-BATCH user and it is not a dialog user, so debug window does not appear when the mapping is running
    2) I cannnot use SXI_MAPPING_TEST transaction as any of BPM cannot be selected on the first screen, without which it does not allow you to debug.
    Please help me how to go into a debugger when my Multi ABAP mapping is executed in the system.
    Thanks in advance,
    Regards
    Sujan

    Hi Sujan,
    Try debugging with this approach if possible.
    1. Unregister your queue from TC SMQR
    2. Execute your scenario
    3. Check the Queue and Debug your LUW by pressing Debug LUW.
    4. Set the breakpoint at your mapping program and test.
    5. After completion Register your queue again.
    Pls see the document more more details.
    https://websmp102.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000582377&
    How -To debug XI Applications
    Hope it helps,
    Regards,
    Satish

  • Debugging ABAP proxy

    Hi all,
    Can anyone please tell me how to debug abap proxy.
    In my scenario i chnaged the code in proxy.(file to r/3)
    I want to debug the code which i have changed..According to me it should be debugged in sm50 (testing client), which i couldnt do?
    Any Ideas greatly appreciated..
    Regards,
    smith

    Hi Paul,
    Checkout these links..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3b/6f5c3c3806af06e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/81/845f3c31727d59e10000000a114084/frameset.htm
    Transaction Code SPROXY
    Hope they help you!
    cheers,
    Prashanth
    P.S : Please mark all helpful answers

  • How to debug completed Process chain

    Hi Experts,
    Can you please let me know how to debug completed Process chain.
    In my Process Chain, we have one ABAP step to update Z-Table entries.
    But it was updated wrong entry into Z-Table.
    Now i want to debug ABAP step in Process chain which was completed successfully (This is Monthly load).
    I have tried to debug the back ground job but it throws an error message in middle of the debugging.
    Could you please tell me how to debug ABAP step in completed Process Chain.
    Thanks
    Shaik

    http://help.sap.com/saphelp_nw04s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0afcd90-0201-0010-b297-9184845346ca
    http://help.sap.com/saphelp_nw70/helpdata/en/21/15843b74f7be0fe10000000a114084/frameset.htm
    /people/vishvesh.bahirat/blog/2006/11/29/bw-process-chain-design
    http://help.sap.com/saphelp_nw70/helpdata/en/21/15843b74f7be0fe10000000a114084/frameset.htm
    1.Go to RSPC to view all the chains.
    2.There click on any chain which you want to run/view.
    3.Click on the log view(shift+F1) to view all the previous runs of the chain and whether they have failed or successful(here you can select 1 day,week ,month etc in the display range)
    4.If you want to modify the chain /add a process type /change the variant then click (Ctrl+F9) and do the changes.
    Even you can change the start variant in change mode for manual scheduling>right click on start process typeselect display variant--now select start Direct Scheduling/ API or Metachain
    under direct scheuling option you can trigger it by setting start immediately /Date-time/After job/event whatever you want to do
    Else you can make it part of a Metachain consisting of different such small local process chains.
    Now Click on Schedule (F8) to run this chain manually.
    5.For Monitoring use Tcodes SM37/RSPCM/SM50
    Also you can use BWCCMS.
    I usually prefer sm37 to view all the background jobs but SM50 is also useful.
    6.debug loop can be used to debug a process chain.(you have to specify here the gap between one event been triggered and the next subsequent process starting)
    to capture process in debugger go to SM37(job overview) or to SM50(process overview)
    Hope this would help you.

  • Debugging a macro

    Hi all,
    Can any one let know how to debug a macro
    ie code between define and end define.
    Regards,
    siva ch

    hI
    You cannot debug MACRO's and you cannot set any break points in the MACRO and debugger will not go into the MACRO.
    It just treats it as a statement.
    in SAP there is no way to put BREAK points for MACROS
    in FM you can put the break points
    Reward if usefull

Maybe you are looking for

  • Oracle troubleshooting when I have no info in the alert log

    Hello everyone, I'm running Oracle 10g on Solaris 10. I performed a restore yesterday, and my DB instance was running smoothly. This morning I discovered that Oracle died on me "silently", that is, nothing was recorded in the alert log - the last ent

  • How to switch from voltage 1 to voltage 2 according to their own times?

    Hello,            I am working with Labview 8.5, I have two voltages with two times from analog output. I switch between those voltages according to their times. I already find some help here to can switch from voltage1 to voltage 2 by using flat seq

  • Regarding exception handling in webdynpro

    Dear frds.. I am using webservice for webdynpro application.,,, when i call a particular method of webservice in webdynpro i get o/ps but when i give wrong outputs the webservice exception is shown in webdynpro at the bottom I dont wanna to display t

  • No replies??

    How does this forum work? I asked for help days ago (see below) and have not received one reply. Aren't there Adobe experts that browse the forums and reply? Isn't this how forums are supposed to work?? I'm running LR3.5 on a Mac and am just starting

  • How do I make B/W and color in one picture

    Can anyone help me. How do I make a picture in B/W and with some objects in color