SAP Knowledge Base Article - Preview

3351746 - Run T-code FAA_CMP, runtime error ITAB_DUPLICATE_KEY occurred

Symptom

While processing T-code FAA_CMP etc., dump below occurred:

Category               ABAP programming error

Runtime Errors         ITAB_DUPLICATE_KEY

ABAP Program           CL_FAA_CFG_DB_ACCESS_ERP======CP

Application Component  FI-AA

An attempt was made to insert an entry into table                             

 "\CLASS=CL_FAA_CMP_DB_ACCESS_ERP\METHOD=IF_FAA_CMP_DB_ACCESS~GET_SETTINGS_LEDG

ER_ALL\DATA=LT_CFG_AFABER". 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 "{;1234;12}" " " " "

" ".                                                                          

 

   1|METHOD if_faa_cfg_access_erp~faa_cfg_afaber_read_multiple.            

   2|*--------------------------------------------------------------------"

   3|* Database Access for CDS View FAA_CFG_AFABER                         

   4|*--------------------------------------------------------------------"

   5|* PRECONDITION                                                        

   6|  CLEAR et_cfg_afaber.                                                

   7|                                                                      

   8|* DEFINITIONS                                                         

   9|  "none                                                               

  10|                                                                      

  11|* BODY                                                                

>>>>|  SELECT *                                                            

  13|    FROM faa_cfg_afaber                                               

  14|    INTO CORRESPONDING FIELDS OF TABLE @et_cfg_afaber                 

  15|    WHERE bukrs IN @it_range_bukrs                                    

  16|  ORDER BY PRIMARY KEY.                                               

  17|                                                                      

  18|* POSTCONDITION     

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."       


Read more...

Environment

SAP S/4 HANA

Product

SAP S/4HANA Finance all versions ; SAP S/4HANA all versions

Keywords

Representative Ledger for Depreciation Areas, OABT , KBA , FI-AA-AA-A , Master Data , 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.