<?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: how to avoid data repeated in report? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232545#M1010686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are most Welcome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 05:09:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T05:09:32Z</dc:date>
    <item>
      <title>how to avoid data repeated in report?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232539#M1010680</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;I'm working on a report that needed &lt;/P&gt;&lt;P&gt;plant, &lt;/P&gt;&lt;P&gt;new material code, &lt;/P&gt;&lt;P&gt;old material code, &lt;/P&gt;&lt;P&gt;material type, &lt;/P&gt;&lt;P&gt;special stock and &lt;/P&gt;&lt;P&gt;(material status ne '01')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select p~werks m~matnr m~bismt m~mtart s~sobkz
  into corresponding fields of table it_mat
  from ( ( MARC as p inner join MARA as m on p~matnr = m~matnr )
inner join MSEG as s on s~matnr = p~matnr )
  where m~matnr in p_mcode
  and m~bismt in p_ocode
  and m~mtart in p_mtype
  and p~werks in p_plant
  and m~matkl in p_mgroup
  and p~mmsta ne '01'
  and s~sobkz in p_spec
  order by m~matnr.
  APPEND it_mat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my select stament , &lt;/P&gt;&lt;P&gt;and it's output layout the material code are all repeating twice or 3-5 times for the same data. &lt;/P&gt;&lt;P&gt;Is there anyway to take out the repeated data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 01:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232539#M1010680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T01:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid data repeated in report?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232540#M1010681</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;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ORDER BY &amp;lt;field&amp;gt; ASCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM it_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will delete all duplicates &amp;amp; repeated data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 02:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232540#M1010681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T02:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid data repeated in report?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232541#M1010682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add werks also in JOIN on MSEG. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select p~werks m~matnr m~bismt m~mtart s~sobkz
  into corresponding fields of table it_mat
  from ( ( MARC as p inner join MARA as m on p~matnr = m~matnr )
inner join MSEG as s on s~matnr = p~matnr  and
                                     s~werks = p~werks
)
  where m~matnr in p_mcode
  and m~bismt in p_ocode
  and m~mtart in p_mtype
  and p~werks in p_plant
  and m~matkl in p_mgroup
  and p~mmsta ne '01'
  and s~sobkz in p_spec
  order by m~matnr.
  APPEND it_mat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 02:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232541#M1010682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T02:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid data repeated in report?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232542#M1010683</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;Use ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select p&lt;SUB&gt;werks m&lt;/SUB&gt;matnr m&lt;SUB&gt;bismt m&lt;/SUB&gt;mtart s~sobkz&lt;/P&gt;&lt;P&gt;  into corresponding fields of table it_mat&lt;/P&gt;&lt;P&gt;  from ( ( MARC as p inner join MARA as m on p&lt;SUB&gt;matnr = m&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;inner join MSEG as s on s&lt;SUB&gt;matnr = p&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;  where m~matnr in p_mcode&lt;/P&gt;&lt;P&gt;  and m~bismt in p_ocode&lt;/P&gt;&lt;P&gt;  and m~mtart in p_mtype&lt;/P&gt;&lt;P&gt;  and p~werks in p_plant&lt;/P&gt;&lt;P&gt;  and m~matkl in p_mgroup&lt;/P&gt;&lt;P&gt;  and p~mmsta ne '01'&lt;/P&gt;&lt;P&gt;  and s~sobkz in p_spec&lt;/P&gt;&lt;P&gt;  order by m~matnr  ASCENDING.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM it_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND it_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will delete all duplicates &amp;amp; repeated data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 02:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232542#M1010683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T02:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid data repeated in report?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232543#M1010684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Milka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER BY m~matnr ASCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM it_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 03:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232543#M1010684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T03:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid data repeated in report?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232544#M1010685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much, it's solve ^.* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to vijay and chandra too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've rewards marks to you ya. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lots !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 03:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232544#M1010685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T03:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid data repeated in report?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232545#M1010686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are most Welcome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 05:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-data-repeated-in-report/m-p/4232545#M1010686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T05:09:32Z</dc:date>
    </item>
  </channel>
</rss>

