<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BAPI_DISPUTE_ATTRIBUTES_CHANGE internal error: ENQUEUE (UDM_MSG 013) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652697#M2015116</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am using BAPI_DISPUTE_ATTRIBUTES_CHANGE to update Dispute Case Attributes in background from a workflow task.&lt;/P&gt;
  &lt;P&gt;For most cases this works ok but for some cases BAPI is returning Exception 1 (Failed).&lt;/P&gt;
  &lt;P&gt;For failed cases if I try to open and update them from UDM_DISPUTE t-code they work ok.&lt;/P&gt;
  &lt;P&gt;Do you have an idea what this exception means?&lt;/P&gt;
  &lt;P&gt;Below the complete code.&lt;/P&gt;
  &lt;P&gt;There is an equeue logic that we added for some particular scenarios where the case is locked at the moment of workflow execution.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    DO 5 TIMES.&lt;BR /&gt;      CALL METHOD cl_scmg_case_api=&amp;gt;if_scmg_case_api~open_case&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          im_case_guid          = iv_case_guid&lt;BR /&gt;          im_enqueue            = abap_true&lt;BR /&gt;          im_update_task        = abap_true&lt;BR /&gt;          im_close_after_commit = abap_true&lt;BR /&gt;        RECEIVING&lt;BR /&gt;          re_case               = lv_case&lt;BR /&gt;        EXCEPTIONS&lt;BR /&gt;          failed                = 1&lt;BR /&gt;          enqueue_failed        = 2&lt;BR /&gt;          invalid_guid          = 3&lt;BR /&gt;          cx_srm_gsp_back       = 4&lt;BR /&gt;          no_authority          = 5&lt;BR /&gt;          OTHERS                = 6.&lt;BR /&gt;&lt;BR /&gt;      IF sy-subrc EQ 0.&lt;BR /&gt;        CALL METHOD lv_case-&amp;gt;close_case.&lt;BR /&gt;        EXIT.&lt;BR /&gt;      ELSE.&lt;BR /&gt;        WAIT UP TO lv_time SECONDS.&lt;BR /&gt;      ENDIF.&lt;BR /&gt;    ENDDO.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'BAPI_DISPUTE_ATTRIBUTES_CHANGE'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        case_guid  = iv_case_guid&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        return     = ls_return&lt;BR /&gt;      TABLES&lt;BR /&gt;        attributes = lt_attr.&lt;BR /&gt;&lt;BR /&gt;    ev_return = ls_return.&lt;BR /&gt;    IF ls_return IS INITIAL.&lt;BR /&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Mar 2023 20:18:25 GMT</pubDate>
    <dc:creator>former_member846827</dc:creator>
    <dc:date>2023-03-13T20:18:25Z</dc:date>
    <item>
      <title>BAPI_DISPUTE_ATTRIBUTES_CHANGE internal error: ENQUEUE (UDM_MSG 013)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652697#M2015116</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am using BAPI_DISPUTE_ATTRIBUTES_CHANGE to update Dispute Case Attributes in background from a workflow task.&lt;/P&gt;
  &lt;P&gt;For most cases this works ok but for some cases BAPI is returning Exception 1 (Failed).&lt;/P&gt;
  &lt;P&gt;For failed cases if I try to open and update them from UDM_DISPUTE t-code they work ok.&lt;/P&gt;
  &lt;P&gt;Do you have an idea what this exception means?&lt;/P&gt;
  &lt;P&gt;Below the complete code.&lt;/P&gt;
  &lt;P&gt;There is an equeue logic that we added for some particular scenarios where the case is locked at the moment of workflow execution.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    DO 5 TIMES.&lt;BR /&gt;      CALL METHOD cl_scmg_case_api=&amp;gt;if_scmg_case_api~open_case&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          im_case_guid          = iv_case_guid&lt;BR /&gt;          im_enqueue            = abap_true&lt;BR /&gt;          im_update_task        = abap_true&lt;BR /&gt;          im_close_after_commit = abap_true&lt;BR /&gt;        RECEIVING&lt;BR /&gt;          re_case               = lv_case&lt;BR /&gt;        EXCEPTIONS&lt;BR /&gt;          failed                = 1&lt;BR /&gt;          enqueue_failed        = 2&lt;BR /&gt;          invalid_guid          = 3&lt;BR /&gt;          cx_srm_gsp_back       = 4&lt;BR /&gt;          no_authority          = 5&lt;BR /&gt;          OTHERS                = 6.&lt;BR /&gt;&lt;BR /&gt;      IF sy-subrc EQ 0.&lt;BR /&gt;        CALL METHOD lv_case-&amp;gt;close_case.&lt;BR /&gt;        EXIT.&lt;BR /&gt;      ELSE.&lt;BR /&gt;        WAIT UP TO lv_time SECONDS.&lt;BR /&gt;      ENDIF.&lt;BR /&gt;    ENDDO.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'BAPI_DISPUTE_ATTRIBUTES_CHANGE'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        case_guid  = iv_case_guid&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        return     = ls_return&lt;BR /&gt;      TABLES&lt;BR /&gt;        attributes = lt_attr.&lt;BR /&gt;&lt;BR /&gt;    ev_return = ls_return.&lt;BR /&gt;    IF ls_return IS INITIAL.&lt;BR /&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 20:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652697#M2015116</guid>
      <dc:creator>former_member846827</dc:creator>
      <dc:date>2023-03-13T20:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DISPUTE_ATTRIBUTES_CHANGE internal error: ENQUEUE (UDM_MSG 013)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652698#M2015117</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I think you are executing the BAPI while the transaction in edit mode .Please make sure on that .&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 00:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652698#M2015117</guid>
      <dc:creator>Subhamoy</dc:creator>
      <dc:date>2023-03-14T00:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DISPUTE_ATTRIBUTES_CHANGE internal error: ENQUEUE (UDM_MSG 013)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652699#M2015118</link>
      <description>&lt;P&gt;Hi Subhamoy and thanks for your answer!&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 00:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652699#M2015118</guid>
      <dc:creator>former_member846827</dc:creator>
      <dc:date>2023-03-14T00:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DISPUTE_ATTRIBUTES_CHANGE internal error: ENQUEUE (UDM_MSG 013)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652700#M2015119</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please close session T-Code - SCASE, UDM_DISPITE while accessing program.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 03:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-dispute-attributes-change-internal-error-enqueue-udm-msg-013/m-p/12652700#M2015119</guid>
      <dc:creator>SURYA_ABAP</dc:creator>
      <dc:date>2023-03-14T03:36:04Z</dc:date>
    </item>
  </channel>
</rss>

