<?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 a macro ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553730#M1658451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Something else said activate system debugging, which did not work for me.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System debugging wont let you debug macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that the macro contains a simple CHECK statement(not sure why it was coded this way), you can check the variable contents in debug &amp;amp; see why this condition fails!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 12:28:04 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2012-02-08T12:28:04Z</dc:date>
    <item>
      <title>How to debug a macro ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553726#M1658447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* 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_&amp;amp;1 ) or
            ( keyvals-&amp;amp;1 = stock_type-&amp;gt;keyvals-&amp;amp;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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Added code tags&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 8, 2012 5:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 11:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553726#M1658447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-08T11:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a macro ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553727#M1658448</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;Please use search before posting question. It's not possible to debug macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 12:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553727#M1658448</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2012-02-08T12:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a macro ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553728#M1658449</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;we cant debug macros in sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sreenivas p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sreenivas.p on Feb 8, 2012 1:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 12:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553728#M1658449</guid>
      <dc:creator>sreenivas_pachva</dc:creator>
      <dc:date>2012-02-08T12:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a macro ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553729#M1658450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did search for the same and found info which said a macro cannot be debugged. Something else said activate system debugging, which did not work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My concern is the code, how do I decipher what causes different behaviour ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 12:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553729#M1658450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-08T12:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a macro ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553730#M1658451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Something else said activate system debugging, which did not work for me.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System debugging wont let you debug macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that the macro contains a simple CHECK statement(not sure why it was coded this way), you can check the variable contents in debug &amp;amp; see why this condition fails!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 12:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553730#M1658451</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-02-08T12:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a macro ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553731#M1658452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Made the below changes, moved the code out of the macro and debugged the same. Helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;keys set within both stock types must match&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    relation = s2l_strel_unrelated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DEFINE check_intsect_key.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;exit if key in intersection doesn't match&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check ( intsect z s2l_stock_key_&amp;amp;1 ) or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ( keyvals-&amp;amp;1 = stock_type-&amp;gt;keyvals-&amp;amp;1 ).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   END-OF-DEFINITION.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; apply_macro_to_stock_keys check_intsect_key.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   check ( intsect z s2l_stock_key_matnr )  or&lt;/P&gt;&lt;P&gt;            ( keyvals-matnr = stock_type-&amp;gt;keyvals-matnr ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if we get were, the intersection part matches&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 09:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-macro/m-p/8553731#M1658452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T09:55:53Z</dc:date>
    </item>
  </channel>
</rss>

