Error BW  "ITAB_DUPLICATE_KEY"

Hi, when downloading data in the RSA1 error occurs in the system
Error in the ABAP Application Program                                                         |
The current ABAP program "SAPLRSAODS" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
An entry was to be entered into the table
"\FUNCTION=RSAR_ODS_GET\DATA=L_TH_ISOSMAP" (which should have
had a unique table key (UNIQUE KEY)).
However, there already existed a line with an identical key.
The insert-operation could have ocurred as a result of an INSERT- or
MOVE command, or in conjunction with a SELECT ... INTO.
The statement "INSERT INITIAL LINE ..." cannot be used to insert several
|     initial lines into a table with a unique key.     x
Best Regards,
EDRS

Hi,
Do you have the Logical System Name - TSPREFIX  in RSBASIDOC  ?
1- Got to SE16 and enter table EDP21, take note to the entries.
2- Go to WE20 and check whether Partner profile is missing in LS type regarding to EDP21 content.
If there is any missing, just add Parnter profile with same and save.
Partner profile Name: LOGBID001 (In your case)
TYPE: LS
Give:
Ty: US
User: User Name
Lang: EN
and Save.
3- Again re-click on Partner Profile created.
you will see ,there will be some entries in Inbound & out Bound Tabs.
Delete the following from outbound:
1.RSRQST
Delete the following from inbound.
1.RSINFO
2.RSSEND
and save your partner profile.
3. now execute - RSA1, it will ask to active Workbench provide it and ReTry Again.
Check also the Solution 5 in the Note 140276 - Error in source system assignment
Thanks,
Arjun

