<?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: Making a query performant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898183#M1480981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 May 2010 12:33:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-24T12:33:25Z</dc:date>
    <item>
      <title>Making a query performant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898180#M1480978</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;Iam reading data from 2 tables cdhdr,cdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection screen contains following inputs from the user&lt;/P&gt;&lt;P&gt;Date,Header BOM material,bom usage(mast-stlan, For Example 8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select cdhdr~username cdhdr~udate cdpos~changeid cdpos~valuenew
         cdpos~valueold cdpos~tabname cdpos~feldname into CORRESPONDING FIELDS OF TABLE gt_ditab
         from cdhdr inner join cdpos
     on cdhdr~OBJECTCLAS = cdpos~OBJECTCLAS
        and cdhdr~changenr = cdpos~changenr
  where cdhdr~objectclas =
 'stue' and cdhdr~udate in so_date&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any more condition I could put in,in the above query so that the query is performant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 06:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898180#M1480978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-23T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Making a query performant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898181#M1480979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also add Transaction code in selection condition-  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you know which transaction is adding entries in CDHDR table, also can check maximum entries and should have an idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 13:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898181#M1480979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-23T13:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Making a query performant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898182#M1480980</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 additional criteria that can be entered is context dependent &amp;amp; would vary in different cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Krishendu indicated, you can make use of TCODE to specify additional criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since you are dealing with change document data, I would recommend you to use the function modules present in the F.group SCD1 &amp;amp; SCD0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link should be helpful to you in this regard: [Read and Format Change Documents|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa01dd493111d182b70000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 06:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898182#M1480980</guid>
      <dc:creator>former_member776318</dc:creator>
      <dc:date>2010-05-24T06:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Making a query performant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898183#M1480981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 12:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-query-performant/m-p/6898183#M1480981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T12:33:25Z</dc:date>
    </item>
  </channel>
</rss>

