Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_DISPUTE_ATTRIBUTES_CHANGE internal error: ENQUEUE (UDM_MSG 013)

former_member846827
Discoverer
0 Likes
1,427

Hi,

I am using BAPI_DISPUTE_ATTRIBUTES_CHANGE to update Dispute Case Attributes in background from a workflow task.

For most cases this works ok but for some cases BAPI is returning Exception 1 (Failed).

For failed cases if I try to open and update them from UDM_DISPUTE t-code they work ok.

Do you have an idea what this exception means?

Below the complete code.

There is an equeue logic that we added for some particular scenarios where the case is locked at the moment of workflow execution.

Regards

    DO 5 TIMES.
CALL METHOD cl_scmg_case_api=>if_scmg_case_api~open_case
EXPORTING
im_case_guid = iv_case_guid
im_enqueue = abap_true
im_update_task = abap_true
im_close_after_commit = abap_true
RECEIVING
re_case = lv_case
EXCEPTIONS
failed = 1
enqueue_failed = 2
invalid_guid = 3
cx_srm_gsp_back = 4
no_authority = 5
OTHERS = 6.

IF sy-subrc EQ 0.
CALL METHOD lv_case->close_case.
EXIT.
ELSE.
WAIT UP TO lv_time SECONDS.
ENDIF.
ENDDO.

CALL FUNCTION 'BAPI_DISPUTE_ATTRIBUTES_CHANGE'
EXPORTING
case_guid = iv_case_guid
IMPORTING
return = ls_return
TABLES
attributes = lt_attr.

ev_return = ls_return.
IF ls_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
3 REPLIES 3
Read only

Subhamoy
Explorer
0 Likes
1,315

Hello ,

I think you are executing the BAPI while the transaction in edit mode .Please make sure on that .

Read only

former_member846827
Discoverer
0 Likes
1,315

Hi Subhamoy and thanks for your answer!

We did a couple of test and even when the case is not being process from UDM_DISPUTE tcode we are still getting this same error internal error: ENQUEUE (UDM_MSG 013).

Regards

Read only

SURYA_ABAP
Participant
0 Likes
1,315

Hi,

Please close session T-Code - SCASE, UDM_DISPITE while accessing program.