<?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 about macros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-macros/m-p/3609507#M869443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi what is the use of macros in ABAP programming ?&lt;/P&gt;&lt;P&gt;What is the role of place holders in macros ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 18:27:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-18T18:27:14Z</dc:date>
    <item>
      <title>about macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-macros/m-p/3609507#M869443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi what is the use of macros in ABAP programming ?&lt;/P&gt;&lt;P&gt;What is the role of place holders in macros ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 18:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-macros/m-p/3609507#M869443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T18:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: about macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-macros/m-p/3609508#M869444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macros are a form of shortening your code by creating a "verb" and passing it 1 or more parameters to do redundant code.  This example from the F1 on DEFINE is a simple one, but show the concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DEFINE INCREMENT. 
  ADD 1 TO &amp;amp;1. 
END-OF-DEFINITION. 

DATA: NUMBER TYPE I VALUE 1. 
... 
INCREMENT NUMBER. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the macro (INCREMENT) is defined to add one to any field you pass it.  Here NUMBER is defined as an interger with a value of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the verb INCREMENT can be used to add to the field passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing this program, after INCREMENT NUMBER line, NUMBER will have the value of 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a simple example.  The place I've seen this concept used the most is in HR modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 18:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-macros/m-p/3609508#M869444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T18:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: about macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-macros/m-p/3609509#M869445</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;If you want to reuse the same set of statements more than once in a program, you can include them in a macro. For example, this can be useful for long calculations or complex WRITE statements. You can only use a macro within the program in which it is defined, and it can only be called in lines of the program following its definition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can get the same results without using them, but will have to explicitly put the code each time you want to perform the operation it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Macros is a Programming Utility to avoid repetitive coding in a Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Macros used in HR reports tied to PNP are stored in the table TRMAC. Go into SE16 and display the Table contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this also...&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a55f9e09411d2acb90000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a55f9e09411d2acb90000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venkat  appikonda on Mar 18, 2008 7:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 18:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-macros/m-p/3609509#M869445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T18:49:04Z</dc:date>
    </item>
  </channel>
</rss>

