SAP Knowledge Base Article - Preview

2490090 - WDA: Error: "A row already Exists with this key" (Termination: RABAX_STATE)

Symptom

  • The following error message is raised when using a Web Dynpro ABAP application:
    • ERROR: A row already exists with this key (Termination: RABAX_STATE)
  • In transaction ST22 the following dump is raised:
Category               ABAP Programming Error
Runtime Errors         ITAB_DUPLICATE_KEY
ABAP Program           CL_WDR_VALUE_HELP_HANDLER=====CP
Application Component  BC-WD-ABA-RUN
Short text
A row already exists with this key.
What happened?
The current ABAP program "CL_WDR_VALUE_HELP_HANDLER=====CP" had to be
terminated because it found a statement that could not be executed.
Source Code Extract

METHOD read_history_from_db.                                                               
                                                                                                
>>>>>   SELECT field_id creation_date last_time_accessed value FROM wdy_history 
        APPENDING CORRESPONDING FIELDS OF TABLE mt_history
               WHERE uname = sy-uname AND field_id = field_id.                                 
       SORT mt_history DESCENDING.                                                              
       INSERT field_id INTO TABLE mt_history_read.

 "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

  • Web Dynpro ABAP
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4 

Product

SAP NetWeaver 7.4 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

Webdynpro; Webdynpro ABAP; WDA; FPM; Floorplan Manager; GRC ARM; application; GRAC_UIBB_END_USER_LOGIN; USERNAME field; HTTP 500 SAP INTERNAL SERVER ERROR; ERROR : A row already Exists with this key; Termination: RABAX_STATE; METHOD; CL_WDR_VALUE_HELP_HANDLER=====CP; CL_WDR_VALUE_HELP_HANDLER=====CM00Z; CL_WDR_VALUE_HELP_HANDLER; READ_HISTORY_FROM_DB; An attempt was made to insert an entry into table "\CLASS=CL_WDR_VALUE_HELP_HANDLER\DATA=MT_HISTORY"; Updating unique table key "PRIMARY_KEY" resulted in a duplicate entry; WDENABLEFIELDHISTORY; WDA_GDPR; WDY_HISTORY , KBA , BC-WD-ABA , Web Dynpro ABAP , BC-WD-ABA-RUN , Web Dynpro ABAP Runtime , BC-WD-CMP-FPM , Floorplanmanager , 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.