<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2928497#M690026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One quick suggestion - with your database selects, try to include a lot more of the primary key otherwise performace will suffer e.g. with S032 see if you can provide values for SSOUR, VRSIO, and LGORT (and have your "where" in the order of the primaty key - it sometimes helps).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. also with the "shift left", I suggest you use the CONVERSION_EXIT_MATN1_INPUT function to ensure you get the correct format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 01:03:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T01:03:59Z</dc:date>
    <item>
      <title>performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2928496#M690025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;This is a piece of code . can anyone suggest me how to increase the performance . , &lt;/P&gt;&lt;P&gt;tx &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT WERTETAB .&lt;/P&gt;&lt;P&gt;        CLEAR : FLAG , FLAG1 .&lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING WERTETAB TO IT_FINAL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SHIFT IT_FINAL-MATNR LEFT DELETING LEADING  '0' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IT_FINAL-SLEVEL = WERTETAB-AKT_MENGE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****For stock level&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Select single lbkum into IT_FINAL-SLEVEL from mbew&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           where matnr = wertetab-matnr and bwkey = wertetab-werks .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;***For Total stock value&lt;/P&gt;&lt;P&gt;        SELECT SUM( WBWBEST ) INTO IT_FINAL-SVALUE FROM S032&lt;/P&gt;&lt;P&gt;                                                    WHERE MATNR EQ&lt;/P&gt;&lt;P&gt;                                                    WERTETAB-MATNR&lt;/P&gt;&lt;P&gt;                                                    AND   WERKS EQ&lt;/P&gt;&lt;P&gt;                                                    WERTETAB-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****For Total No of Usages&lt;/P&gt;&lt;P&gt;        SELECT SUM( AGVBR ) FROM S033 INTO IT_FINAL-AGVBR&lt;/P&gt;&lt;P&gt;         WHERE MATNR EQ WERTETAB-MATNR&lt;/P&gt;&lt;P&gt;         AND   WERKS EQ  WERTETAB-WERKS&lt;/P&gt;&lt;P&gt;         AND    SPTAG IN S_DATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        LOOP AT   MSEG101 WHERE MATNR = WERTETAB-MATNR&lt;/P&gt;&lt;P&gt;                             AND   WERKS = WERTETAB-WERKS .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         IT_FINAL-BWART  =  MSEG101-BWART .&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         IT_FINAL-LGORT  =  MSEG101-LGORT .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IT_FINAL-LRDATE = MSEG101-BUDAT.&lt;/P&gt;&lt;P&gt;          IT_FINAL-LRQTY  = MSEG101-MENGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM REQ_USG .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         APPEND IT_FINAL .&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         CLEAR : IT_FINAL-LRDATE , IT_FINAL-LRQTY, IT_FINAL-AFNAM ,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         it_final-agvbr, IT_FINAL-BWART , IT_FINAL-LGORT,MSEG101 .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          EXIT .&lt;/P&gt;&lt;P&gt;        ENDLOOP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        LOOP AT    MSEG201 WHERE MATNR = WERTETAB-MATNR&lt;/P&gt;&lt;P&gt;                                   AND   WERKS = WERTETAB-WERKS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*clear : IT_FINAL-SLEVEL , IT_FINAL-SVALUE.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        IT_FINAL-BWART = MSEG201-BWART .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         IT_FINAL-LGORT  = MSEG201-LGORT .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IT_FINAL-LIDATE = MSEG201-BUDAT.&lt;/P&gt;&lt;P&gt;          IT_FINAL-LIQTY  = MSEG201-MENGE .&lt;/P&gt;&lt;P&gt;          IF FLAG NE 'X' .&lt;/P&gt;&lt;P&gt;            PERFORM REQ_USG1 .&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         APPEND IT_FINAL .&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         CLEAR : IT_FINAL-LIDATE , IT_FINAL-LIQTY,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 IT_FINAL-AFNAM , it_final-agvbr,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*IT_FINAL-BWART,IT_FINAL-LGORT ,MSEG201.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          EXIT .&lt;/P&gt;&lt;P&gt;        ENDLOOP .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 08:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2928496#M690025</guid>
      <dc:creator>raj_sahay</dc:creator>
      <dc:date>2007-10-17T08:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2928497#M690026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One quick suggestion - with your database selects, try to include a lot more of the primary key otherwise performace will suffer e.g. with S032 see if you can provide values for SSOUR, VRSIO, and LGORT (and have your "where" in the order of the primaty key - it sometimes helps).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. also with the "shift left", I suggest you use the CONVERSION_EXIT_MATN1_INPUT function to ensure you get the correct format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 01:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2928497#M690026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T01:03:59Z</dc:date>
    </item>
  </channel>
</rss>

