<?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: How i select from (conditional table)? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251358#M1720866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to every one but nothing of this works on me. &lt;/P&gt;&lt;P&gt; I dont think that i can avoid two select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2013 10:38:57 GMT</pubDate>
    <dc:creator>former_member996305</dc:creator>
    <dc:date>2013-01-17T10:38:57Z</dc:date>
    <item>
      <title>How i select from (conditional table)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251354#M1720862</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;i want to select &lt;SPAN class="hps"&gt;from different&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tables without to do two select. I want to choose&amp;nbsp; which table i do the select with a condition before. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I try something like this but it didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;DATA&amp;nbsp;&amp;nbsp; lv_table&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE char10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF .........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;lv_table&amp;nbsp; =&amp;nbsp; 'sel_table1'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;else.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;lv_table&amp;nbsp; = 'sel_table2'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT * &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;(lv_table) &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE wa_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;.......... &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;..........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;I dont know if the &lt;SPAN class="hps alt-edited"&gt;brackets are the right way to do it. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;any&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help are&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;accepted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Dio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 09:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251354#M1720862</guid>
      <dc:creator>former_member996305</dc:creator>
      <dc:date>2013-01-17T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How i select from (conditional table)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251355#M1720863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dio ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY this , it will work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&amp;nbsp;&amp;nbsp; lv_table&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;char10.&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;: X_HEADER &lt;SPAN class="L0S52"&gt;LIKE&amp;nbsp; &lt;/SPAN&gt;VIMDESC. &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;.........&lt;BR /&gt; &lt;BR /&gt; lv_table&amp;nbsp; =&amp;nbsp; &lt;SPAN class="L0S33"&gt;'sel_table1'&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt; else.&lt;BR /&gt; &lt;BR /&gt; lv_table&amp;nbsp; = &lt;SPAN class="L0S33"&gt;'sel_table2'&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; x_header-texttab = lv_table.&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;(x_header-texttab) &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;wa_table&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;.......... &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;..........&lt;/SPAN&gt;&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;Yogendra Bhaskar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 10:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251355#M1720863</guid>
      <dc:creator>yogendra_bhaskar</dc:creator>
      <dc:date>2013-01-17T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How i select from (conditional table)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251356#M1720864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bracket is the right way to do this. Try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="hps" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DATA&amp;nbsp;&amp;nbsp; lv_table&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;TYPE string.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 10:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251356#M1720864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-17T10:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How i select from (conditional table)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251357#M1720865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to select from two table in single select then you have to do Inner Join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 10:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251357#M1720865</guid>
      <dc:creator>former_member195270</dc:creator>
      <dc:date>2013-01-17T10:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How i select from (conditional table)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251358#M1720866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to every one but nothing of this works on me. &lt;/P&gt;&lt;P&gt; I dont think that i can avoid two select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 10:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251358#M1720866</guid>
      <dc:creator>former_member996305</dc:creator>
      <dc:date>2013-01-17T10:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: How i select from (conditional table)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251359#M1720867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dio ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What was the problem with your technique ?&lt;/P&gt;&lt;P&gt;This technique is dynamic selection.&lt;/P&gt;&lt;P&gt;You need to define according internal tables.&lt;/P&gt;&lt;P&gt;And write selection statements in conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to write two select statements but only one ( depending on condition ) will be executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 11:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-select-from-conditional-table/m-p/9251359#M1720867</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2013-01-17T11:11:39Z</dc:date>
    </item>
  </channel>
</rss>

