<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to debug macro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246954#M485167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not possible (Unless you use a perform in your macro)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot debug MACRO's you cannot set any break points in the MACRO and debugger will not go into the MACRO it just treats it as a statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE INCLUDE programs instead you cn set breakpoints in includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tushar Mundlik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2007 13:42:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-28T13:42:13Z</dc:date>
    <item>
      <title>how to debug macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246951#M485164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;   How to know whether the macro is executing or not. i mean the call fucntion&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
define lmacro_unlock_current_record.
    call function 'MYFUCTION'
      exporting
       document = ls_document
       umber   = ls_number.
  end-of-definition.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 13:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246951#M485164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T13:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246952#M485165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debugging macro is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 13:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246952#M485165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246953#M485166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is from help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule, you should use subroutines (FORM, FUNCTION)&lt;/P&gt;&lt;P&gt;instead of macros. This is because subroutines - unlike&lt;/P&gt;&lt;P&gt;macros - are supported by all of the ABAP Workbench tools&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;(debugging, runtime analysis, runtime error handling, ...).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 13:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246953#M485166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246954#M485167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not possible (Unless you use a perform in your macro)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot debug MACRO's you cannot set any break points in the MACRO and debugger will not go into the MACRO it just treats it as a statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE INCLUDE programs instead you cn set breakpoints in includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tushar Mundlik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 13:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246954#M485167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246955#M485168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like ABAP classes, we need to declare objects for the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at the small macro example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZMACRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: RESULT TYPE I,&lt;/P&gt;&lt;P&gt;      N1     TYPE I VALUE 5,&lt;/P&gt;&lt;P&gt;      N2     TYPE I VALUE 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE OPERATION.&lt;/P&gt;&lt;P&gt;   RESULT = &amp;amp;1 &amp;amp;2 &amp;amp;3.&lt;/P&gt;&lt;P&gt;   OUTPUT   &amp;amp;1 &amp;amp;2 &amp;amp;3 RESULT.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE OUTPUT.&lt;/P&gt;&lt;P&gt;   WRITE: / 'The result of &amp;amp;1 &amp;amp;2 &amp;amp;3 is', &amp;amp;4.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPERATION 4 + 3.&lt;/P&gt;&lt;P&gt;OPERATION 2 ** 7.&lt;/P&gt;&lt;P&gt;OPERATION N2 - N1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you set  break point at 'operation 4 + 3' line, we can check, how macro is working according to the values passed to macro object. Here 4 is passed to &amp;amp;1, '+' is passed to &amp;amp;2, 3 is passed to &amp;amp;3. Once the processing of statement 'result = &amp;amp;1 &amp;amp;2 &amp;amp;3' is over,result get the value of 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line  OUTPUT   &amp;amp;1 &amp;amp;2 &amp;amp;3 RESULT itself calls the output macro.In the out put it prints as 'The result of 4  + 3 is 7'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 14:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-macro/m-p/2246955#M485168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T14:09:37Z</dc:date>
    </item>
  </channel>
</rss>

