Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2014 at 02:40 PM

    Job log overview for job: BIREQU_DHKDP5CSETG1AHB7JXOB7CD2S / 00050100

    Date Time Message text Message class Message no. Message type

    05.05.2014 00:05:04 Job started 00 516 S

    05.05.2014 00:05:04 Step 001 started (program SBIE0001, variant &0000000308035, user ID BWREMOTE) 00 550 S

    05.05.2014 00:05:04 Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks) R3 413 S

    05.05.2014 00:05:04 DATASOURCE = 0ORGUNIT_ATTR R3 299 S

    05.05.2014 00:05:04 RLOGSYS = BIPCLNT900 R3 299 S

    05.05.2014 00:05:04 REQUNR = REQU_DHKDP5CSETG1AHB7JXOB7CD2S R3 299 S

    05.05.2014 00:05:04 UPDMODE = F R3 299 S

    05.05.2014 00:05:04 LANGUAGES = * R3 299 S

    05.05.2014 00:05:04 ************************************************************************* R8 048 S

    05.05.2014 00:05:04 * Current Values for Selected Profile Parameters * R8 049 S

    05.05.2014 00:05:04 ************************************************************************* R8 048 S

    05.05.2014 00:05:04 * abap/heap_area_nondia......... 0 * R8 050 S

    05.05.2014 00:05:04 * abap/heap_area_total.......... 34358689792 * R8 050 S

    05.05.2014 00:05:04 * abap/heaplimit................ 40000000 * R8 050 S

    05.05.2014 00:05:04 * zcsa/installed_languages...... DE * R8 050 S

    05.05.2014 00:05:04 * zcsa/system_language.......... E * R8 050 S

    05.05.2014 00:05:04 * ztta/max_memreq_MB............ 2047 * R8 050 S

    05.05.2014 00:05:04 * ztta/roll_area................ 6500000 * R8 050 S

    05.05.2014 00:05:04 * ztta/roll_extension........... 2000000000 * R8 050 S

    05.05.2014 00:05:04 ************************************************************************* R8 048 S

    05.05.2014 00:05:10 Internal session terminated with a runtime error (see ST22) 00 671 A

    05.05.2014 00:05:10 Job cancelled 00 518 A

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Please check in ST22 the table in which it is trying to insert. Probably the table contains an entry with the same primary/composite primary key. The issue generally occurs when the number range objects are not configured correctly.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.