<?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 Store Numbers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166941#M459037</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 create an ABAP report displaying the  store numbers for the user which are duplicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen parameter can be 'Username'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from EDPAR into gt_edpar where kunnr = selection screen parameter.&lt;/P&gt;&lt;P&gt;sort gt_edpar by INPNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_edpar_temp[] = gt_edpar[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from gt_edpar comparing inpnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_edpar_temp into wa_edpar_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table gt_edpar into wa_edapr with key&lt;/P&gt;&lt;P&gt;                inpnr = wa_edpar_temp-inpnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_final-inpnr = wa_edapr-inpnr.&lt;/P&gt;&lt;P&gt;append wa_Final to gt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table gt_final will give you the records/store numbers that are duplicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seema Dakle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 15:57:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T15:57:43Z</dc:date>
    <item>
      <title>Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166936#M459032</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 to give the list of duplicate store numbers from EDPAR table, Store Num is INPNR. Please help me to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 21:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166936#M459032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166937#M459033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Veni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction se16 to display the data in this table and sort by INPNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 22:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166937#M459033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T22:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166938#M459034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into corresponding fields of t_edpar from edpar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort t_edpar by inpnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 23:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166938#M459034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T23:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166939#M459035</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;Thank you Dawn &amp;amp; Gabriel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went in to se16 and sorted on store num, but the table has 21,000 rows for single customer. The user wants only the list of duplicate store numbers, so I manually took all duplicate store numbers from SE16 values and copied in to Excel file and gave to user. Is there any way we can get the info of duplicate store numbers (by mistake entered twice or thrice by user).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 15:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166939#M459035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T15:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166940#M459036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it only once or many times?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afer the code i gave you you can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from t_edpar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get a list of all the rows on your table w/out duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then download the table to you pc...&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;Gabriel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Gabriel Fernando Pulido V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 15:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166940#M459036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T15:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166941#M459037</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 create an ABAP report displaying the  store numbers for the user which are duplicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen parameter can be 'Username'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from EDPAR into gt_edpar where kunnr = selection screen parameter.&lt;/P&gt;&lt;P&gt;sort gt_edpar by INPNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_edpar_temp[] = gt_edpar[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from gt_edpar comparing inpnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_edpar_temp into wa_edpar_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table gt_edpar into wa_edapr with key&lt;/P&gt;&lt;P&gt;                inpnr = wa_edpar_temp-inpnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_final-inpnr = wa_edapr-inpnr.&lt;/P&gt;&lt;P&gt;append wa_Final to gt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table gt_final will give you the records/store numbers that are duplicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seema Dakle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 15:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166941#M459037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166942#M459038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is displaying all store numbers, instead of duplicate store numbers. I am attaching the program. Please look at it once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appritiate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZSD_ADDCHG NO STANDARD PAGE HEADING
       LINE-SIZE 132
       LINE-COUNT 60.

TABLES: EDPAR.

TYPES: BEGIN OF type_final,
         KUNNR LIKE EDPAR-KUNNR,   "Customer Number
         INPNR LIKE EDPAR-INPNR.   "Store Number
TYPES: END OF type_final.

TYPES: BEGIN OF TYPE_EDPAR.
        INCLUDE STRUCTURE EDPAR.
TYPES: END OF TYPE_EDPAR.

* Internal tables

DATA: gt_edpar TYPE STANDARD TABLE OF type_edpar,
      gt_edpar_temp TYPE STANDARD TABLE OF type_edpar,
      gt_final TYPE STANDARD TABLE OF type_final.

* Work areas

DATA: wa_edpar_temp TYPE type_edpar,
      wa_edapr TYPE type_edpar,
      wa_final TYPE type_final.

* Selection Screen

SELECTION-SCREEN BEGIN OF BLOCK one WITH FRAME TITLE text-001.

PARAMETERS: p_kunnr LIKE edpar-kunnr OBLIGATORY.

SELECTION-SCREEN END OF BLOCK one.

select * from EDPAR into table gt_edpar where kunnr = p_kunnr.
sort gt_edpar by INPNR.

gt_edpar_temp[] = gt_edpar[].

delete adjacent duplicates from gt_edpar comparing inpnr.

loop at gt_edpar_temp into wa_edpar_temp.

  read table gt_edpar into wa_edapr with key
  inpnr = wa_edpar_temp-inpnr.

  if sy-subrc = 0.
    wa_final-inpnr = wa_edapr-inpnr.
    append wa_Final to gt_final.
  endif.
  clear: wa_final.
endloop.

FORMAT COLOR 1.
ULINE.
WRITE:/1 'DUPLICATE STORE NUMBERS FOR'.
WRITE:30 p_kunnr.
ULINE.
WRITE:/1 'Store Number'.
ULINE.
LOOP AT gt_final INTO wa_final.
  FORMAT COLOR 2.
  WRITE:/1 wa_final-inpnr.
ENDLOOP.
FORMAT COLOR OFF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 17:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166942#M459038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T17:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166943#M459039</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;Can some one please correct me, if I am doing something wrong. It is giving me all store numbers instead of duplicate store numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 14:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166943#M459039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T14:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166944#M459040</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;Can some one please guide me on getting the duplicate store numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 21:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166944#M459040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T21:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166945#M459041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zsd_addchg NO STANDARD PAGE HEADING
       LINE-SIZE 132
       LINE-COUNT 60.

TABLES: edpar.

TYPES: BEGIN OF type_final,
         kunnr LIKE edpar-kunnr,   "Customer Number
         inpnr LIKE edpar-inpnr,   "Store Number
         count TYPE i.
TYPES: END OF type_final.

TYPES: BEGIN OF type_edpar.
        INCLUDE STRUCTURE edpar.
TYPES: END OF type_edpar.

* Internal tables

DATA: gt_edpar TYPE STANDARD TABLE OF type_edpar,
      gt_final TYPE STANDARD TABLE OF type_final.

* Work areas

DATA: wa_edapr TYPE type_edpar,
      wa_final TYPE type_final.

* Selection Screen

SELECTION-SCREEN BEGIN OF BLOCK one WITH FRAME TITLE text-001.

PARAMETERS: p_kunnr LIKE edpar-kunnr OBLIGATORY.

SELECTION-SCREEN END OF BLOCK one.

SELECT * FROM edpar
         INTO TABLE gt_edpar
        WHERE kunnr = p_kunnr.

LOOP AT gt_edpar INTO wa_edapr.
  wa_final-kunnr = p_kunnr.
  wa_final-inpnr = wa_edapr-inpnr.
  wa_final-count = 1.
  COLLECT wa_final INTO gt_final.
  CLEAR: wa_final.
ENDLOOP.

DELETE gt_final WHERE count LE 1.
FORMAT COLOR 1.
ULINE.
WRITE:/1 'DUPLICATE STORE NUMBERS FOR'.
WRITE:30 p_kunnr.
ULINE.
WRITE:/1 'Store Number'.
ULINE.
LOOP AT gt_final INTO wa_final.
  FORMAT COLOR 2.
  WRITE:/1 wa_final-inpnr.
ENDLOOP.
FORMAT COLOR OFF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 22:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166945#M459041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T22:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Store Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166946#M459042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Srinivas. It is givining me only duplicate store info now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appritiate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 17:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-store-numbers/m-p/2166946#M459042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T17:38:31Z</dc:date>
    </item>
  </channel>
</rss>

