<?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: MSEG Performance Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147227#M453060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use below following Option to get good Performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use For all entries if possible&lt;/P&gt;&lt;P&gt;2. use Read Statement with binary search ,before this one use sort command.&lt;/P&gt;&lt;P&gt;3. use Secondary index in where condition if table created secondary index for MSEG.&lt;/P&gt;&lt;P&gt;use all where condition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is useful give me award points&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 16:11:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-23T16:11:38Z</dc:date>
    <item>
      <title>MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147221#M453054</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 to access data from MKPF &amp;amp; MSEG tables.&lt;/P&gt;&lt;P&gt;I first take the data from MKPF(give BUDAT in the where condition) in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i loop through that internal table and select data from MSEG. I am giving all the primary keys in the where clause for MSEG. It has to extract just 25 records, but when I see in SM50 it shows sequential read for MSEG, and also takes lot of time(more than 1200 secs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest me a sol...how do I fix this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Niyati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 05:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147221#M453054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T05:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147222#M453055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a  secondary index for MSEG and MKPF also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_mkpf[] is not initial.&lt;/P&gt;&lt;P&gt;select * from mseg into corresponding fields of imseg &lt;/P&gt;&lt;P&gt;for all entreis in i_mkpf&lt;/P&gt;&lt;P&gt;where mblnr = i_mkpf-mblnr&lt;/P&gt;&lt;P&gt;      mjahr = i_mkpf-mjahr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 05:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147222#M453055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T05:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147223#M453056</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;Select inside a LOOP-ENDLOOP can cause performance bottleneck.&lt;/P&gt;&lt;P&gt;try to use FOR ALL ENTRIES. delete the duplicate entries before that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort it_mkpf by mblnr mjahr.  " chk this
if i_mkpf[] is not initial.
 select mblnr mjahr zeile 
    into table it_mseg
    from mseg
    for all entries in it_mkpf
    where mblnr = it_mkpf-mblnr and
              mjahr = it_mkpf-mjahr.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 08:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147223#M453056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T08:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147224#M453057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;       use binary search with read statement.and create secondary indexes for mseg fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j.prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 13:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147224#M453057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T13:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147225#M453058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INSTEAD OF USING LOOP USE SELECT ..........FOR ALL ENTRIES STATEMENT .&lt;/P&gt;&lt;P&gt;EX.&lt;/P&gt;&lt;P&gt;SELECT  &amp;lt;SELECTION LIST&amp;gt;&lt;/P&gt;&lt;P&gt;  FROM  MSEG&lt;/P&gt;&lt;P&gt;    INTO  TABLE  I_MSEG&lt;/P&gt;&lt;P&gt;     FOR  ALL ENTRIES IN I_MKPF&lt;/P&gt;&lt;P&gt;WHERE MBLNR EQ I_MKPF-MBLNR&lt;/P&gt;&lt;P&gt;      AND BUDAT EQ I_MKPF-BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I THINK THIS WOULD SOLVE UR PROBLEM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2007 13:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147225#M453058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-21T13:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147226#M453059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;       Check this sap note for custom developments in MM module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;191492    Performance: Customer developments in MM/WM&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;K Vijayasekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 11:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147226#M453059</guid>
      <dc:creator>VijayasekarK</dc:creator>
      <dc:date>2007-04-23T11:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147227#M453060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use below following Option to get good Performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use For all entries if possible&lt;/P&gt;&lt;P&gt;2. use Read Statement with binary search ,before this one use sort command.&lt;/P&gt;&lt;P&gt;3. use Secondary index in where condition if table created secondary index for MSEG.&lt;/P&gt;&lt;P&gt;use all where condition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is useful give me award points&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 16:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147227#M453060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T16:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147228#M453061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this link.. this should help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Performance" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Performance&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 03:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147228#M453061</guid>
      <dc:creator>Sathish</dc:creator>
      <dc:date>2007-04-24T03:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: MSEG Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147229#M453062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akash ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Try to use the view WB2_V_MKPF_MSEG to get the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This will improve your performance .&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;  Praveen .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 11:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-performance-issue/m-p/2147229#M453062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T11:34:06Z</dc:date>
    </item>
  </channel>
</rss>