Similar Messages

  • ITAB_DUPLICATE_KEY error is coming when loading data

    Hi
    When Iam loading data Iam getting error as ITAB_DUPLICATE_KEY error, I have used code in transfer rules
    Data: I_tab type standard table of TRANSFER_STRUCTURE ,
            I_wa like line of I_tab.
    data: w_temp_field(1) type c.
      data: w_count type i,
            l type i,
            index type i,
            string1 type string value
            ' 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
      I_tab[] = datapak[].
      loop at I_tab into I_wa.
    I have loaded data in Development succesfully with same transfer rules then I transported to Quality to test, Iam getting this run time error.

    HI,
    If Master data is not active, this table will find the duplicate entries while loading and load will fail by giving the short dump.               
    you will need to activate the master data in picture and then do a reload.
    Regds,
    Shashank

  • Dump while loading data from 1 cube to other cube

    Hi,
    We created a direct mapping between 2 cubes ( no start/end routines, formula exist in the mapping). Strange part is while I am loading data from one cube to other cube all data packages executing successfully only last data package giving dump with ITAB_DUPLICATE_KEY. This is in our QA system. But it is working/loading correctly in DEV.
    Please help. Thanks in advance for your support.
    Regards,
    Sai

    Hi Sai,
    Please refer to below blog for ITAB Duplicate Key error.
    ITAB_DUPLICATE_KEY Dump error during Master Data loading
    This can occur when a BW client has many different source systems, unused objects still remains, creating a duplicate entry in RSISOSMAP table.
    Regards
    Shabnam

  • Error ITAB_DUPLICATE_KEY while executing DTP

    Hi Gurus,
    While executing DTP we are facing ITAB_DUPLICATE_KEY
    We gone through all forum regarding this error but we not getting the proper solution.
      Please reply as soon as posible.
    Thanks & Regards,
    Kavita.

    Hi,
    The DTP you are using i guess is data marting the data from a DSO to target, The error occurs because there is a duplication of data where as your target requires only unique data.
    Use program YGTTC_CHANGE_ODS_UNIQUE_STATUS and set the unique key status of your DSO and try loading the data.
    Hope this will be expedite.
    Thax & Regards
    Vaibhave Sharma

  • ABAP Runtime Error "ITAB_DUPLICATE_KEY"

    Hi all,
    I am getting Abap runtime dump "ITAB_DUPLICATE_KEY" There is already a line with the same key.
    details are..........
    Program............. "SAPLRMPU "
    Error analysis
    You wanted to add an entry to table "\PROG=RMPU_SEL_SCREEN\DATA=REP_SR-PKHDIX",
    which you declared with a UNIQUE KEY. However, there was already an entry with thesame key.
    This may have been in an INSERT or MOVE statement, or within a
    SELECT ... INTO statement.
    In particular, you cannot insert more than one initial line into a
    table with a unique key using the INSERT INITIAL LINE... statement.
    What might be the Cause of Error?
    How to correct this Error?
    It is an Standard SAP program if u have any OSS notes Regarding this please mention.

    Hi,
    The problem is it is trying to insert a record to the internal table which is already there for the defined key..
    From help
    ITAB_DUPLICATE_KEY: You inserted a set of lines, more than oneof which had the same key (target table defined with UNIQUE).
    Thanks
    Naren

  • "Runtime Error ITAB_DUPLICATE_KEY"

    Object Navigator->Repository Browser
    Package: SBOOKSHOP
    BSP library->BSP Applications
    When i try to open Bsp application called "tutorial_3", the system returns a short-dump message "Runtime Error ITAB_DUPLICATE_KEY"
    Message detail:
    "What happened?            
    Error in ABAP application program.The current ABAP program "SAPLSDCL" had to be terminated because one of the statements could not be executed.                                              
    Error analysis:      
    You wanted to add an entry to table "\FUNCTION=SDOK_LOIOS_PHIOS_GET\DATA=PART_PHIOHEADS", which you declared with a UNIQUE KEY. However, there was already an entry with the same key."
    I wonder if anyone has faced the same issue and what was the solution.
    Thanks in advanced for your time.
    Best Regards

    Information on where terminated:
    The termination occurred in the ABAP program "SAPLSDCL"
    in "SDOK_LOIOS_PHIOS_GET".
    The main programwas "SAPMSEU0 ".
    The termination occurred in line 455 of the source code of the (Include)program "LSDCLU44" of the source code of program "LSDCLU44" (when calling the editor 4550). 
    I'm not able to post an OSS message.
    I wonder if anyone from SAP could check this error
    Best Regards
    José Antã

  • Short Dump when loading data (Runtime Error ITAB_DUPLICATE_KEY) Urgent Pls

    Dear Guru
    We are loading data into (2 ODS and ! Cube) from one Infopkg.
    When i do delta update it throws following error
    (for one ODS it is green) and for another ODS and CUBE it is red.
    Runtime Error          ITAB_DUPLICATE_KEY                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "GP229LMXTFYDS5X6UC3ND03NIV2" had to be terminated 
    because one of the                                                         
    statements could not be executed.
    Please suggest me some solution, i am with client..its a serious issue now.
    Hope you understand
    Thanks in Adv
    Dev

    hi,
    hope if you retrigger the load it would be successful.
    force the request status to red and delete from the all target and retrigger the load.
    else chk if in the detail tab u could find the data upto PSa. if so delete the red request alone and pull the records to tohose records from PSA.
    Ramesh

  • St22- error- ITAB_DUPLICATE_KEY  for prog - SBIE0001

    Hi All,
    could any one help me to resolve this below issue.
    In sm37 m getting a one job canceled due to ITAB_DUPLICATE_KEY  on production system. and it triggering to the below piece of code
    IF orgunits-plvar = last_plvar.
             MOVE-CORRESPONDING orgunits TO in_objects.
             APPEND in_objects.
           ENDIF.
           IF ( orgunits-plvar <> last_plvar ) OR ( sy-tabix = n_of_lines ).
             REFRESH main_co.
             CALL FUNCTION 'RH_GET_COSTCENTER_OF_OBJECT'
                EXPORTING
                    plvar              = last_plvar
                    begda              = p_begda
                    endda              = p_endda
    *            svect             = '1'
    *            active            = ' '
    *            dist               = ' '
                    object_only        = only_direct
                    buffered_access    = 'X'
                    read_it0001        = 'X'
                    i0027_flag         = ' '
                    ombuffer_mode      = ' '
                TABLES
                    in_objects         = in_objects
                    main_costcenters   = main_co
                EXCEPTIONS
                    OTHERS             = 0.
        ERROR>>>>>>>     INSERT LINES OF main_co INTO TABLE main_costcenters.    <<<<<<<<< ERROR
    How to resove this is there any sap note for this ?
    Regards,
    Sunil

    Job log overview for job:    BIREQU_DHKDP5CSETG1AHB7JXOB7CD2S / 00050100
    Date       Time     Message text                                                                  Message class Message no. Message type
    05.05.2014 00:05:04 Job started                                                                        00           516          S
    05.05.2014 00:05:04 Step 001 started (program SBIE0001, variant &0000000308035, user ID BWREMOTE)      00           550          S
    05.05.2014 00:05:04 Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)           R3           413          S
    05.05.2014 00:05:04 DATASOURCE = 0ORGUNIT_ATTR                                                         R3           299          S
    05.05.2014 00:05:04 RLOGSYS    = BIPCLNT900                                                            R3           299          S
    05.05.2014 00:05:04 REQUNR     = REQU_DHKDP5CSETG1AHB7JXOB7CD2S                                        R3           299          S
    05.05.2014 00:05:04 UPDMODE    = F                                                                     R3           299          S
    05.05.2014 00:05:04 LANGUAGES  = *                                                                     R3           299          S
    05.05.2014 00:05:04 *************************************************************************          R8           048          S
    05.05.2014 00:05:04 *          Current Values for Selected Profile Parameters               *          R8           049          S
    05.05.2014 00:05:04 *************************************************************************          R8           048          S
    05.05.2014 00:05:04 * abap/heap_area_nondia......... 0                                       *         R8           050          S
    05.05.2014 00:05:04 * abap/heap_area_total.......... 34358689792                             *         R8           050          S
    05.05.2014 00:05:04 * abap/heaplimit................ 40000000                                *         R8           050          S
    05.05.2014 00:05:04 * zcsa/installed_languages...... DE                                      *         R8           050          S
    05.05.2014 00:05:04 * zcsa/system_language.......... E                                       *         R8           050          S
    05.05.2014 00:05:04 * ztta/max_memreq_MB............ 2047                                    *         R8           050          S
    05.05.2014 00:05:04 * ztta/roll_area................ 6500000                                 *         R8           050          S
    05.05.2014 00:05:04 * ztta/roll_extension........... 2000000000                              *         R8           050          S
    05.05.2014 00:05:04 *************************************************************************          R8           048          S
    05.05.2014 00:05:10 Internal session terminated with a runtime error (see ST22)                        00           671          A
    05.05.2014 00:05:10 Job cancelled                                                                      00           518          A

  • Internal session terminated with a runtime error(ITAB_DUPLICATE_KEY)

    Hi All,
    Process Chain is failing While loading data from ODS to Cube iam getting error in DTP level internal session terminated with a runtime error(ITAB_DUPLICATE_KEY).Here my source is CRM.
    Can you please suggest me for this issue.
    Thanks,
    Mahes.

    hi Maheesh,
    Runtime Error ITAB_DUPLICATE _KEY is resulted because of Duplicate Transfer Structures from different Logical Systems.
    You can find the corresponding entries in the table RSISOSMAP ..On executing,we have the option to give the InfoSource name(ISOURCE) for wich the data load got failed with Runtime Error ITAB_DUPLICATE_KEY..
    You can coreect this error by running the Program RSAR_RSISOSMAP_REPAIR in repair mode , the program first checks the RSISOSMAP table and corrects any incorrect entries found. A log is then written for the mappings that were corrected.
    This will solve your problem.
    Please refer to link mention in above thread for more detail i have just summarize the things :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a04c82eb-ec7c-2c10-7fae-ca6e764c483a?QuickLink=index&overridelayout=true
    Thanks,
    Deepak

  • ITAB_DUPLICATE_KEY Error after system copy

    Hi!
    I am facing with the following error after the system copy of SAP ERP 2005 on Windows migrated from MS SQL to SAP DB.
    By entering into the db-relevant tcodes (DB13, etc.) the following error appears:
    Runtime Errors         ITAB_DUPLICATE_KEY
    Date and Time          24.05.2008 14:01:23
    Short text
    A row with the same key already exists.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_DB6_SYS====================CP" had to be
    terminated because it has come across a statement that unfortunately cannot be executed.
    Error analysis
    An entry was to be entered into the table "\CLASS=CL_DB6_SYS\DATA=SYSTEMS"
    (which should have had a unique table key (UNIQUE KEY)).
    However, there already existed a line with an identical key.
    The insert-operation could have ocurred as a result of an INSERT- or
    MOVE command, or in conjunction with a SELECT ... INTO.
    The statement "INSERT INITIAL LINE ..." cannot be used to insert several
    initial lines into a table with a unique key.
    Has some one any ideas how to solve the problem?
    Thank you very much!
    regards
    Thom

    Hi,
    I am facing same problem for oppty component bt111h_oppt.
    Error analysis:
    An entry was to be entered into the table
    "\DATA=VIEWS" (which should have
    had a unique table key (UNIQUE KEY)).
    However, there already existed a line with an identical key.
    The insert-operation could have ocurred as a result of an INSERT- or
    MOVE command, or in conjunction with a SELECT ... INTO.
    The statement "INSERT INITIAL LINE ..." cannot be used to insert several
    initial lines into a table with a unique key.
    How to resolve this ?
    Please help me.
    Regards
    Krishna
    Edited by: krishna nadupuri on Jun 16, 2011 4:12 PM

  • ITAB_DUPLICATE_KEY error while deleting ODS data

    Hello again
    i am getting ITAB_DUPLICATE_ERROR message while deleting data from ODS.
    kindly let me know how to proceed.
    as ours is full load it is very important to delete the previous data.
    Rgds,
    Ala.

    I also am getting the same error under the same circumstances.  I understand that RS_FIND_ISOSMAP_DUPREC will give a list of duplicate records in RSISOSMAP.  How then are the duplicate records deleted?
    Any ideas on what caused the duplicate records to be created?  I did have some trouble connecting the source system to BW.

  • Runtime Errors         ITAB_DUPLICATE_KEY ABAP Program           CL_BSP_WD_REPOSITORY==========CP

    We are doing the CRM Upgrade from EHp1 to EHp3
    after running the TC: WCF_CC as post upgrade activity
    Enhancement Set      ZXXX  and UI Component BP_ADDR  i got a short dump while trying to open the views in the component workbench as following
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_BSP_WD_REPOSITORY==========CP" had to be
         terminated because it has    come across a statement that unfortunately cannot be executed.
    Error analysis
        An attempt was made to insert an entry into table
         "\CLASS=CL_BSP_WD_REPOSITORY\METHOD=CREATE_INSTANCE_FROM_XML\DATA=LT_VIEWS".
         Updating
        unique table key "PRIMARY_KEY" resulted in a duplicate entry however. The key
         in
        question could be either the primary key or a secondary key.
        The key components of the duplicate entry have the values "{BP_A;X}" " " " "
        With primary keys, termination can occur during block insert
        operations. The can affect numerious statements, for example
        (1) MOVE
        (2) INSERT/APPEND ... LINES OF ... INTO/TO
        (3) SELECT ... INTO/APPENDING ...
        With secondary keys, termination can also occur due to a single record
        insert operation. In particular, the following modifying statements can
        cause the system to terminate due to duplicate key values as soon as
        the key is used again (delayed update):
     Please advice me how to solve it

    Hello Madhuri,
    Can you please deactivate your enhancement via setting user parameter WCF_IGNORE_ENHANCEMT =A using transaction code SU3? Then retest the issue? If it's works, then the error is happening due to your enhancement.
    If the error persist please check if note 1941320 can be applied in your system.
    thanks
    Willie

  • Runtime Error 'ITAB_DUPLICATE_KEY' while deleting PDS

    Hi All,
    The functional user is trying to delete the PDS with the tx '/N//SAPAPO/CULL_RTO_DEL'
    PDS = PPDS
    PLN VERSIONS = 'DELETE ACROSS ALL MODULES'
    MASTER DATA TYPE = iPPE
    WE ARE ON =  SCM 5.0 SR2 SPS13 + ORACLE 10g + AIX 5.3 [with ALL LATEST KERNAL PATCHES, SP, etc]
    Error analysis
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        An entry was to be entered into the table
         "\CLASS=/SAPAPO/CL_CULL_DELETE_RTO\DATA=GS_DELRTO_BUFFER_PPE-OLDEST_ORDERS"
         (which should have
        had a unique table key (UNIQUE KEY)).
        However, there already existed a line with an identical key.
        The insert-operation could have ocurred as a result of an INSERT- or
        MOVE command, or in conjunction with a SELECT ... INTO.
        The statement "INSERT INITIAL LINE ..." cannot be used to insert several
         initial lines into a table with a unique key.
    Information on where terminated
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Termination occurred in the ABAP program "/SAPAPO/CL_CULL_DELETE_RTO====CP" -
         in METHOD "INSERT_SATID_ORDERS".
        The main program was "/SAPAPO/CULL_DELETE_RTO ".
        In the source code you have the termination point in line 40
        of the (Include) program "/SAPAPO/CURTO_SERVICEI16".
    I have implemented a note - 1360600 for PDS DEL Memory related issues.
    I have checked the SAP notes and could not got the fix.
    Please help and suggest a fix soon.
    Regards,
    Shyamsundar G C
    Cell Ph #: +91 96233-08388

    Hi Senthil,
    Thanks for the reply, i checked the notes.
    For the note 494717, the affected release software component and our existing release does not match [ PI 2001_2_46C and 2006_1_700].
    For the note 1358336, the affected release software component 'SAP_APPL Logistics and Accounting' is for ECC system and not SCM system.
    We have implemented the Note 1360600, which is related to PDS [its memory issue related to PDS generate]
    And i guess the PDS deletion issue started after the note 1360600 implementation.
    Regards,
    Shyamsundar G C

  • Error while creating external alias for BSPs & DMS

    Hello All,
    Has anybody encountered the below error dump while creating the external aliases for Business Server Pages and Document Management Service?
    The error dump I have received is "ITAB_DUPLICATE_KEY"
    "A Row with same key already exists"
    The error has ocurred in the program "RSICFTREE".
    I am getting this above described error while navigating to the "Target Element" tab.
    Can anybody help pls?
    best regds,
    Alagammai.

    Hi Tony,
    Somehow I solved this issue. I dont remember what exactly I did, as it was sometime back in December. I think I used the Wizard initially to do the configurations in Solution Manager and again i tried to do the same manually as the earlier one threw some errors.
    It seems the wizard proceeded half-way through and hence the entry was made in the database already and hence that error.
    Anyways thank you for replying me.
    best regds,
    Alagammai.

  • Short Dump "ITAB_DUPLICATE_KEY" while executing DTP

    Hi all,
    i am getting a short dump when i try to execute the DTP to Cube, following is the error details.
    i could not analyze the reason, need your inputs on this.
    Runtime Errors         ITAB_DUPLICATE_KEY                                           
    Date and Time          02/08/2009 21:33:53                                          
    Short dump has not been completely stored (too big)                                                                               
    Short text                                                                               
    A row with the same key already exists.                                                                               
    What happened?                                                                     
         Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLRSAODS" had to be terminated because it has      
         come across a statement that unfortunately cannot be executed.                                                                               
    Error analysis                                                                     
         An entry was to be entered into the table                                      
          "\FUNCTION=RSAR_ODS_GET\DATA=L_TH_ISOSMAP" (which should have                 
         had a unique table key (UNIQUE KEY)).                                          
         However, there already existed a line with an identical key.                                                                               
    The insert-operation could have ocurred as a result of an INSERT- or           
         MOVE command, or in conjunction with a SELECT ... INTO.                                                                               
    The statement "INSERT INITIAL LINE ..." cannot be used to insert several       
          initial lines into a table with a unique key.                                                                               
    thanks,
    Rk

    Hello Rk,
    What is the data source??
    whats is your SP level??
    Seems like the data source is not properly activated or duplicate entries exists in the system tables for the same data source...
    If you have recently done a system copy??
    Try to activate the data source again...if its from R/3 then replicate and activate it again...also if its a BW object then try to reactivate it as well.
    Thanks
    Ajeet

