<?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 delete duplicate column values for in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290735#M499714</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;My internal table contains the fields as no and text.The no is repeted but the text changes. so   how to delete the no which is repeated again in the internal table.&lt;/P&gt;&lt;P&gt;for eg:&lt;/P&gt;&lt;P&gt;No       Text&lt;/P&gt;&lt;P&gt;1         Text1&lt;/P&gt;&lt;P&gt;1         Text2&lt;/P&gt;&lt;P&gt;2         Text3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to replace the second column No as ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Yogesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2007 13:08:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-29T13:08:56Z</dc:date>
    <item>
      <title>delete duplicate column values for</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290735#M499714</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;My internal table contains the fields as no and text.The no is repeted but the text changes. so   how to delete the no which is repeated again in the internal table.&lt;/P&gt;&lt;P&gt;for eg:&lt;/P&gt;&lt;P&gt;No       Text&lt;/P&gt;&lt;P&gt;1         Text1&lt;/P&gt;&lt;P&gt;1         Text2&lt;/P&gt;&lt;P&gt;2         Text3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to replace the second column No as ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Yogesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 13:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290735#M499714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T13:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicate column values for</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290736#M499715</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;You need to have another internal table containing the 'no' field alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at main_tab.&lt;/P&gt;&lt;P&gt;   read table ref_tab with key no = maintab-no.  "test for existence&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     clear: maintab-text.    if yes clear&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    reftab-no = maintab-no.   "if not append&lt;/P&gt;&lt;P&gt;    append reftab.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   modify maintab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;S. Chandra Mouli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 13:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290736#M499715</guid>
      <dc:creator>former_member784222</dc:creator>
      <dc:date>2007-05-29T13:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicate column values for</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290737#M499716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this out..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of typ_itab,
        no(2),
        text(5),
       end of typ_itab.
data: itab type table of typ_itab,
      rec_tab like line of itab,
      w_old(2).
rec_tab-no = 1.
rec_tab-text = 'test1'.
append rec_tab to itab.
rec_tab-no = 1.
rec_tab-text = 'test2'.
append rec_tab to itab.
rec_tab-no = 1.
rec_tab-text = 'test3'.
append rec_tab to itab.
rec_tab-no = 1.
rec_tab-text = 'test4'.
append rec_tab to itab.
loop at itab into rec_tab.
  w_old = rec_tab-no.
  if sy-tabix gt 1.
    if rec_tab-no = w_old.
      clear rec_tab-no.
      modify itab from rec_tab index sy-tabix.
    endif.
  endif.
endloop.
loop at itab into rec_tab.
  write: / rec_tab-no,rec_tab-text.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 13:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290737#M499716</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-05-29T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicate column values for</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290738#M499717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogeshwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA V_TABIX TYPE SY-TABIX.&lt;/P&gt;&lt;P&gt;DATA WA TYPE ITAB.&lt;/P&gt;&lt;P&gt;DATA V_FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY NO TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA.&lt;/P&gt;&lt;P&gt;V_TABIX = SY-TABIX.&lt;/P&gt;&lt;P&gt;AT NEW NO.&lt;/P&gt;&lt;P&gt;V_FLAG = 'X'.&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;IF V_FLAG = 'X'.&lt;/P&gt;&lt;P&gt;CLEAR WA-NO.&lt;/P&gt;&lt;P&gt;MODIFY ITAB FROM WA INDEX V_TABIX.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;AT ENDOF NO.&lt;/P&gt;&lt;P&gt;CLEAR V_FLAG.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;WRITE:/05 ITAB-NO , 25 ITAB-TEXT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 13:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-column-values-for/m-p/2290738#M499717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T13:39:08Z</dc:date>
    </item>
  </channel>
</rss>

