SAP Knowledge Base Article - Preview

3527289 - While performing reversal by T-code AB08, user meets runtime errors ITAB_DUPLICATE_KEY

Symptom

User meets dump issue as below while reversal by T-code AB08.

Category               ABAP programming error
Runtime Errors         ITAB_DUPLICATE_KEY
ABAP Program           CL_FAA_DC_SEGMENTS_720========CP
Application Component  FI-AA-AA

Short Text                            
    A row already exists with this key

Error analysis                                                                       
    An attempt was made to insert an entry into table                                
     "{O:306*\CLASS=CL_FAA_DC_SEGMENTS_720}\DATA=IF_FAA_DC_SEGMENTS_720~MTS_CALCORD  
    ER". 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                        
     "{2024;16;16;10;001;99;0000000}" " " " "                              

  156|* ensure CALCORDER is created just for one amount type of an area if several areas are to be
  157|    AT END OF amount_type.                                                                  
  158|      lv_entry_4_virt_area = abap_false.                                                    
  159|    ENDAT.                                                                                  
  160|  ENDLOOP.                                                                                  
  161|                                                                                            
  162|                                                                                            
  163|  SORT lt_calcorder BY seqno.                                                               
  164|                                                                                            
>>>>>|  mts_calcorder[] = lt_calcorder[].                                                         
  166|                                                                                            
  167|* POSTCONDITION                                                                             
  168|                                                                                            
  169|ENDMETHOD.                                                                                           


Read more...

Environment

  • SAP enhancement package for SAP ERP, version for SAP HANA
  • SAP S/4HANA Finance
  • SAP S/4HANA

Product

SAP S/4HANA Finance all versions ; SAP S/4HANA all versions ; SAP enhancement package for SAP ERP, version for SAP HANA all versions

Keywords

T093-AREA_USAGE_IND, dump, reverse, derived depreciation area, mts_calcorder[] = lt_calcorder[], CL_FAA_DC_SEGMENTS_720========CP , KBA , FI-AA-AA-C , Transactions , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.