<?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 About material sort  programn in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-material-sort-programn/m-p/2460371#M551952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;    i want material sort logic in follwing code  by materail description in that also i want to sort those materail which having same material description so if i give perticular number range from that number range  i want to sort only one materail which having exact same discription other same discription should not sorted through that report, i got one yesterday which is given as follows  so what  changes i need to do in following code reward for  useful answer send me solution on following mail id &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mail id "talele.rahul@gmail.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the code i am using is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report z_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_matnr for makt-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_makt type table of makt with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table t_makt&lt;/P&gt;&lt;P&gt; from makt&lt;/P&gt;&lt;P&gt;  where matnr in s_matnr&lt;/P&gt;&lt;P&gt;    and spras eq sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort t_makt by MAKTG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_makt.&lt;/P&gt;&lt;P&gt; write: / t_makt-matnr,&lt;/P&gt;&lt;P&gt;          t_makt-maktx.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx in advance&lt;/P&gt;&lt;P&gt;Rahul Talele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 06:18:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-03T06:18:17Z</dc:date>
    <item>
      <title>About material sort  programn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-material-sort-programn/m-p/2460371#M551952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;    i want material sort logic in follwing code  by materail description in that also i want to sort those materail which having same material description so if i give perticular number range from that number range  i want to sort only one materail which having exact same discription other same discription should not sorted through that report, i got one yesterday which is given as follows  so what  changes i need to do in following code reward for  useful answer send me solution on following mail id &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mail id "talele.rahul@gmail.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the code i am using is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report z_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_matnr for makt-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_makt type table of makt with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table t_makt&lt;/P&gt;&lt;P&gt; from makt&lt;/P&gt;&lt;P&gt;  where matnr in s_matnr&lt;/P&gt;&lt;P&gt;    and spras eq sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort t_makt by MAKTG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_makt.&lt;/P&gt;&lt;P&gt; write: / t_makt-matnr,&lt;/P&gt;&lt;P&gt;          t_makt-maktx.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx in advance&lt;/P&gt;&lt;P&gt;Rahul Talele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 06:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-material-sort-programn/m-p/2460371#M551952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T06:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: About material sort  programn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-material-sort-programn/m-p/2460372#M551953</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 hope I got you right. You want to select materials by a number range,&lt;/P&gt;&lt;P&gt;but then from all resulting materials you want to use only one entry for each description.&lt;/P&gt;&lt;P&gt;So if the result would be like 1234 hummer, 2345 hummer, 6789 hammer you would like to get a resulting table with only 1234 hummer, 6789 hammer.&lt;/P&gt;&lt;P&gt;Then try to add the code in bold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * into table t_makt
from makt
where matnr in s_matnr
and spras eq sy-langu.

sort t_makt by MAKTG.&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This command leaves only one entry of each material description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;delete adjacent duplicates from t_makt comparing maktx.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at t_makt.
write: / t_makt-matnr,
t_makt-maktx.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-material-sort-programn/m-p/2460372#M551953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:06:00Z</dc:date>
    </item>
  </channel>
</rss>

