<?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: duplicate records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003922#M1495661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can sort those fields and in that way it will only show the content in the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use structure of type slis_t_sortinfo_alv and when calling the FM use that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 data : s_sort   TYPE slis_t_sortinfo_alv.

  l_sort-spos = 1.
  l_sort-fieldname = 'PERNR'.
  l_sort-up = 'X'.
  APPEND l_sort TO s_sort.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = sy-cprog
      i_callback_pf_status_set = 'ALV_ST'
      i_callback_user_command  = 'USER_COMMAND'
      i_callback_top_of_page   = 'TOP_OF_PAGE'
      is_layout                = gs_layout
      it_fieldcat              = gt_fieldcat
      i_background_id          = 'ALV_BACKGROUND'
      it_sort                  = gs_sort
      i_save                   = 'A'
      is_variant               = gs_variant
      it_events                = gt_events
      it_event_exit            = ft_event_exit
    TABLES
      t_outtab                 = t_output[]
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jun 2010 13:06:57 GMT</pubDate>
    <dc:creator>PedroGuarita</dc:creator>
    <dc:date>2010-06-11T13:06:57Z</dc:date>
    <item>
      <title>duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003921#M1495660</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 had an requirement to develop an alv report and in the output it contains g/l account field it displays the same content 10 times repeatedly and the requirement is at first i had to display only one time and the remaining 9 times it has to display empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 12:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003921#M1495660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-11T12:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003922#M1495661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can sort those fields and in that way it will only show the content in the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use structure of type slis_t_sortinfo_alv and when calling the FM use that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 data : s_sort   TYPE slis_t_sortinfo_alv.

  l_sort-spos = 1.
  l_sort-fieldname = 'PERNR'.
  l_sort-up = 'X'.
  APPEND l_sort TO s_sort.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = sy-cprog
      i_callback_pf_status_set = 'ALV_ST'
      i_callback_user_command  = 'USER_COMMAND'
      i_callback_top_of_page   = 'TOP_OF_PAGE'
      is_layout                = gs_layout
      it_fieldcat              = gt_fieldcat
      i_background_id          = 'ALV_BACKGROUND'
      it_sort                  = gs_sort
      i_save                   = 'A'
      is_variant               = gs_variant
      it_events                = gt_events
      it_event_exit            = ft_event_exit
    TABLES
      t_outtab                 = t_output[]
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 13:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003922#M1495661</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-06-11T13:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003923#M1495662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The user should use a display variant to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 13:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003923#M1495662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-11T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003924#M1495663</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 can sort your internal table and then can delete the duplicate entries from it. If your business need requires you to insert empty rows then you can probably insert some empty rows in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 17:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003924#M1495663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-12T17:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003925#M1495664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why dont you use a hierarchical sequential alv ?&lt;/P&gt;&lt;P&gt;There are lot of examples in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Samantak - Inseritng duplicate lines will create problem when user clicks the sort button&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jun 2010 18:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/7003925#M1495664</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-06-13T18:02:01Z</dc:date>
    </item>
  </channel>
</rss>

