SAP Knowledge Base Article - Preview

2490090 - WDA: A row already Exists with this key

Symptom

When using a Web Dynpro ABAP application, system raises message:

ERROR: A row already Exists with this key (Termination: RABAX_STATE).

On 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.

 


Read more...

Environment

  • Web Dynpro for ABAP
  • SAP NetWeaver release independent

Product

SAP NetWeaver Application Server all versions ; SAP NetWeaver all versions ; SAP Web Application Server for SAP S/4HANA all versions

Keywords

Webdynpro; 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 , KBA , BC-WD-ABA , Web Dynpro ABAP , BC-WD-CMP-FPM , Floorplanmanager Web Dynpro ABAP , BC-WD-ABA-RUN , Web Dynpro ABAP Runtime , Problem

About this page

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

Search for additional results

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