<?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 Issue.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800239#M343592</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;1. Remove INTO CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;2. if the records are being repeated in first table i.e while using for all entries,   remove duplicate entries from the itab and move them into third internal table&lt;/P&gt;&lt;P&gt;3. sort the itab and go for binary search based on the sorted field&lt;/P&gt;&lt;P&gt;4. check the internal table before going for the  for all entries &lt;/P&gt;&lt;P&gt;5. try to use Join condition if ther tables are small and having more no of key relationship&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2006 10:50:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-20T10:50:12Z</dc:date>
    <item>
      <title>Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800235#M343588</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 major performance issue for the below stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select cases in vbrk that have bills that matches cases in itn_cases,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;including canceled bills [ For Final and Interim Billing ]&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT&lt;/P&gt;&lt;P&gt;         ishfalnr&lt;/P&gt;&lt;P&gt;         ishfalrn&lt;/P&gt;&lt;P&gt;         fkdat&lt;/P&gt;&lt;P&gt;         ishlfdbew&lt;/P&gt;&lt;P&gt;         vbeln&lt;/P&gt;&lt;P&gt;  FROM vbrk&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE itn_vbrk&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN itn_cases&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt;      isheinri = p_einri&lt;/P&gt;&lt;P&gt;  AND ishfalnr = itn_cases-falnr&lt;/P&gt;&lt;P&gt;  AND sfakn EQ SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement is related to SAP Healthcare table data selection... we have more than 7 million records in VBRK table... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This above statement is taking almost 85% of the execution time and its running in the background for more than 2 hours..... &amp;lt;b&amp;gt;we have secondary index defined already on isheinri &amp;amp; ishfalnr fields...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise me, as its very High Priority issue here... Thanks in advance....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 09:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800235#M343588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T09:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800236#M343589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arrenge the order of field in same as u fetch it from table.not use into CORRESPONDING fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
ishfalnr
ishfalrn
fkdat
ishlfdbew
vbeln
FROM vbrk
INTO TABLE itn_vbrk
FOR ALL ENTRIES IN itn_cases
WHERE
isheinri = p_einri
AND ishfalnr = itn_cases-falnr
AND sfakn EQ SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 10:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800236#M343589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T10:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800237#M343590</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;1) declare ur internal table in the seq of fields in the db table&lt;/P&gt;&lt;P&gt;2) select the fields in the seq as done in internal table&lt;/P&gt;&lt;P&gt;3) avoid using into corresponding fields of&lt;/P&gt;&lt;P&gt;4) avoid using NE, EQ instead use symbols =, &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;5) check if itn_cases has data&lt;/P&gt;&lt;P&gt;6) if it has reduce your fetch criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope these help&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 10:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800237#M343590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T10:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800238#M343591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can try to fetch data using the variation in SELECT statement as to fetch x records. Please check the SE36 transactions related to LDB's you would get an idea how SAP tries to get the particular data. Infact, you can check if there is any LDB available for table VBRK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 10:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800238#M343591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T10:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800239#M343592</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;1. Remove INTO CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;2. if the records are being repeated in first table i.e while using for all entries,   remove duplicate entries from the itab and move them into third internal table&lt;/P&gt;&lt;P&gt;3. sort the itab and go for binary search based on the sorted field&lt;/P&gt;&lt;P&gt;4. check the internal table before going for the  for all entries &lt;/P&gt;&lt;P&gt;5. try to use Join condition if ther tables are small and having more no of key relationship&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 10:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800239#M343592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T10:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800240#M343593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert , &lt;/P&gt;&lt;P&gt;Please try doing the following &lt;/P&gt;&lt;P&gt;1. Do not user INTO CORRESPONDING FIELDS  , define the table in such a way that the sequence of the fields are same as that in table and use into table.&lt;/P&gt;&lt;P&gt;2. Please check if itn_casees has value or not , if it is balnk then it will seelct all the records in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 10:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800240#M343593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T10:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800241#M343594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beside avoiding 'corresponding fields' (which might make the data transfer faster): check your index. The index VBRK~N is delivered by SAP, but on our system it's not created on database. Meaning: it's defined, but not used. It should be activated, but please check, if everything is OK with the index. Second question: is the index used? Make a short SQL-trace (I think you need the starting, but you don't need to wait for the end of the select) and have a look, if the index is used. In case it isn't used, a missing / old statistic might be the reason. This can be updated with DB20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 11:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800241#M343594</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-12-20T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800242#M343595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have to have the database statistics rebuilt as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800242#M343595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T15:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800243#M343596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. if possible(if your selection fields and internal table fields are same count)&lt;/P&gt;&lt;P&gt;    you can remove move-corresponding and use into table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.you can use "package size"&lt;/P&gt;&lt;P&gt;   (if selection fields and internal table fields are same.)&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;ishfalnr&lt;/P&gt;&lt;P&gt;ishfalrn&lt;/P&gt;&lt;P&gt;fkdat&lt;/P&gt;&lt;P&gt;ishlfdbew&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;FROM vbrk&lt;/P&gt;&lt;P&gt;package size '30000'&lt;/P&gt;&lt;P&gt;appending  FIELDS OF TABLE itn_vbrk&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN itn_cases&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;isheinri = p_einri&lt;/P&gt;&lt;P&gt;AND ishfalnr = itn_cases-falnr&lt;/P&gt;&lt;P&gt;AND sfakn EQ SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. mark for useful .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 04:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800243#M343596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T04:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800244#M343597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use OPEN CURSOR for improving the performance. Define a packgae size recommended 500 or 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR WITH HOLD db_cursor FOR&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;ishfalnr&lt;/P&gt;&lt;P&gt;ishfalrn&lt;/P&gt;&lt;P&gt;fkdat&lt;/P&gt;&lt;P&gt;ishlfdbew&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;FROM vbrk&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN itn_cases&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;isheinri = p_einri&lt;/P&gt;&lt;P&gt;AND ishfalnr = itn_cases-falnr&lt;/P&gt;&lt;P&gt;AND sfakn EQ SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR db_cursor&lt;/P&gt;&lt;P&gt;            INTO CORRESPONDING FIELDS OF TABLE itn_vbrk&lt;/P&gt;&lt;P&gt;            PACKAGE SIZE g_package_size.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        CLOSE CURSOR db_cursor.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      {&lt;/P&gt;&lt;P&gt;         have your processing block here&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;   ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would definitely improve the performance. If it helps do reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1800244#M343597</guid>
      <dc:creator>Sathish</dc:creator>
      <dc:date>2006-12-21T06:57:30Z</dc:date>
    </item>
  </channel>
</rss>

