<?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: macros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688287#M888136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following refernces for ur query : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref : &lt;A href="http://www.techinterviews.com/?p=198" target="test_blank"&gt;http://www.techinterviews.com/?p=198&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What is the difference between macro and subroutine?- Macros can only be used in the program the are defined in and only after the definition are expanded at compilation / generation. Subroutines (FORM) can be called from both the program the are defined in and other programs . A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice. A FORM is a local subroutine (which can be called external). A FUNCTION is (more or less) a subroutine that is called external. Since debugging a MACRO is not really possible, prevent the use of them (I&amp;#146;ve never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpul,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Esha Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 04:52:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-17T04:52:30Z</dc:date>
    <item>
      <title>macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688285#M888134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am ramarao i have a doubt  please help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the difference b/w macros and subroutines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 04:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688285#M888134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T04:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688286#M888135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macros can only be used in the program the are defined in and only after the definition.&lt;/P&gt;&lt;P&gt;Macros can take max 9 parameters.&lt;/P&gt;&lt;P&gt;Macros are expanded at compilation / generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines (FORM) can be called from both the program the are defined in and other programs ('perform &lt;/P&gt;&lt;P&gt;' of 'perform in program ').&lt;/P&gt;&lt;P&gt;Subroutines can take any amount of parameters.&lt;/P&gt;&lt;P&gt;Subroutines are 'expanded' at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions are just like FORMs, but are intended to be called external.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some differences between FUNCTIONs and FORMs:&lt;/P&gt;&lt;P&gt;The name of a FORM must be unique within the program (two programs can have different FORMs with the same name). A FORM is intended to be called internal (from within the program, however by a 'trick' you can call them external).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of a FUNCTION has to be unique throughout the system. A FUNCTION is intended to be called external (and is thus shared by 'many' programs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter is more important for programmers and maintenance. Since a FUNCTION is called external, it is important to keep the interface (parameters) the same. The interface of a FORM (which is intended to be called internal) is check when debugging a program (but it is only checked within the program that is debugged). So if the interface of a FORM is changed, but the call to the FORM (perform ) is not, the debugger will notice this and issue an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general:&lt;/P&gt;&lt;P&gt;A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice.&lt;/P&gt;&lt;P&gt;A FORM is a local subroutine (which can be called external).&lt;/P&gt;&lt;P&gt;A FUNCTION is (more or less) a subroutine that is called external.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since debugging a MACRO is not really possible, prevent the use of them (I've never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION.&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;do reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 04:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688286#M888135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T04:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688287#M888136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following refernces for ur query : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref : &lt;A href="http://www.techinterviews.com/?p=198" target="test_blank"&gt;http://www.techinterviews.com/?p=198&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What is the difference between macro and subroutine?- Macros can only be used in the program the are defined in and only after the definition are expanded at compilation / generation. Subroutines (FORM) can be called from both the program the are defined in and other programs . A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice. A FORM is a local subroutine (which can be called external). A FUNCTION is (more or less) a subroutine that is called external. Since debugging a MACRO is not really possible, prevent the use of them (I&amp;#146;ve never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpul,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Esha Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 04:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688287#M888136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T04:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688288#M888137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;main differences are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)we cannot call MACRO from one report to other..but we can call SUBROUTINE which are exteranl subroutines from one report to other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)MACRO cannot be debugging..but SUBROUTINE can debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)MACRO doesn't have any parameters within decleration..but subroutine may have using,changing and table parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)MACRO's can be nested..but subroutines cannot be nested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)you have limit up to 9 times to call a MACRO within one program...but there is no limit for subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it useful.&lt;/P&gt;&lt;P&gt;Dara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 20:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688288#M888137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T20:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688289#M888138</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;STRONG&gt;Macros&lt;/STRONG&gt; can only be used in the program the are defined in and only after the definition.&lt;/P&gt;&lt;P&gt;Macros can take max 9 parameters.&lt;/P&gt;&lt;P&gt;Macros are expanded at compilation / generation.&lt;/P&gt;&lt;P&gt;A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subroutines (FORM)&lt;/STRONG&gt; can be called from both the program the are defined in and other programs ('perform &lt;/P&gt;&lt;P&gt;' of 'perform in program ').&lt;/P&gt;&lt;P&gt;Subroutines can take any amount of parameters.&lt;/P&gt;&lt;P&gt;Subroutines are 'expanded' at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         The name of a FORM must be unique within the program (two programs can have different FORMs with the same name). A FORM is intended to be called internal (from within the program, however by a 'trick' you can call them external).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface of a FORM (which is intended to be called internal) is check when debugging a program (but it is only checked within the program that is debugged). So if the interface of a FORM is changed, but the call to the FORM (perform ) is not, the debugger will notice this and issue an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A FORM is a local subroutine (which can be called external).&lt;/P&gt;&lt;P&gt;Since debugging a MACRO is not really possible, prevent the use of them (I've never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;shylaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 04:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688289#M888138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T04:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688290#M888139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check this link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tips/ABAP/GlobalMacros/Define.htm" target="test_blank"&gt;http://www.saptechnical.com/Tips/ABAP/GlobalMacros/Define.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/abap-faq-2.htm" target="test_blank"&gt;http://www.sap-img.com/abap/abap-faq-2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kavitha..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 07:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macros/m-p/3688290#M888139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T07:29:57Z</dc:date>
    </item>
  </channel>
</rss>

