cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP RAP managed scenario dumping CX_CSP_ACT_INTERNAL

TylerFincham
Explorer
0 Kudos
147

After using the application with no errors for quite some time now. I can't edit one of my existing records because it throws this dump. From my debugging I can see it retrieves 2 records from the corresponding draft table. Even after deleting all records from the corresponding draft table. Seems like it throws the error because it's finding 2 records and assigning it to <lt_draft>.

 

Error information:
A data record is to be inserted even though a data record with the same primary key or same unique secondary key exists.

Information on where terminated
The termination occurred in ABAP program or include "CL_CSP_ACT_DRAFT_OP_ON_DB=====CP", in "LIF_DB_ACCESS~COPY_ACTIVE_TO_DRAFT". The
main program was "SAPMSSY4".

In the source code, the termination point is in line 176 of include "CL_CSP_ACT_DRAFT_OP_ON_DB=====CCIMP".
include "CL_CSP_ACT_DRAFT_OP_ON_DB=====CCIMP".

CATCH cx_sy_open_sql_db INTO DATA(lx_sql).

RAISE SHORTDUMP NEW cx_csp_act_internal( textid = cx_csp_act_internal=>select_open_sql_db

previous = lx_sql )->enrich( ).

ENDTRY.

 

 

TRY.

io_sql_access->if_csp_sql_write_access~insert_from_itab( iv_persistence_name = iv_draft_persistence_name

it_instance = <lt_draft> ). Here <lt_draft> has 2 records which is causing the error. While the draft table is empty...

CATCH cx_sy_open_sql_db INTO lx_sql.

RAISE SHORTDUMP NEW cx_csp_act_internal( textid = cx_csp_act_internal=>save_open_sql_db

persistence_table = iv_draft_persistence_name

previous = lx_sql )->enrich( ).

ENDTRY.

 

ENDMETHOD.

 

ENDCLASS.

Accepted Solutions (0)

Answers (0)