<?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: problem with mseg table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697992#M890374</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 use MBLNR and MJAHR in your select statement, then only you can improve the performance of the report. Even if you use secondary index also you will not achive the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 13:05:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T13:05:15Z</dc:date>
    <item>
      <title>problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697989#M890371</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 am fetching data from &lt;STRONG&gt;MSEG table&lt;/STRONG&gt; but it takes more time to retrive data..... &lt;STRONG&gt;I have tried with secondary indexes also&lt;/STRONG&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the performance of the program has not improved...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am selecting with non-keyfields only ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF NOT i_mara[] IS INITIAL.&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;           shkzg                       &lt;/P&gt;&lt;P&gt;           dmbtr                       &lt;/P&gt;&lt;P&gt;           menge          &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_mara&lt;/P&gt;&lt;P&gt;     WHERE matnr EQ i_mara-matnr&lt;/P&gt;&lt;P&gt;       AND werks EQ p_werks&lt;/P&gt;&lt;P&gt;       AND lgort IN r_lgort&lt;/P&gt;&lt;P&gt;       AND bwart IN r_bwart.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sy-subrc check not required&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      STOP.&lt;/P&gt;&lt;P&gt;    ENDIF.                            &lt;/P&gt;&lt;P&gt;  ENDIF.                     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my select statment with this only i have to select i have &lt;STRONG&gt;not other option this is my requirement.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one guide me to improve my pgm  performenace..          i have tried with all possible tables.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 12:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697989#M890371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697990#M890372</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; Please check out if the order of the fields in where condition is same as that of the order of secondary index. If possible run the report in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 12:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697990#M890372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697991#M890373</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;The order of fields are correct, it is working in background &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it takes more than 0ne hour to execute client dont want this performance......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 12:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697991#M890373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T12:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697992#M890374</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 use MBLNR and MJAHR in your select statement, then only you can improve the performance of the report. Even if you use secondary index also you will not achive the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697992#M890374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697993#M890375</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;My requirements is as such i donot have any options I have to go with this where clause only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697993#M890375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697994#M890376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may not be achieved whatever options is used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 06:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697994#M890376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T06:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697995#M890377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a RANGE for the key fields and use them in SELECT query. It will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: r_mblnr TYPE RANGE OF mseg-mblnr,
 r_mjahr TYPE RANGE OF mseg-mjahr,
 r_zeile TYPE RANGE OF mseg-zeile.

SELECT 
mblnr
mjahr
zeile
bwart
matnr
werks
shkzg
dmbtr
menge
FROM mseg
INTO TABLE i_mseg
FOR ALL ENTRIES IN i_mara
WHERE matnr EQ i_mara-matnr

AND mblnr IN r_mblnr
AND mjahr IN r_mjahr
AND zeile IN r_zeile

AND werks EQ p_werks
AND lgort IN r_lgort
AND bwart IN r_bwart.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 06:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697995#M890377</guid>
      <dc:creator>asik_shameem</dc:creator>
      <dc:date>2008-04-23T06:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697996#M890378</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;Am getting the same problem with MSEG table (Performance issue). Can you please tell me how to solve the. Code will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 13:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697996#M890378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697997#M890379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Banu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tired with the same problem, if you got the solution please update me to my business card id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 13:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697997#M890379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T13:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with mseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697998#M890380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nelsonDOTrodrigoATloadstarlkDOTcom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 13:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mseg-table/m-p/3697998#M890380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T13:12:26Z</dc:date>
    </item>
  </channel>
</rss>

