<?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: Problem in select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816209#M1127203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my select query i am using only 2 fields except MANDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is not required , because internally the MANDT will be added to the query anyways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the trace for the query in ST05 ? &lt;/P&gt;&lt;P&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2008 11:04:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-02T11:04:09Z</dc:date>
    <item>
      <title>Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816203#M1127197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i have a collection table which contains huge data. there are 11 indexes already created. I am using a select query to fecth data from this table comparing some fields . there is a secondary index already available which contains 'MANDT' field along with two other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my select query i am using only 2 fields except MANDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but as i said there is huge data, this select query is not working ( not fetching the data ) but in normal senario we can get the data evenif we dont use mandt field.&lt;/P&gt;&lt;P&gt;also i tried the same query on database.but still its not fetching the records.&lt;/P&gt;&lt;P&gt;so wat could be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing if i m using mandt field in select query i can get the required data.&lt;/P&gt;&lt;P&gt;so pls can anybody tell me wat the problem could be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816203#M1127197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816204#M1127198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manisha,&lt;/P&gt;&lt;P&gt;                       Either remove the MANDT from Index or use MANDT key also if it is working. The problem i think is because you have created index on MANDT field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816204#M1127198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816205#M1127199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manisha,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fst check the database has any records and chk whethr if there are any records  satisfying  ur where condtion.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Make sure the sequence of declaration of fields in internal table should be same as sequence in selection statment.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;no need to create any index for mandt as it is default primary key it has primary index&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;no need to pass mandt field into ur internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;Edited by: Rasheed salman on Dec 2, 2008 11:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816205#M1127199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816206#M1127200</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;Why are you not using MANDT in your SELECT Statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the SY-SUBRC value after your SELECT Statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share your SELECT Query.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816206#M1127200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816207#M1127201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manisha...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont know whether it will work or not.. but why dont you try.. splitting the select into two.. ie.. having two selects on the same table......split the WHERE clause appropriately.. into two halves..and try APPENDING TABLE in the second SELECT query.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816207#M1127201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816208#M1127202</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 don't think that its working if you are putting MANDT,it should even work if you don't put MANDT,what is actually happening is your other two fields are not working at all,so when you put mandt its working,it might be taking all the records for that mandt only not corresponding records of the other two fields,so what the reason could be:&lt;/P&gt;&lt;P&gt;check if there exist any COnversion Exits for the other two,i think before directly putting the other two fields in the where clause first you have to convert them using FM CONVERSION_EXIT_........._INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816208#M1127202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816209#M1127203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my select query i am using only 2 fields except MANDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is not required , because internally the MANDT will be added to the query anyways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the trace for the query in ST05 ? &lt;/P&gt;&lt;P&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 11:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816209#M1127203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T11:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816210#M1127204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but just think if there is any need of the conversion then logically it should not fetch the records even if i am using mandt field. rite?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am getting records whenevr i am using the mandt field in where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 11:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816210#M1127204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T11:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816211#M1127205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rasheed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 )i have already told above that if i am using mandt field i am able to fetch the records that means &lt;/P&gt;&lt;P&gt;there are records of the given criteria .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) if you are using non primary fields in selection you need to create a secondary index.&lt;/P&gt;&lt;P&gt;   in secondary index we usually put those fields for which we can pass the values and make the database access more feasible. so evenif mandt is primary key its need to put mandt in secondary index along with other two fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 11:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816211#M1127205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816212#M1127206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2008 09:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-query/m-p/4816212#M1127206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-13T09:35:49Z</dc:date>
    </item>
  </channel>
</rss>

