<?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: Select with a dynamic value table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685054#M887381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the exact error message?&lt;/P&gt;&lt;P&gt;is your table name really only 5 characters long (CHAR5)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 12:39:49 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-04-08T12:39:49Z</dc:date>
    <item>
      <title>Select with a dynamic value table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685051#M887378</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 have to tables t1 and t2. In the first table I have a field f1 which has the name of t2 as value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How has to be the Select Statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried  &lt;/P&gt;&lt;P&gt;DATA: l_table TYPE CHAR5 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select v1 into l_table from t1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select v2 into xx from (l_table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get there allways an error and I could not find an starting point in seach for this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for any help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Henning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 10, 2008 5:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 12:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685051#M887378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select with a dynamic value table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685052#M887379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Select v1 into l_table from t1.
endselect.
Select v2 into xx from (l_table).
endselect.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 12:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685052#M887379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T12:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select with a dynamic value table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685053#M887380</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;the problem may be with select use select single.&lt;/P&gt;&lt;P&gt;or else give the error description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_table TYPE CHAR5 .&lt;/P&gt;&lt;P&gt;data:var(10).&lt;/P&gt;&lt;P&gt;Select SINGLE f1 into l_table from t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select SINGLE f into var from (l_table)."here ensure that field F is there in table T2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 12:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685053#M887380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T12:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select with a dynamic value table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685054#M887381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the exact error message?&lt;/P&gt;&lt;P&gt;is your table name really only 5 characters long (CHAR5)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 12:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685054#M887381</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-04-08T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select with a dynamic value table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685055#M887382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;and thanks for the answer.&lt;/P&gt;&lt;P&gt;I have localized that it has something to do with the concatenate,  so I post the original code (the tables have more than 5Char sorry for that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set DATA: l_table Type CHAR20 &lt;/P&gt;&lt;P&gt;If I am setting the value for the l_table it works fine so in my opinion it has something to do with the concatenate but the result of the concatenate is also fine i checked it wit se11 the result is exactly the tablename.&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;Laufzeitfehler         DBIF_RSQL_INVALID_RSQL &lt;/P&gt;&lt;P&gt;Ausnahme               CX_SY_OPEN_SQL_DB      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_period TYPE char40.&lt;/P&gt;&lt;P&gt;DATA: l_table TYPE CHAR20.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ODSNAME from rstsods into l_table&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;USEROBJ = '6DB_K5'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate l_table '000' into l_table." I need this because the value of the table has not the 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  k850_periode&lt;/P&gt;&lt;P&gt;  FROM (l_table)&lt;/P&gt;&lt;P&gt;  INTO l_period.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 13:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685055#M887382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select with a dynamic value table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685056#M887383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henning,&lt;/P&gt;&lt;P&gt;the "short" dump should give you more information somewhere about the actual problem: does the table you are accessing dynamically not exist, or does the column k850_periode not exist in that table, or could it be that k850_periode and l_period are defined differently?&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685056#M887383</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-04-10T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select with a dynamic value table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685057#M887384</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 found my mistake the table name was not right. What a stupid mistake &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks again to all it was very helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 19:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-a-dynamic-value-table/m-p/3685057#M887384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T19:12:15Z</dc:date>
    </item>
  </channel>
</rss>

