Duplicate in material no

Dear Experts,
We have taken restart of MDM server. Now when we are trying to upload the repository for material it is giving error u201Ccannot set unique constrain on material no because duplicate record existu201D. We remove this condition from console temporarily to find out duplicate record in MDM. We checked duplicate by matching record u2018All vs Allu2019, it has not given any duplicate but still error remains the same.
We only want to UP the repository with unique constrain on material no. Kindly help to find out duplicate in material no in  master data manager.
Regards,
Gaurang

Hi Gaurang,
I am detailing the steps from note below and also including my comments in bold:
As the report mentions, Verify->Repair will automatically perform the following:
1. Remove the Unique field so that repository can be loaded.
2. Add a new integer field and populate numbers for the duplicate records only. All records with same number are duplicates for the same value.
The addition of a integer field is automatic and it creates a duplicate label for duplicate records,it is populated for duplicated records,only for helping you delete those records with problem
The user should perform the following:
These are the steps you have to do:
1. Load the repository (Update indices option).
2. Inspect the duplicate values in the table with Data Manager with the help of new field
3. Fix the duplicate problem by removing the duplicated records.
4. Unload the repository
5. Remove the new field and add back the unique constraint.This new field is the duplicate label field created automatically,delete that.
6. Load the repository with Update Indices option.
This sums it up,dont forget to take backup before you do a repair.
Hope it helps.
Thanks,
Ravi

