<?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: Loading a range using macro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961773#M67566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Rich is right, you don't have to store it globally - you can just define it right in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   However, if you might want to check out this thread; it explains how to lock programs using a global macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="575503"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2005 18:25:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-01T18:25:59Z</dc:date>
    <item>
      <title>Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961771#M67564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have once come across a technique of loading a range using a macro that was stored in table TRMAC.  Has anyone seen anything similar to this?  I copied the code to a jump drive but have misplaced it.  It was really a cool way to load a range with individual values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 18:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961771#M67564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T18:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961772#M67565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to store it in that TABLE.  You can define the macro in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges: r_datum for sy-datum.

Define build_range.
r_datum-sign = 'I'.
r_datum-option = 'EQ'.
r_datum-low = &amp;amp;1.
append r_datum.
end-of-definition.


* Now use the macro

build_range sy-datum.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 18:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961772#M67565</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-01T18:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961773#M67566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Rich is right, you don't have to store it globally - you can just define it right in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   However, if you might want to check out this thread; it explains how to lock programs using a global macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="575503"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 18:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961773#M67566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T18:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961774#M67567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys.  One more thing.  If I wanted to send a list of individual dates to that macro, what would the syntax look like?  Would it be macro_name: date1,&lt;/P&gt;&lt;P&gt;                                    date2,&lt;/P&gt;&lt;P&gt;                                    date3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is what I saw once before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 18:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961774#M67567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T18:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961775#M67568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but without the commas.  Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set_fldcat_typ 'BLDAT' 'C' '13'    'Vend Doc Date'  ' ' ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 18:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961775#M67568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T18:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961776#M67569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ranges: r_datum for sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]Define build_range.&lt;/P&gt;&lt;P&gt;r_datum-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_datum-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;r_datum-low = &amp;amp;1.&lt;/P&gt;&lt;P&gt;r_datum-high = &amp;amp;2.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;append r_datum.&lt;/P&gt;&lt;P&gt;end-of-definition.&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;Now use the macro&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build_range &amp;lt;b&amp;gt;sy-datum sy-datum.[/&amp;lt;/b&amp;gt;code]&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 19:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961776#M67569</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-01T19:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961777#M67570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again guys.  Got it.  I wanted to pass numerous single values to the macro and accomplished it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build_macro: '64', '65', '66'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This loaded the range with those three values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 19:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961777#M67570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T19:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a range using macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961778#M67571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh,  I misunderstood what you meant.  I was think that you wanted to pass multiple values at one time to the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 19:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-a-range-using-macro/m-p/961778#M67571</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-01T19:26:58Z</dc:date>
    </item>
  </channel>
</rss>

