2023 Mar 13 8:18 PM
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.
2023 Mar 14 12:46 AM
Hello ,
I think you are executing the BAPI while the transaction in edit mode .Please make sure on that .
2023 Mar 14 12:58 AM
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
2023 Mar 14 3:36 AM
Hi,
Please close session T-Code - SCASE, UDM_DISPITE while accessing program.