Maybe you are looking for

  • ABAP Query - Selection Screen Values Usage

    Hi,    I have created an ABAP Query. For one of the selection-screen fields (CAUFV-FTRMI) which is select-options, I want to use the values during coding (in the where clause of a select query) in Extras section under the event "record processing". P

  • No Update in Transformation Routine (CX_RSROUT_SKIP_RECORD)

    Hi , Please find the below scenario DSO Level 1 We have 2 Key fileds  (Trial No and Event No) and the data is given below Trial No       Event No       Date 1212           440                Jan 1st 2011 1212           670                Feb 8th 2011

  • How to Use new Authorization Objects

    Hi guys i need to implement the new schema of authorizations and i have created an authrization and add the 0comp_code characteristic (previously i set i it up as authorization relevant) and i need to add the restrictions for infoprovider but i need

  • Blocking F6 and F8 with WindowsLookAndFeel

    I have a Swing application which uses the WindowsLookAndFeel. The application relies critically on using function keys F1-F12 for various actions. All of the keys work, except F6 and F8. These get caught by a JSplitPane, where they are the standard k

  • InfoSpoke data selection using variables in BW 3.5?

    Hi Gang! Can InfoSpokes select data using variables in BW 3.5? I would like create a "functional" delta process using an Full mode load and a variable to select "yesterday" from a date field. My ETL and external database partners would prefer to not