Application Development 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: 

BAPI_DISPUTE_ATTRIBUTES_CHANGE internal error: ENQUEUE (UDM_MSG 013)

former_member846827
Discoverer
0 Kudos
433

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

Subhamoy
Explorer
0 Kudos
321

Hello ,

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

former_member846827
Discoverer
0 Kudos
321

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

SURYA_ABAP
Participant
0 Kudos
321

Hi,

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