<?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 dynamic select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select/m-p/9654566#M1764432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi expert.&lt;/P&gt;&lt;P&gt;i have one big problem.&lt;/P&gt;&lt;P&gt;i want to get sum from table cosp by some strange statement.&lt;/P&gt;&lt;P&gt;when my perdio is 1 i want to get sum from wtg001&lt;/P&gt;&lt;P&gt;when period is 2 i want to get sum from wtg002&lt;/P&gt;&lt;P&gt;.....wtg012.&lt;/P&gt;&lt;P&gt;is it possible to have dynamic select&amp;nbsp; like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; SUM( &lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN class="L0S52"&gt;distinct &lt;/SPAN&gt;wtg0xy&lt;/SPAN&gt; )&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;ZWTG001_110010&lt;/P&gt;&lt;P&gt; cosp~kstar &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;kstar csku~ltext &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;ltext&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;INTO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; corresponding &lt;SPAN class="L0S52"&gt;fields &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;tABLE &lt;/SPAN&gt;IT_TMP?????&lt;/P&gt;&lt;P&gt;thanks for your advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 15:18:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-10T15:18:30Z</dc:date>
    <item>
      <title>dynamic select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select/m-p/9654566#M1764432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi expert.&lt;/P&gt;&lt;P&gt;i have one big problem.&lt;/P&gt;&lt;P&gt;i want to get sum from table cosp by some strange statement.&lt;/P&gt;&lt;P&gt;when my perdio is 1 i want to get sum from wtg001&lt;/P&gt;&lt;P&gt;when period is 2 i want to get sum from wtg002&lt;/P&gt;&lt;P&gt;.....wtg012.&lt;/P&gt;&lt;P&gt;is it possible to have dynamic select&amp;nbsp; like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; SUM( &lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN class="L0S52"&gt;distinct &lt;/SPAN&gt;wtg0xy&lt;/SPAN&gt; )&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;ZWTG001_110010&lt;/P&gt;&lt;P&gt; cosp~kstar &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;kstar csku~ltext &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;ltext&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;INTO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; corresponding &lt;SPAN class="L0S52"&gt;fields &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;tABLE &lt;/SPAN&gt;IT_TMP?????&lt;/P&gt;&lt;P&gt;thanks for your advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select/m-p/9654566#M1764432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-10T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select/m-p/9654567#M1764433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maryam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'wtg0' lv_period into lv_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct&amp;nbsp; ( lv_field ) a&lt;SPAN class="L0S52"&gt;s &lt;/SPAN&gt;ZWTG001_110010&lt;/P&gt;&lt;P&gt; cosp~kstar &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;kstar csku~ltext &lt;SPAN class="L0S52"&gt;as &lt;/SPAN&gt;ltext&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;INTO&lt;/SPAN&gt; corresponding &lt;SPAN class="L0S52"&gt;fields &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of itab&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, variable lv_period has the period '01' , '02' etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 16:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select/m-p/9654567#M1764433</guid>
      <dc:creator>former_member188251</dc:creator>
      <dc:date>2013-09-11T16:58:54Z</dc:date>
    </item>
  </channel>
</rss>

