<?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 statement to pick up field runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256903#M1214340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi alll&lt;/P&gt;&lt;P&gt;I want to run query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztable into table t_ztable&lt;/P&gt;&lt;P&gt;   where puid eq 1&lt;/P&gt;&lt;P&gt;             guid eq 2&lt;/P&gt;&lt;P&gt;             (key1 or key2 or key3) eq 'abc'.&lt;/P&gt;&lt;P&gt;here l_key will hold value either key1,key2,key3 runtime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2009 15:58:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-04T15:58:52Z</dc:date>
    <item>
      <title>Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256899#M1214336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i hava z-table&lt;/P&gt;&lt;P&gt;Ztable with field puid guid key1 key2 key3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to fetch data for key1 key2 key3 runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_key  type ztable-key1,&lt;/P&gt;&lt;P&gt;     t_ztable type standard table of ztable with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wrote query as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table t_ztable from ztable&lt;/P&gt;&lt;P&gt;          where puid eq '1',&lt;/P&gt;&lt;P&gt;                   guid eq '3',&lt;/P&gt;&lt;P&gt;                   l_key eq 'ght'.&lt;/P&gt;&lt;P&gt;where l_key will be key1,key2 or key3 as per runtime value.&lt;/P&gt;&lt;P&gt;but it is showing error that l_key is non defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know other solution that putting where clause in one string variable.&lt;/P&gt;&lt;P&gt;But i want to ask whether it is possible to pass runtime field name in sele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 15:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256899#M1214336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256900#M1214337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi harshalata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first Check your field l_key exist in that table ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can proceed to assigining the value at the run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;runtime only possible with the existance of that field in that table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prasanth on Mar 4, 2009 9:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 15:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256900#M1214337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T15:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256901#M1214338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use a dynamic condition, it would be something like this&lt;/P&gt;&lt;P&gt;L_key is the name of the field you want to use dynamically&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: l_key(50)

data: begin of itab occurs 0,
cond(72),
end of itab.
itab-cond = 'puid eq ''''1'''' and'. append itab.
itab-cond = 'guid eq ''''3'''' and'. append itab.
concatenate l_key 'eq' '''''3''''.' into itab-cond separated by space.
append itab

select * into table t_ztable from ztable
where (itab).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 15:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256901#M1214338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T15:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256902#M1214339</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;In Ztable there are only this fields puid guid key1 key2 key3.there is no field with l_key in table ztable.&lt;/P&gt;&lt;P&gt;so it won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 15:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256902#M1214339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256903#M1214340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi alll&lt;/P&gt;&lt;P&gt;I want to run query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztable into table t_ztable&lt;/P&gt;&lt;P&gt;   where puid eq 1&lt;/P&gt;&lt;P&gt;             guid eq 2&lt;/P&gt;&lt;P&gt;             (key1 or key2 or key3) eq 'abc'.&lt;/P&gt;&lt;P&gt;here l_key will hold value either key1,key2,key3 runtime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 15:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256903#M1214340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256904#M1214341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I told you already how to do it. You need to fill the condition in a table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 16:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256904#M1214341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T16:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256905#M1214342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can achieve that with putting condition in string.&lt;/P&gt;&lt;P&gt;L_where_clause. no need of table too.&lt;/P&gt;&lt;P&gt;Just asking whether we pass Column name of Table runtime without using itab ot l_where_clause (string)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 16:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256905#M1214342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256906#M1214343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the field name only in where clause by concatenating. we don't any other opions to do that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise you need to look for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 16:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256906#M1214343</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-03-04T16:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement to pick up field runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256907#M1214344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 17:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-to-pick-up-field-runtime/m-p/5256907#M1214344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T17:08:15Z</dc:date>
    </item>
  </channel>
</rss>

