<?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: help in select plx in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087625#M732296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first specifed all primary key with field u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab.&lt;/P&gt;&lt;P&gt;if  ht357g is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 .2.3..4primary key into corresponding fields of table ihsg from ht357g&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ht357g&lt;/P&gt;&lt;P&gt;WHERE ( objnr LIKE 'OR%' )&lt;/P&gt;&lt;P&gt;AND ( k_skip EQ imprm_k_skip-yes )&lt;/P&gt;&lt;P&gt;AND ( pmsog EQ ht357g-sogen )&lt;/P&gt;&lt;P&gt;AND ( erdat IN s_erdat )&lt;/P&gt;&lt;P&gt;AND ( ernam IN s_ernam )&lt;/P&gt;&lt;P&gt;AND ( aedat IN s_aedat )&lt;/P&gt;&lt;P&gt;AND ( aenam IN s_aenam )&lt;/P&gt;&lt;P&gt;AND ( aufnr IN s_aufnr )&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2007 10:54:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-16T10:54:13Z</dc:date>
    <item>
      <title>help in select plx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087622#M732293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to improve performance in this select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; H I H S G  &amp;lt;- I H S G&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT        * FROM  ihsg INTO TABLE hihsg&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN ht357g&lt;/P&gt;&lt;P&gt;       WHERE ( objnr  LIKE 'OR%'           )&lt;/P&gt;&lt;P&gt;       AND   ( k_skip EQ  imprm_k_skip-yes )&lt;/P&gt;&lt;P&gt;       AND   ( pmsog  EQ  ht357g-sogen     )&lt;/P&gt;&lt;P&gt;       AND   ( erdat  IN  s_erdat          )&lt;/P&gt;&lt;P&gt;       AND   ( ernam  IN  s_ernam          )&lt;/P&gt;&lt;P&gt;       AND   ( aedat  IN  s_aedat          )&lt;/P&gt;&lt;P&gt;       AND   ( aenam  IN  s_aenam          )&lt;/P&gt;&lt;P&gt;       AND   ( aufnr  IN  s_aufnr          )&lt;/P&gt;&lt;P&gt;    ORDER BY PRIMARY KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ihsg have 113237 records;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ht357g have 16 records;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; s_erdat have no records;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; s_ernam have no records;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; s_aedat have no records;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; s_aenam have no records;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; s_aufnr have 3000 records;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can plx try to help me?&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 10:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087622#M732293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T10:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: help in select plx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087623#M732294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Specify field names instead of using * in select query.&lt;/P&gt;&lt;P&gt;2. No Need to use ( ).&lt;/P&gt;&lt;P&gt;3. Maintain the same order in where clause as they appear in IHSG table, even in where clause also.&lt;/P&gt;&lt;P&gt;4. Use Seconday indexes if available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 10:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087623#M732294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T10:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: help in select plx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087624#M732295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to avoid * after select.&lt;/P&gt;&lt;P&gt;write all the field names what ever u want to retrieve from the database in the place of * then it will imprrove the performance of ur select statment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 10:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087624#M732295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T10:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: help in select plx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087625#M732296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first specifed all primary key with field u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab.&lt;/P&gt;&lt;P&gt;if  ht357g is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 .2.3..4primary key into corresponding fields of table ihsg from ht357g&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ht357g&lt;/P&gt;&lt;P&gt;WHERE ( objnr LIKE 'OR%' )&lt;/P&gt;&lt;P&gt;AND ( k_skip EQ imprm_k_skip-yes )&lt;/P&gt;&lt;P&gt;AND ( pmsog EQ ht357g-sogen )&lt;/P&gt;&lt;P&gt;AND ( erdat IN s_erdat )&lt;/P&gt;&lt;P&gt;AND ( ernam IN s_ernam )&lt;/P&gt;&lt;P&gt;AND ( aedat IN s_aedat )&lt;/P&gt;&lt;P&gt;AND ( aenam IN s_aenam )&lt;/P&gt;&lt;P&gt;AND ( aufnr IN s_aufnr )&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 10:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087625#M732296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T10:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: help in select plx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087626#M732297</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 do it, but the table ihsg have 24 Fields, and the final time is the same...&lt;/P&gt;&lt;P&gt;I use  a range hs_aufnr(using low and high) to help at s_aufnr(3000 records) and filtering...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE hihsg&lt;/P&gt;&lt;P&gt;         WHERE NOT ( aufnr  IN  s_aufnr ).&lt;/P&gt;&lt;P&gt;  CLEAR hs_aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I need a better time.&lt;/P&gt;&lt;P&gt;anyone have outher idea??&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 11:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087626#M732297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T11:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: help in select plx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087627#M732298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of order by primary key , select recors first and try to use sort statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will improve performance a bit. &lt;/P&gt;&lt;P&gt;Also try to provide the maximum possible key fields in select&lt;/P&gt;&lt;P&gt;The order of fields in where clause make it same as order in the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 12:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087627#M732298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T12:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: help in select plx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087628#M732299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, &lt;/P&gt;&lt;P&gt;I'll do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 12:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-select-plx/m-p/3087628#M732299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T12:06:35Z</dc:date>
    </item>
  </channel>
</rss>

