<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091142#M100754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can write like that, are you facing any problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2005 21:38:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-05T21:38:42Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091140#M100752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guyz,&lt;/P&gt;&lt;P&gt;I have an issue with the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following code is existing in my program to select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select objnr gjahr appending i_cost&lt;/P&gt;&lt;P&gt;from coss &lt;/P&gt;&lt;P&gt;for all entries in i_aufnr&lt;/P&gt;&lt;P&gt;where objnr = i_aufnr-objnr&lt;/P&gt;&lt;P&gt;and gjahr in s_gjahr&lt;/P&gt;&lt;P&gt;and kstar in (c_labor, c_overhead).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have to include some more values for the cost element (coss-kstar)  viz (c_ele1,c_ele2,c_ele3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i write the code like :&lt;/P&gt;&lt;P&gt; kstar in (c_labor, c_overhead, c_ele1,c_ele2,c_ele3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not, how shd write the select statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot in advance.&lt;/P&gt;&lt;P&gt;venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 21:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091140#M100752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T21:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091141#M100753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venu,&lt;/P&gt;&lt;P&gt;  You can write the code that way.You can specify any no. of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 21:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091141#M100753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T21:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091142#M100754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can write like that, are you facing any problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 21:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091142#M100754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T21:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091143#M100755</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;Yes you can. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Kalidas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 21:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091143#M100755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T21:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091144#M100756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want it to be more flexible, define a range for that field and fill it as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ranges: r_kstart for coss-kstar.

r_kstar-low    = c_ele1.
r_kstar-option = 'EQ'.
r_kstar-sign   = 'I'.

append r_kstar.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can fill all others using the same logic. Even better would be to make it as a select-option and prefill it just like above in the INITIALIZATION event. If the users want to add more cost elements in the future, they can simply add it to this select option, instead of you changing the program everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 21:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091144#M100756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091145#M100757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot guyz&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 21:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091145#M100757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T21:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091146#M100758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify values but there is a limitation on SQL statement generated by SAP at Kernal.. If you have too many values not only in this IN statement (Individual or Internal table ).. SAP created SQL statement at Runtime will give dump if it exceeds the limit..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You are ok with this one.. but just keep in mind.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 16:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1091146#M100758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T16:53:43Z</dc:date>
    </item>
  </channel>
</rss>

