<?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] Select from MSEG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579181#M589666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;store all the vbeln to ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges:r_vbeln for i_likp-vbeln.&lt;/P&gt;&lt;P&gt;r_vbeln-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_vbeln-sign = 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_likp.&lt;/P&gt;&lt;P&gt;r_vbeln-low = i_likp-vbeln.&lt;/P&gt;&lt;P&gt;append r_vbeln.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort r_vbeln ascending&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from r_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then modify the fetch as below.&lt;/P&gt;&lt;P&gt;donot use a loop to fetch data from mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT mblnr mjahr zeile bwart matnr werks lgort charg shkzg menge ummat lgpla&lt;/P&gt;&lt;P&gt;FROM mseg client specified INTO CORRESPONDING FIELDS OF TABLE i_mseg2&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_likp&lt;/P&gt;&lt;P&gt;where mandt = sy-mandt&lt;/P&gt;&lt;P&gt;and (bwart = '601' or bwart = '602' or bwart = '653' or bwart = '654' )&lt;/P&gt;&lt;P&gt;AND matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND werks IN s_werks&lt;/P&gt;&lt;P&gt;AND lgort IN s_sloc&lt;/P&gt;&lt;P&gt;AND lgpla in r_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is another table where u can get this data...i,ll let u know shortly...&lt;/P&gt;&lt;P&gt;try with this if useful&lt;/P&gt;&lt;P&gt;reward points....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 06:14:38 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2007-07-25T06:14:38Z</dc:date>
    <item>
      <title>[Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579177#M589662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help on how to improve the performance in the select from MSEG, it takes about 30 minutes to just finish the select. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT mblnr&lt;/P&gt;&lt;P&gt;           mjahr&lt;/P&gt;&lt;P&gt;           zeile&lt;/P&gt;&lt;P&gt;           bwart&lt;/P&gt;&lt;P&gt;           matnr&lt;/P&gt;&lt;P&gt;           werks&lt;/P&gt;&lt;P&gt;           lgort&lt;/P&gt;&lt;P&gt;           charg&lt;/P&gt;&lt;P&gt;           shkzg&lt;/P&gt;&lt;P&gt;           menge&lt;/P&gt;&lt;P&gt;           ummat&lt;/P&gt;&lt;P&gt;           lgpla&lt;/P&gt;&lt;P&gt;      FROM mseg&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE i_mseg2&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN i_likp&lt;/P&gt;&lt;P&gt;      WHERE bwart IN ('601','602','653','654')&lt;/P&gt;&lt;P&gt;       AND matnr IN s_matnr&lt;/P&gt;&lt;P&gt;       AND werks IN s_werks&lt;/P&gt;&lt;P&gt;       AND lgort IN s_sloc&lt;/P&gt;&lt;P&gt;       AND lgpla EQ i_likp-vbeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579177#M589662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579178#M589663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to avoid corrosponding field command.you will get the difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579178#M589663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579179#M589664</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;an important field for MSEG is the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MJAHR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should put it in your select. In best case use it only with 1 year and not as an intervall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579179#M589664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: [Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579180#M589665</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;Try to include all the key fields in ur selection criteria for this query.&lt;/P&gt;&lt;P&gt;The primary key fields of MSEG table is MBLNR, MJAHR, ZEILE.&lt;/P&gt;&lt;P&gt;But none of the key fields or included in ur where condition. This will definitely impact in performance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579180#M589665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: [Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579181#M589666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;store all the vbeln to ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges:r_vbeln for i_likp-vbeln.&lt;/P&gt;&lt;P&gt;r_vbeln-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_vbeln-sign = 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_likp.&lt;/P&gt;&lt;P&gt;r_vbeln-low = i_likp-vbeln.&lt;/P&gt;&lt;P&gt;append r_vbeln.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort r_vbeln ascending&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from r_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then modify the fetch as below.&lt;/P&gt;&lt;P&gt;donot use a loop to fetch data from mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT mblnr mjahr zeile bwart matnr werks lgort charg shkzg menge ummat lgpla&lt;/P&gt;&lt;P&gt;FROM mseg client specified INTO CORRESPONDING FIELDS OF TABLE i_mseg2&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_likp&lt;/P&gt;&lt;P&gt;where mandt = sy-mandt&lt;/P&gt;&lt;P&gt;and (bwart = '601' or bwart = '602' or bwart = '653' or bwart = '654' )&lt;/P&gt;&lt;P&gt;AND matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND werks IN s_werks&lt;/P&gt;&lt;P&gt;AND lgort IN s_sloc&lt;/P&gt;&lt;P&gt;AND lgpla in r_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is another table where u can get this data...i,ll let u know shortly...&lt;/P&gt;&lt;P&gt;try with this if useful&lt;/P&gt;&lt;P&gt;reward points....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579181#M589666</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-07-25T06:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: [Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579182#M589667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, remove the for all entries from u r query and apply this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579182#M589667</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-07-25T06:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: [Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579183#M589668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if any where u can apply the date range it will be useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get the mblnr from mkpf for the date range and pass in mseg fetch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579183#M589668</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-07-25T06:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: [Performance Issue] Select from MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579184#M589669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is one more table where u can get related data of mseg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S225&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check it.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from there u can get the data related to mseg and its fast&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-from-mseg/m-p/2579184#M589669</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-07-25T06:26:04Z</dc:date>
    </item>
  </channel>
</rss>

