<?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: Performance tuning on SELECT Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638685#M1865151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you know this is a better option without knowing the structure of &lt;SPAN style="color: #000000; font-size: 12px;"&gt;zcp_dt_spas_main and &lt;SPAN style="color: #000000; font-size: 12px;"&gt;wa_spasmain? This could easily generate a short dump, i.e. if the structures are different and a numeric target field is receiving a non numeric character.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 03:57:56 GMT</pubDate>
    <dc:creator>custodio_deoliveira</dc:creator>
    <dc:date>2014-09-09T03:57:56Z</dc:date>
    <item>
      <title>Performance tuning on SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638681#M1865147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Good day!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I would like to ask for your assistance on this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: helvetica;"&gt;&lt;STRONG style="font-size: 10pt;"&gt; &lt;SPAN class="l1s521"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="l1s521"&gt;SINGLE&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; zcp_dt_spas_main&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; CORRESPONDING &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;FIELDS&lt;/SPAN&gt; &lt;SPAN class="l1s521"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; wa_spasmain&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; pa_partner &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;EQ&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; m_crn-partner &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; ( penstat = &lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'A'&lt;/SPAN&gt; &lt;SPAN class="l1s521"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; ( penstat = &lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'S'&lt;/SPAN&gt; &lt;SPAN class="l1s521"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; parfs &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt; (&lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'C'&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'N'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;STRONG&gt;) ) ).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt; background: white; font-family: arial, helvetica, sans-serif;"&gt;using SAT transaction code, it has a large execution time/run time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif; color: black; background-color: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;H&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ow can tune this select statement to make it run faster than it is doing now?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt; background: white; font-family: arial, helvetica, sans-serif;"&gt;Thank you so much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif; color: black; background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Best regards&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 03:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638681#M1865147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-09T03:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning on SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638682#M1865148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Almighty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's nearly imposible to help you if we don't know your Z table. What's the primary key? Is there any index? Is it a transparent table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 03:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638682#M1865148</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2014-09-09T03:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning on SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638683#M1865149</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;Pass&amp;nbsp; primary key fields in where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 03:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638683#M1865149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-09T03:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning on SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638684#M1865150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try with removing '&lt;SPAN class="l1s521"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt; CORRESPONDING &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;FIELDS&lt;/SPAN&gt; &lt;SPAN class="l1s521"&gt;' and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="l1s521"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="l1s521"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="l1s521"&gt;&lt;SPAN class="l1s521"&gt;SELECT single&lt;/SPAN&gt; &lt;SPAN style="color: black; background-color: white;"&gt;field&amp;nbsp; name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="l1s521"&gt;&lt;SPAN style="color: black; background-color: white;"&gt; &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt; zcp_dt_spas_main&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt;wa_spasmain&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt; pa_partner &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;EQ&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt; m_crn-partner &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="l1s521"&gt;&lt;SPAN class="l1s521"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt;&amp;nbsp; penstat in&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'A'&lt;/SPAN&gt; &lt;SPAN style="color: black; background-color: white;"&gt; &lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'S')&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="l1s521"&gt;&lt;SPAN class="l1s521"&gt; and&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt; parfs &lt;/SPAN&gt;&lt;SPAN class="l1s521"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'C'&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="l1s331"&gt;'N')&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; background-color: white;"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 03:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638684#M1865150</guid>
      <dc:creator>former_member249399</dc:creator>
      <dc:date>2014-09-09T03:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning on SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638685#M1865151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you know this is a better option without knowing the structure of &lt;SPAN style="color: #000000; font-size: 12px;"&gt;zcp_dt_spas_main and &lt;SPAN style="color: #000000; font-size: 12px;"&gt;wa_spasmain? This could easily generate a short dump, i.e. if the structures are different and a numeric target field is receiving a non numeric character.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 03:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638685#M1865151</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2014-09-09T03:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning on SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638686#M1865152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i didnt mentioned it. It is a transparent table Sir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 04:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638686#M1865152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-09T04:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning on SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638687#M1865153</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 have tune your select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the code below code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_spasmain type zcp_dt_spas_main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * &lt;/P&gt;&lt;P&gt;FROM zcp_dt_spas_main&lt;/P&gt;&lt;P&gt;into wa_spasmain&lt;/P&gt;&lt;P&gt;WHERE pa_partner EQ m_crn-partner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if penstat = 'A' or ( penstat = 'S' and parfs in ('C','N') )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ............ write further code here.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 04:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-on-select-statement/m-p/10638687#M1865153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-09T04:05:46Z</dc:date>
    </item>
  </channel>
</rss>