Similar Messages

  • Duplicates in material master

    hello experts
    what does it mean by identification of duplicates in material master and how its done?
    whether its applicable for all master records?
    regards

    Hi,
    The safety time / actual range of coverage ensures that the planned warehouse stock covers the requirements of a defined number of days. It therefore serves as a time float and thus works alongside the safety stock, which acts as quantity float.
    The system simulates bringing the requirements forward by the specified number of days and the planning for the receipts, created for these requirements in the planning run, is also brought forward by this number of days.
    Prerequisites
    ·   You have set the Safety Time indicator in the material master record (MRP 2 View) to define whether the safety time is only to apply to independent requirements or to all requirements.
    ·    In the material master record (MRP 2 View), in the Safety Time/Actual Range of Coverage field, you have entered the number of workdays by which the requirements are to be brought forward.
    ·    If, in addition to this actual range of coverage, you also want to define a different number of workdays in certain periods or a safety time less than one day then, in Customizing for MRP in the activity Define Period Profile for Safety Time/Actual Range of Coverage you can define a period profile and assign it to the material in the material master record.
    Regards,
    Vijay

  • Checking duplicate description material

    Hi,
    Please help me to do checking duplicate description material when create material in MM01. It is possible or not. What setting i can do in the system.
    Thank you.

    Hi,
    Check with Enhancement: MGA00001, User exit: EXIT_SAPLMGMU_001 for control.
    Also can be checked BADI_MATERIAL_CHECK
    Have concept of  new material creation with  validation & do  ABAP works necessary.
    More check link:
    Material Master
    Regards,
    Biju K

  • Duplicates in Materialized view

    Hi,
    I have created a materialized view in Database B from 5 tables in DATABASE A. Each table has millions of records. The query for materialized view joins all these 5 tables and gets the data. If I do complete refresh it takes upto 4 hours. I want this materialized view refreshed every 3 hrs since that table will be used very often. So I decided to do fast refresh every 3 hrs. But when I created the materialized view first time there are no duplicates since it was a complete refresh. But after that each time the fast refresh happens I see different number of duplicates in the materialized view. Very rarely one or two times there is no duplicate. Why is this happens. If I add Unique index then there is an error message stating "Unique constraint Violated" (this is since the existing records are being inserted again instead of updated).
    Any help is appreciated.
    Thanks...

    Yes. I have the materialized view logs for all the 5 tables in the remote database. First time when I created the materialized view it took around 4 hrs and there were no duplicates. I am doing the fast refresh every 6 hrs. After each fast refresh there are different number of duplicates. I don't have access to get the explain_mview to see the capabilities. I requested my DBAdmin to get that. In the meantime, if you have any other thoughts please let me know. I suspect whether the materialized view logs are not working as expected. But not sure.

  • Import multiple info records for 1 material item in repository

    Hi Guys,
    I have got sort of a puzzle I can not solve at the moment, maybe some one can help me to solve it. The situation in our system landscape is as follows:
    Systems:
    SRM 5.0 (Classic implementation scenario)
    ECC 6.0
    SRM-MDM 2.0
    PI 2005
    Material master is maintained in R/3 and the materials are replicated to SRM. From SRM we replicate all materials to the catalog repository in SRM-MDM.
    As the material master in R/3 is vendor independent, the materials replicated to SRM also have no vendor attached. For the first initial material replication from SRM to the catalog SRM-MDM this also means that the products in the main table of the repository, u2018catalog positionsu2019, will not have a vendor or vendor number attached (i.e. no reference to a source of supply).
    To assign a source of supply in the repository to a product (record) we will use info records which are replicated from R/3 to SRM-MDM. The mapping for this in the Import Manager can only be based on the product number. As this is the only unique value available which can map a info record to a already existing (but vendor less) ptoduct item in the catalog.
    As long as every item in the repository has only one unique info record, meaning one source of supply with a specific price, there is no issue in the above scenario. Based on the product-id, the info record data will be matched with the material item in the catalog.
    The issue for me arises when multiple info records exists for the same material. The info records can heave different vendors and different prices. All possible vendors should be available in the catalog for the same material (at least this is the requirement ).
    At this point the product-id will no longer be an unique value. Importing the info records will cause problems, as only one material record is available in the repository for the specific product-id (remember that when doing a initial replication of the material master to the catalog, no vendor data is replicated).
    Does anyone had this issue before, and knows a solution? Is it for example possible during the import of the info records in the Import manager, to duplicate material records in the destination data, based on the number of info records available in the source data for the same product-id. Or is there an other solution that I am missing?
    Your help would be appreciated!
    Regards,
    Skander

    Hi Shai & Ravi,
    Thanks for your answers. The MDM version which we are using is 5.5 - currently on SP6
    @ Shai: you are right; the standard SRM-MDM 2.0 catalog repository has a qualified lookup table u2018priceu2019, in which itu2019s possible to store the info record data. The standard fields in this sub-table are: Purchase Org, Amount, Currency Lower B, PIR-ID, price based quantity and Price based quantity UoM.
    I added some extra fields (non qualified), to accompany the remaining info record data (product no. u2013 vendor id  u2013 product category)  which is exported/imported, via the standard extraction program in R/3: Tcode MECCM
    I tried the solution Ravi proposed. This scenario works fine when, for example you want to maintain multiple info records for one specific material record in the main table (all info records related to the same source of supply, i.e. vendor). But as I described, the info records we import for one product can have different vendors. 
    The source of supply (vendor) in the shopping cart of SRM is determined via the u2018supplieru2019 field in the main repository table (which is in itself a flat lookup table ). What happens now is that all related info records are added to the u2018price informationu2019 field of the specific product record in the main table. Thus info records which have different suppliers are attached to a record in the main table which will have one specific supplier in the u2018supplieru2019 field. So from my point of view this will not work.
    I am still stuck with the situation that the material master import will only import one record for every distinct product, which can have multiple info records. The info records can/will have different vendors. As the supplier field in the main table determines the source of supply in the shopping cartu2026. Iu2019am seeking for a solution which will duplicate the material records in the main table, based on the amount of imported info records for that specific material record, that have distinct vendors.
    Shai, if you have some useful info on how you accomplished this requirement on a previous version of SRM-MDM, it would be greatly appreciated if you can share it..
    Thx.
    Skander

  • Ability to Duplicate a Layer

    Consider adding a touch menu on each layer (press and hold on layer icon) that adds a "Duplicate" option. Or allow a layer to be selected (longpress the layer) and then clicking the + icon will contextually duplicate the currently selected layer.
    Been iterating through a number of options and being able to duplicate existing material would be invaluable.

    Being able to label them would be good too . . .

  • Data retrieval from keko table with conditions as for a group of same mat

    hi Freinds,
    the problem iam facing here is i have certain materials in table keko , among which i need to retrieve the material with date as the latest one for that particular material provided costing status is 'FR' and Release is "X'.
    here is the example i gave where material 14ce2-1krs has 3 different dates , i need to retreive the latest one .... like this for 15ce2..
    plz reply ... thanks...
    Material          Costing Date          Costing Status          Release         14CE2-1K-RS     02.25.2007          FR                       14CE2-1K-RS     04.01.2007          FR               X           14CE2-1K-RS     04.29.2007          FR               X
    15CE2                      01.20.2007                                     FR                                           X
    15CE2                      03.10.2007                                     FR                                           X
    15CE2                      05.14.2007                                     FR                                           X
    15CE2                      07.22.2007                                     FR                                           X

    Hi,
    Sort ITAB by <Material> <Date> descnding.
    Delete adjacent duplicates comparing Material.
    Then table will contain material with latest date.
    Hope this helps...

  • I cannot screen capture DVD's on my MacBook. Help?

    I've been trying to use movie clips for a project. Basically, I insert the DVD into my laptop, pull it up, get my QuickTime Player screen capture thing all ready and then press record. The moment I press record the movie "grey's out" and doesn't uncover iself until I stop the recording. Why is this? How can I fix it?

    That's a feature that's been included with the system and software for a while now so users can't duplicate copyrighted material which is illegal. 
    OT

  • PO related fields display

    Hi,
      Please clear my doubt. Iam using tables mkpf,mseg and eket and these tables iam displaying the fields
    material document,P.O, delivery schedule line counter and delivery date.I got the output but here for every PO their r more than one items and its related delivery date. so i need to display for each PO only one item and its related date which is the latest mean the recent date. I did this by sorting and deleting adjacent records but still iam not able to produce correct o/p.
    i think u understood my question and if not please ask me again.
    Regards,
    Mahesh.

    Please clear my doubt. Iam using tables mkpf,mseg and eket and these tables iam displaying the fields
    material document,P.O, delivery schedule line counter and delivery date.I got the output but here for every PO their r more than one items and its related delivery date. so i need to display for each PO only one item and its related date which is the latest mean the recent date. I did this by sorting and deleting adjacent records but still iam not able to produce correct o/p.
    i think u understood my question and if not please ask me again.
    I guess, sort the internal table by material document, P.O, delivery schedule line counter and delivery date. then delete using statement adjacent duplicates comparing material document and P.O. You should get the latest record and deletes the next record. you can include and/or exclude fields after comparing.
    if that doesnt work, just sort internal table by P.O and delivery date. Then delete comparing P.O.
    You should one record for each P.O
    Following is the example
    01 - 123 - 001 - 10/11/2008
    02 - 123 - 002 - 11/11/2008
    after your statement you will see only record which is 02-123-002-11/11/2008 make sure you sort it as you want.

  • Double entry of component in BOM

    Good Day..,,
    I'd like to make a query (StoredProcedure) that will restrict the double entry of same component in BOM. I created a script but it doesn't work. Below is the script i made.
    If @object_Type ='66' and @Transaction_Type in ('A','U')
    Begin
    Declare @Component NVARCHAR (20)
    Set @Component= (Select isnull(T0.Code,'')From Itt1 T0 where t0.Father = @list_of_cols_val_tab_del)
    If @Component= '' and Exists (Select T0.Code From Itt1 T0 where T0.Father = @Component and T0.Father!= @list_of_cols_val_tab_del)
    Begin
    Set @error=1
    Set @error_message = N'Component Already exist!!'
    End
    End
    Your help will be very much appreciated. Thanks.
    Regards,
    Ardie

    Hi Ardie,
    Of course, use this
    IF @object_type='202'AND @transaction_type IN('A','U')
      BEGIN
         IF EXISTS
         (SELECT ItemCode,COUNT(ItemCode)FROM WOR1 WHERE DocEntry=@list_of_cols_val_tab_del
          GROUP BY ItemCode HAVING COUNT(ItemCode)>1)
           BEGIN
              SET @error=-123
              SET @error_message='Duplicate raw material exist'
           END
      END
    Best Regards,
    Hendry Wijaya

  • Apple TV / expert overview needed

    Hi All
    We are a global education firm. I want to incorporate Apple TV, as a distribution format for our content.
    Our objectives are to store 3.5 GB of content on the hard drive and enable the viewing of this content to commence over three separate monitors( attached to one ATV). The content is already converted to .m4v format and dissected into 9 separate modules which range from 25-35 minutes each.
    Is there anyone who is at expert level to the applications of ATV? or may know of a comprehensive online tutorial available, which may answer multiple issues which we need to address
    1) is ATV capable of multiple viewing of the same content ( can three students watch different sections of the same content simultaneously?)
    2) Is it possible to program ATV, where I can require multiple log in and user ID to access the material?
    3) Is there a firewall which can prevent someone from attempting to duplicate our material?
    4) Is there a data format which will show the number of times content has been viewed?
    any help would be greatly appreciated. I hope the explanation made sense!
    thank you

    tc the alias wrote:
    Hi All
    We are a global education firm. I want to incorporate Apple TV, as a distribution format for our content.
    Our objectives are to store 3.5 GB of content on the hard drive and enable the viewing of this content to commence over three separate monitors( attached to one ATV). The content is already converted to .m4v format and dissected into 9 separate modules which range from 25-35 minutes each.
    1) is ATV capable of multiple viewing of the same content ( can three students watch different sections of the same content simultaneously?)
    No.
    It is designed to watch/listen to one thing at a time.
    It has component and HDMI out (1 of each).
    It only outputs to HDMI or component, using HDMI disables component out.
    For 3 people to watch stuff on 3 monitors you'd need a video splitter/duplicator of some kind.
    2) Is it possible to program ATV, where I can require multiple log in and user ID to access the material?
    No
    3) Is there a firewall which can prevent someone from attempting to duplicate our material?
    No.
    4) Is there a data format which will show the number of times content has been viewed?
    Not really, though playback counts might get updates via itunes
    This would not reflect individual use/access though.
    any help would be greatly appreciated. I hope the explanation made sense!
    thank you
    Personally I don't think it's the solution to your problem.
    It's not designed for multiple users, there's no log in except for iTunes store purchasing (single user), and it is simply a device to playback suitably encoded media - it is not programmable to do the kind of things you'd need.
    It also doesn't run in a kiosk mode - anyone could access the user settings and inadvertently wipe all content from the device.
    AppleTV does run a flavour of Mac OS, and there are groups who have 'hacked' it to add functionality but these usages are unofficial and would not be supported - I dare say someone clever could cobble up some kind of app to do what you wanted, or to enable firewalls etc but they would be unlikely to do that for free for you.
    Also, AppleTV is nearly 3 years old, it may or may not be updated, no one here knows but the technology is getting long in the tooth and replacements or spares might not be available indefinitely.

  • Behavior that blows my mind -- duplicating restored information

    I have an external drive with all my iTunes information. I lost some changes to playlists mid-day today, and got my library to the point where I thought it would just be easier to restore my latest backup from a few hours previous, since I hadn't made any purchases since the last backup.
    I disabled TimeMachine backups, so the latest backup was the one I restored from.
    First problem: I go to restore the iTunes folder, and only get the choice to delete the old information and restore with new information or to make no changes. What ever happened to just doing an intelligent restore that just fixes what's different?
    Second -- and wilder -- problem. So, I decided to erase the external drive (but not repartition or rename it), and restore everything onto the erased partition. When I re-enabled TimeMachine, the first backup BACKED UP ALL 207 GB OF THE RESTORED MATERIAL ALL OVER AGAIN! If TimeMachine just restored it, shouldn't it know it is the same as the material it just restored?
    What kind of programming leads to this?
    So, over 20% of my backup disk is used for an exact duplicate of material that is already there. The iTunes library is copied twice. (I can tell because the disk space available on my TimeMachine backup drive shrunk by all 207 GB.)

    Linda Custer wrote:
    I had just asked Time Machine to restore a folder from its most recent backup. It already had all that information. The last time Time Machine looked, the information was there -- that's why it's in the most recent backup. Then I asked it to restore. So everything is JUST as it was in the last backup. It knows that.
    No, it doesn't, at least not without comparing everything on both drives every time it does a backup.
    One of the big advantages of Time Machine over traditional "archive"-type backups is the speed of incremental backups, because of the way TM works.
    If you've ever used such an app, when they do incremental backups, they examine every file and folder on your system to see what's changed and needs to be backed-up. This is, obviously, a very lengthy procedure.
    But TM uses an internal database that OSX keeps on each drive, called the File System Event Store, of each directory (folder) that was changed. So TM can just look in that particular directory. When you consider that even a small Mac running OSX has upwards of half a million files and folders, that's clearly a huge advantage.
    For example, on my small (~30 gb) system, when very little has changed, CarbonCopyCloner's incremental backup takes 15 - 20 minutes and most of my CPU. My Time Machine backups rarely take over *30 seconds* and I usually notice them only if I happen to see the icon spinning.
    The occasional downside of that is, if you replace everything on a disk, it's all changed, even if you put all the same info back.
    With a traditional system, it just isn't practical to do incremental backups more than once or twice a day (and they have other large disadvantages, too).
    So, take your choice.

  • Executing Matching Strategies

    Hi.
    Im learning the matching mode in datamanager and trying to execute a matching strategy.
    1. I have created a transformation to convert X value to Y of description.
    2. I have created a rule based on my transformation.
    3. I created a strategy and assigned the rule to it.
    Now while trying to execute the strategy from the menu Records->Matching->Execute-> I find many options in it.
    I couldn' get what are all those options.
    Selected vs. Selected
    Selected vs. Results
    Selected vs. All
    Results vs. Results
    Results vs. All
    All vs. All
    Can anyone explain me with an example?
    Regards
    Bala
    Edited by: Balachandar P on May 5, 2010 2:10 PM

    Hi Balachandar,
    How is Transformation and Rules effectively used in this case?
    See it depends on your requirement, you can use Rules without use of transformation.
    Without Transformation:
    e.g. if you are finding duplicates for Material No, you can select property Fields = Material No directly while defining Rule and then include this rule into your Strategy which will find duplicates if there are two records with same Material No. Since Material No is usually Integer as such i think we don't need Transformation here.
    With Transformation:
    e.g. if you are finding duplicates for Company Description, you will need here Transformation if required.
    I mean if in my Repository there are Company Description for 1 record is ABC Pvt. Ltd. , for 2nd record it is ABC Private Limited and for 3rd record say it is ABC Pvt. Limited. If i don't make use of transformation and make use of Rule only where i define Fields = Company Description and then include this Rule into Strategy. So when i execute Strategy these 3 records will not considered as duplicates but considered as unique records which is not correct.
    So in order to recognize that these three records are duplicates but not unique records we have to make use of Transformation where i create a transformation say XYZ and in Substitutions pane will write:
    From To
    ABC Pvt. Ltd ABC Private Limited
    ABC Private Limited ABC Private Limited
    ABC Pvt. Limited ABC Private Limited
    which means for all these three records Company Description are same. Then while defining Rule select this transformation as Fields = XYZ   and then include rule into Strategy. So on execution Strategy i will come to know that these 3 records are nothing but are duplicates.
    Regards,
    Mandeep Saini

  • Duplicate material entry at the time of PO creation based order type

    How Restrict duplicate material entry at the time of PO creation based on define order type.
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 11, 2011 1:45 PM

    Hi Rahul,
    try with This Badi  ME_PROCESS_PO , Method Open or Process item,
    Implemente it and use a break-point to test it i.e it is triggred or nt , before processing it.
    Regards,
    Abhisek

  • Prevent creation of duplicate material master record

    Hi Experts
    1)  Is there any control or validation to prevent creation of duplicate material? I mean, if the description of new material is 100% or 95% matching with an existing material, there should be a validation.
    2) Is there any feature of usage of catelogs for creation of material master description?
    warm regards
    ramSiva

    Hi,
    Have a try to use Enhancement: MGA00001, user exit: EXIT_SAPLMGMU_001 for control you need.
    You can also use BAdI for this:
    BADI_MATERIAL_CHECK -> method CHECK.
    In both enhacements there is a structure STEXT - here short text(s) of new created material should be found for validation.
    Here you can make some ABAP works necessary.
    Hope it helps,
    regards,
    w.
    Edited by: Wojciech Zalech on May 19, 2010 9:43 AM

Maybe you are looking for