Skip to Content
0

CL_BSP_WD_REPOSITORY==========CP, Error ITAB_DUPLICATE_KEY

Jul 15, 2017 at 03:20 PM

117

avatar image
Former Member

Hi All,

We are on upgraded system solman 7.2. In that, I am getting error while expanding my tree of views in the enhance BSP component of AIC_CONT_SEARCH.

Category ABAP Programming Error Runtime Errors ITAB_DUPLICATE_KEY ABAP Program CL_BSP_WD_REPOSITORY==========CP Application Component CA-WUI-UI-RT Date and Time 07/15/2017 11:18:01 ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- |Short Text | | A row already exists with this key | ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- |What happened? | | Error in the ABAP Application Program | | | | The current ABAP program "CL_BSP_WD_REPOSITORY==========CP" had to be | | terminated because it has | | come across a statement that unfortunately cannot be executed. | ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- |Error analysis | | An attempt was made to insert an entry into table | | "\CLASS=CL_BSP_WD_REPOSITORY\METHOD=CREATE_INSTANCE_FROM_XML\DATA=LT_VIEWS". | | Updating | | unique table key "PRIMARY_KEY" resulted in a duplicate entry however. The key | | in | | question could be either the primary key or a secondary key. | | | | The key components of the duplicate entry have the values "{AIC_;X}" " " " " | | " ". | | | | With primary keys, termination can occur during block insert | | operations. The can affect numerious statements, for example | | | | (1) MOVE | | | | (2) INSERT/APPEND ... LINES OF ... INTO/TO | | | | (3) SELECT ... INTO/APPENDING ... | | | | With secondary keys, termination can also occur due to a single record | | insert operation. In particular, the following modifying statements can | | cause the system to terminate due to duplicate key values as soon as | | the key is used again (delayed update): | | | | (1) "<fs> = ..." or "<fs>-comp = ...", if the assignment to a field | | symbol or to a component of a field symbol modifies a component of a | | unique secondary key. | | | | (2) "ref->* = ..." or "ref->comp = ...", if the assignment to a field | | symbol or to a component of a field symbol modifies a component of a | | unique secondary key. | | | | (3) "MODIFY ... [TRANSPORTING comp_1 ... comp_n] ...", if transporting | | the components to be changed modifies a component of a unique secondary | | key. | | | | (4) "COLLECT ... INTO ...", if adding up the columns of a numeric type | | modifies a component of a unique secondary key. | | | | (5) "READ TABLE ... INTO <fs> ...[TRANSPORTING comp_1 ... comp_n] ...", | | if the field symbol points to a row of a table with unique secondary | | keys and transporting the values read modifies a component of a unique | | secondary key. | ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- |Trigger Location of Runtime Error | | Program CL_BSP_WD_REPOSITORY==========CP | | Include CL_BSP_WD_REPOSITORY==========CM003 | | Row 10 | | Module Type (METHOD) | | Module Name CREATE_INSTANCE_FROM_XML | ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- |Source Code Extract | ---------------------------------------------------------------------------------------------------- |Line |SourceCde | ---------------------------------------------------------------------------------------------------- | 1|method CREATE_INSTANCE_FROM_XML . | | 2| | | 3|* create repository object | | 4| create object RESULT. | | 5| | | 6| data: LT_VIEWS type LTYPE_VIEW_TAB, | | 7| LT_USAGES type BSP_WD_CMP_USAGE_DESCR_TAB. | | 8| | | 9|* "parse" repository xml data directly into memory | |>>>>>| call transformation BSP_WD_RT_REP_RUNTIME | | 11| source xml REPOSITORY_XML | | 12| result VIEWS = LT_VIEWS | | 13| ROOTVIEW = RESULT->INITIAL_VIEW | | 14| USAGES = LT_USAGES | | 15| PCCNODES = RESULT->INTF_CONTROLLER_CNODES | | 16| CEVENTS = RESULT->INTF_CONTROLLER_EVENTS | | 17| MODEL = RESULT->BOL_COMPONENT_SET. | | 18| | | 19|* optimize memory consuption of tabs | | 20| RESULT->VIEWS = LT_VIEWS. | | 21| RESULT->USAGES = LT_USAGES. | | 22| | | 23| sort RESULT->USAGES by USAGE_NAME. | | 24| | | 25| if RESULT->INITIAL_VIEW is not initial. | | 26| RESULT->INITIAL_REPVIEW = RESULT->GET_REP_VIEW( RESULT->INITIAL_VIEW ). | | 27| endif. | | 28| | | 29| | ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- |Active Calls/Events | ---------------------------------------------------------------------------------------------------- |No. Ty. Program Include Line | | Name | ---------------------------------------------------------------------------------------------------- | 18 XSLT BSP_WD_RT_REP_RUNTIME=========XT BSP_WD_RT_REP_RUNTIME=========XT 83 | | CALL | | 17 METHOD CL_BSP_WD_REPOSITORY==========CP CL_BSP_WD_REPOSITORY==========CM003 10 | | CL_BSP_WD_REPOSITORY=>CREATE_INSTANCE_FROM_XML | | 16 METHOD CL_BSP_WD_APPL_MODEL==========CP CL_BSP_WD_APPL_MODEL==========CM00Z 44 | | CL_BSP_WD_APPL_MODEL=>GET_DEFAULT_REPOSITORY | | 15 METHOD CL_BSP_WD_APPL_MODEL==========CP CL_BSP_WD_APPL_MODEL==========CM006 22 | | CL_BSP_WD_APPL_MODEL=>IF_BSP_WD_APPL_MODEL~GET_VIEWS | | 14 METHOD CL_BSP_WD_AT_STRUCTURE_NODE===CP CL_BSP_WD_AT_STRUCTURE_NODE===CM00G 37 | | CL_BSP_WD_AT_STRUCTURE_NODE=>GET_VIEWS | | 13 METHOD CL_BSP_WD_AT_STRUCTURE_NODE===CP CL_BSP_WD_AT_STRUCTURE_NODE===CM00M 52 | | CL_BSP_WD_AT_STRUCTURE_NODE=>IF_GENIL_TREE_NODE~GET_CHILDREN | | 12 METHOD CL_BSP_WD_GUI_LIST_TREE=======CP CL_BSP_WD_GUI_LIST_TREE=======CM006 16 | | CL_BSP_WD_GUI_LIST_TREE=>ON_EXPAND_NO_CHILDREN | | 11 METHOD CL_TREE_CONTROL_BASE==========CP CL_TREE_CONTROL_BASE==========CM01K 35 | | CL_TREE_CONTROL_BASE=>HANDLE_NODE_KEY_EVENT | | 10 METHOD CL_TREE_CONTROL_BASE==========CP CL_TREE_CONTROL_BASE==========CM015 61 | | CL_TREE_CONTROL_BASE=>HANDLE_BASE_EVENT | | 9 METHOD CL_TREE_CONTROL_BASE==========CP CL_TREE_CONTROL_BASE==========CM017 26 | | CL_TREE_CONTROL_BASE=>DISPATCH | | 8 METHOD CL_GUI_CFW====================CP CL_GUI_CFW====================CM00K 191 | | CL_GUI_CFW=>DISPATCH_SYSTEM_EVENTS | | 7 FORM SAPFGUICNTL_CFW SAPFGUICNTL_CFW 23 | | CONTROL_DISPATCH | | 6 FORM SAPFGUICNTL SAPFGUICNTL 20 | | CONTROL_DISPATCH | | 5 FORM SAPMSSYD SAPMSSYD 337 | | %_CTL_INPUT | | 4 MODULE (PAI) SAPMSSYD SAPMSSYD 274 | | %_CTL_INPUT1 | | 3 METHOD BSP_WD_APPL_WB_NEW BSP_WD_APPL_WD_NEWC01 191 | | LCL_START_DIALOG=>USER_COMMAND | | 2 METHOD BSP_WD_APPL_WB_NEW BSP_WD_APPL_WD_NEWC03 240 | | LCL_DIALOG_1020=>USER_COMMAND | | 1 MODULE (PAI) BSP_WD_APPL_WB_NEW BSP_WD_APPL_WB_NEWI01 12 | | USER_COMMAND | ----------------------------------------------------------------------------------------------------

10 |10000 characters needed characters left characters exceeded
Former Member

Did you get any solution for this issue.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Aug 16, 2017 at 03:57 PM
0

Did you get any solution for this ?

Share
10 |10000 characters needed characters left characters exceeded