Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

st22- error- ITAB_DUPLICATE_KEY for prog - SBIE0001

Hi All,

could any one help me to resolve this below issue.

In sm37 m getting a one job canceled due to ITAB_DUPLICATE_KEY  on production system. and it triggering to the below piece of code

IF orgunits-plvar = last_plvar.

         MOVE-CORRESPONDING orgunits TO in_objects.

         APPEND in_objects.

       ENDIF.

       IF ( orgunits-plvar <> last_plvar ) OR ( sy-tabix = n_of_lines ).

         REFRESH main_co.

         CALL FUNCTION 'RH_GET_COSTCENTER_OF_OBJECT'

            EXPORTING

                plvar              = last_plvar

                begda              = p_begda

                endda              = p_endda

*            svect             = '1'

*            active            = ' '

*            dist               = ' '

                object_only        = only_direct

                buffered_access    = 'X'

                read_it0001        = 'X'

                i0027_flag         = ' '

                ombuffer_mode      = ' '

            TABLES

                in_objects         = in_objects

                main_costcenters   = main_co

            EXCEPTIONS

                OTHERS             = 0.

    ERROR>>>>>>>     INSERT LINES OF main_co INTO TABLE main_costcenters.    <<<<<<<<< ERROR

How to resove this is there any sap note for this ?

Regards,

Sunil

Former Member
Not what you were looking for? View more on this topic or Ask a question