<?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 Values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065165#M93016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anandha,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Problem is in the JOIN condition. Post ur JOIN condition for more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2005 10:44:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-24T10:44:46Z</dc:date>
    <item>
      <title>Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065161#M93012</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;i have a view which gives me duplicate values, is there any way to avoid this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using programmatically, u can specify distinct, but how do u do the same in view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 10:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065161#M93012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T10:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065162#M93013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ananda,&lt;/P&gt;&lt;P&gt;   I think you must define your join conditions in such a way that there will be no duplicates, if the view has bee created by you. All the key fields of atleast one table must be included in the join conditon.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 10:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065162#M93013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065163#M93014</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;There should be a key which identifies duplicates while updating through view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 10:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065163#M93014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T10:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065164#M93015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Is the view is custome view, then in the table joins&lt;/P&gt;&lt;P&gt;  pass all the keys.It will feth unique records from the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly Award points if it is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 10:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065164#M93015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065165#M93016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anandha,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Problem is in the JOIN condition. Post ur JOIN condition for more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 10:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065165#M93016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065166#M93017</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;Let me explain u in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have three tables kna1,knb1 and bsid.&lt;/P&gt;&lt;P&gt;1. The end user would give me the company code and i need to fetch all customer numbers based on company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg., SG which satisfies 30 customer numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I need to pass all 30 customer numbers into table kna1 where it fetches related names,address,postal code etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now comes the third part where the customer number will be passed to table BSID to check whether any open items exist or not. If open items exist, then i need to display only those customer numbers with address postal code.&lt;/P&gt;&lt;P&gt;4.  Problem is i am getting duplicate vales cos same customer might have many open items.&lt;/P&gt;&lt;P&gt;4. These can be easily done thru programmatically.&lt;/P&gt;&lt;P&gt;but how do u implement in view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key areas are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kna1 - KUnnr&lt;/P&gt;&lt;P&gt;knb1 - kunnr and bukrs&lt;/P&gt;&lt;P&gt;bsid - kunnr and bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 11:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065166#M93017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T11:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065167#M93018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I think you have two other posts for the same (I could not find them now though).&lt;/P&gt;&lt;P&gt;  Any way, you have to implement this using search help exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Take a look at the following link which explains search help exits,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also take a look at fm F4IF_SHLP_EXIT_EXAMPLE,&lt;/P&gt;&lt;P&gt;you have to filter out the duplicate entries during 'DISP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On another note, see whether you can avoid reading BSID (it is a huge table normally) to determine whether customer has open items. I think if SKFOR in KNKK is not empty that means customer has open items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: You can get credit control area KKBER for a company code from T001 and then use it for selecting from KNKK.&lt;/P&gt;&lt;P&gt;This way you will have atmost one record.&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;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 11:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065167#M93018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T11:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065168#M93019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shrikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to eliminate duplicate entries using function module.  I mean how would i get the final internal table or some sort to link it to view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of program, it is easily done,. buyt through this function module, please help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 12:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065168#M93019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065169#M93020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You will get the entries in table RECORD_TAB. But the table will not be of your structure so first you have to move the table into another table which you define with your output fields and then use a DELETE ADJACENT DUPLICATES statement and then overwrite RECORD_TAB again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Let us say you have KUNNR and NAME1 on the display then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***First declare a table in your exit fm as,&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_display OCCURS 0,&lt;/P&gt;&lt;P&gt;        kunnr LIKE kna1-kunnr,&lt;/P&gt;&lt;P&gt;        name1 LIKE kna1-name1,&lt;/P&gt;&lt;P&gt;      END OF t_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Then here&lt;/P&gt;&lt;P&gt;  IF CALLCONTROL-STEP = 'DISP'.&lt;/P&gt;&lt;P&gt;    LOOP AT record_tab.&lt;/P&gt;&lt;P&gt;      t_display = record_tab.&lt;/P&gt;&lt;P&gt;      APPEND t_display.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;SORT t_display BY kunnr.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM t_display COMPARING kunnr.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    REFRESH record_tab.&lt;/P&gt;&lt;P&gt;    LOOP AT t_display.&lt;/P&gt;&lt;P&gt;      record_tab = t_display.&lt;/P&gt;&lt;P&gt;      APPEND record_tab.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;Remember RECORD_TAB is just a sequence of characters and your t_display should exactly reflect all the fields on display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 13:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-values/m-p/1065169#M93020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T13:18:21Z</dc:date>
    </item>
  </channel>
</rss>

