05-12-2014 3:27 PM
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
05-12-2014 3: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
05-12-2014 4:00 PM
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.