<?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 Macro Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro-issue/m-p/2527992#M572852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am writing one report, in which I am using macors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Macro definition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;define _sel.&lt;/P&gt;&lt;P&gt;select-options: &amp;amp;1 for &amp;amp;2.&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;P&gt;loop at lt_dfies into ls_dfies.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For testing purposes, &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;concatenate ls_dfies-tabname ls_dfies-fieldname into lv_field separated by '-'.&lt;/P&gt;&lt;P&gt;&lt;U&gt;sel lv&lt;/U&gt;sel lv_field.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i check this code.. it says lv_sel is already declared, whereas it is not ?&lt;/P&gt;&lt;P&gt;can you tell me where the error is ?&lt;/P&gt;&lt;P&gt;I have made sure that there is NO Include in the report and there is no place the data has been declared ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any pointers if we have to do something special with macro's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 05:49:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T05:49:32Z</dc:date>
    <item>
      <title>Macro Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro-issue/m-p/2527992#M572852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am writing one report, in which I am using macors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Macro definition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;define _sel.&lt;/P&gt;&lt;P&gt;select-options: &amp;amp;1 for &amp;amp;2.&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;P&gt;loop at lt_dfies into ls_dfies.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For testing purposes, &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;concatenate ls_dfies-tabname ls_dfies-fieldname into lv_field separated by '-'.&lt;/P&gt;&lt;P&gt;&lt;U&gt;sel lv&lt;/U&gt;sel lv_field.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i check this code.. it says lv_sel is already declared, whereas it is not ?&lt;/P&gt;&lt;P&gt;can you tell me where the error is ?&lt;/P&gt;&lt;P&gt;I have made sure that there is NO Include in the report and there is no place the data has been declared ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any pointers if we have to do something special with macro's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro-issue/m-p/2527992#M572852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro-issue/m-p/2527993#M572853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the program execute, macro is resolved once and only once as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS LV_SEL FOR LV_FIELD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Try to execute in debug, you will get a select-options parameter at the beginning of your program.&lt;/P&gt;&lt;P&gt;Abap doesn't resolve this declaration dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to dynamically set select-options, look at &amp;lt;a href="http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;d=3038&amp;amp;a=s"&amp;gt;Source: Dynamic Table Maintenance (enhanced)&amp;lt;/a&amp;gt;, there you will find a program which maintain a table dynamically defined with denamic selections like in logical database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 06:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro-issue/m-p/2527993#M572853</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-07-18T06:04:29Z</dc:date>
    </item>
  </channel>
</rss>

