<?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: Retrive data from mseg in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601612#M270104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it will be quicker if you get all the data and find the 'max' yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr mblnr from mseg into table phy_inv where matnr in s_matnr and xauto = ' ' and werks in s_werks &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort phy_inv by matnr mblnr descending.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from phy_inv  comparing matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 02:45:29 GMT</pubDate>
    <dc:creator>former_member186741</dc:creator>
    <dc:date>2006-09-27T02:45:29Z</dc:date>
    <item>
      <title>Retrive data from mseg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601609#M270101</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;I used the following code to retrieve the latest doc for each material from mseg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr max( mblnr ) from mseg into table phy_inv where matnr in s_matnr and xauto = ' ' and werks in s_werks group by matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The performance is too slow. can anyone suggest me to improve my performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 01:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601609#M270101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T01:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive data from mseg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601610#M270102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;types : begin of t_inv,&lt;/P&gt;&lt;P&gt;         mblnr type mseg-mblnr,&lt;/P&gt;&lt;P&gt;         matnr type mseg-matnr,&lt;/P&gt;&lt;P&gt;        end of t_inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : phy_inv type standard table of t_inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select max( mblnr ) &lt;/P&gt;&lt;P&gt;       matnr  &lt;/P&gt;&lt;P&gt;      from mseg &lt;/P&gt;&lt;P&gt;      into table phy_inv &lt;/P&gt;&lt;P&gt;      where xauto = ' '&lt;/P&gt;&lt;P&gt;        and matnr in s_matnr and  &lt;/P&gt;&lt;P&gt;            werks in s_werks &lt;/P&gt;&lt;P&gt;      group by matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of fields in the selection and in the where clause should be same as of the order in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : Please reward all helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 02:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601610#M270102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T02:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive data from mseg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601611#M270103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I get the performance problem when i give a range of materials in my selection.&lt;/P&gt;&lt;P&gt;for example: &lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;materials : a to k.&lt;/P&gt;&lt;P&gt;____________________________________________&lt;/P&gt;&lt;P&gt;if i leave it blank the performance is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send you suggestions,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 02:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601611#M270103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T02:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive data from mseg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601612#M270104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it will be quicker if you get all the data and find the 'max' yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr mblnr from mseg into table phy_inv where matnr in s_matnr and xauto = ' ' and werks in s_werks &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort phy_inv by matnr mblnr descending.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from phy_inv  comparing matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 02:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601612#M270104</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-09-27T02:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive data from mseg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601613#M270105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally data in MSEG is very huge, when you perform group by functionality it will take lot of time, so retrieve the data into internal table sort by material and material doument number(Descending) and delete the adjacent duplicates from internal 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, 27 Sep 2006 03:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrive-data-from-mseg/m-p/1601613#M270105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T03:19:26Z</dc:date>
    </item>
  </channel>
</rss>

