SAP Knowledge Base Article - Preview

2205038 - ITAB_DUPLICATE_KEY dump when archiving IDOC

Symptom

ITAB_DUPLICATE_KEY dump when using program RSEXARCA to archive Idoc.

Category               ABAP Programming Error
Runtime Errors         ITAB_DUPLICATE_KEY
ABAP Program           SAPLEDI_ARCH
Application Component  BC-MID-ALE
Error Analysis
An attempt was made to insert an entry into table
"\FUNCTION-POOL=EDI_ARCH\DATA=GT_EDIDS". Updating
unique table key "PRIMARY_KEY" resultsed in a duplicate entry however.
The key in question could be either the primary key or a secondary key.

The key components of the dupliate entry have the values
 " {XXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXX} " " " "
 " ".
Source Code Extract

FUNCTION IDOC_ARCHIVE_FETCH_OBJECT.
---------------------------------------------------------------------
        IMPORTING
           REFERENCE(IDOC_TABLE) TYPE TEDIA_IDOC_TT
---------------------------------------------------------------------
    IF idoc_table_IS NOT INITIAL.
      SELECT * FROM edidc INTO TABLE gt_edidc
      FOR ALL ENTRIES IN idoc_table WHERE docnum = idoc_table-docnum
>>>>> SELECT * FROM edids INTO TABLE gt_edids
      FOR ALL ENTRIES IN idoc_table WHERE docnum = idoc_table-docnum.
      SELECT * FROM edid4 INTO CORRESPONDING FIELDS OF TABLE gt_edidd
      FOR ALL ENTRIES IN idoc_table WHERE docnum = idoc_table-docnum.
    ENDIF.

ENDFUNCTION.

 


Read more...

Environment

  • SAP Basis ALE
  • SAP NetWeaver
  • SAP Web Application Server for SAP S/4 HANA
  • ABAP PLATFORM - Application Server ABAP

Product

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

Keywords

BASIS_ALE, ITAB_DUPLICATE_KEY, RSEXARCA, SAPLEDI_ARCH, Idoc, Archive , KBA , BC-MID-ALE , Integration Technology ALE , 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.