<?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 Re: handle errors/exceptions in WS_DELIVERY_UPDATE_2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911776#M379524</link>
    <description>&lt;P&gt;It's working.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2020 14:08:13 GMT</pubDate>
    <dc:creator>former_member661603</dc:creator>
    <dc:date>2020-07-22T14:08:13Z</dc:date>
    <item>
      <title>handle errors/exceptions in WS_DELIVERY_UPDATE_2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911772#M379520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am tryng to do batch split using 'WS_DELIVERY_UPDATE_2'. it did split in few cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my problem is when executing in foreground it there is error in input data the function module just throws a 'E' error and program stops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to handle errors/exceptions. it just stops there and i am not able to continue with the program further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DELIVERY_UPDATE_2'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    vbkok_wa                           = it_vbkok_wa&lt;/P&gt;&lt;P&gt;   synchron                           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        NO_MESSAGES_UPDATE_1               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   commit                             =  v_commit&lt;/P&gt;&lt;P&gt;    delivery                           = v_delvry&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        UPDATE_PICKING                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        NICHT_SPERREN_1                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_CONFIRM_CENTRAL                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_WMPP                            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_GET_DELIVERY_BUFFERED           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_NO_GENERIC_SYSTEM_SERVICE       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   if_database_update_1               = '1'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_NO_INIT_1                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_NO_READ_1                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   if_error_messages_send             = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_NO_BUFFER_REFRESH               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_PARTNER_UPDATE                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_SERNR_UPDATE                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_NO_REMOTE_CHG_1                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_NO_MES_UPD_PACK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IF_LATE_DELIVERY_UPD               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         EF_ERROR_ANY                       = EF_ERROR_ANY&lt;/P&gt;&lt;P&gt;         EF_ERROR_IN_ITEM_DELETION          = EF_ERROR_IN_ITEM_DELETION&lt;/P&gt;&lt;P&gt;         EF_ERROR_IN_POD_UPDATE             = EF_ERROR_IN_POD_UPDATE&lt;/P&gt;&lt;P&gt;         EF_ERROR_IN_INTERFACE              = EF_ERROR_IN_INTERFACE&lt;/P&gt;&lt;P&gt;         EF_ERROR_IN_GOODS_ISSUE            = EF_ERROR_IN_GOODS_ISSUE&lt;/P&gt;&lt;P&gt;         EF_ERROR_IN_FINAL_CHECK            = EF_ERROR_IN_FINAL_CHECK&lt;/P&gt;&lt;P&gt;         EF_ERROR_PARTNER_UPDATE            = EF_ERROR_PARTNER_UPDATE&lt;/P&gt;&lt;P&gt;         EF_ERROR_SERNR_UPDATE              = EF_ERROR_SERNR_UPDATE&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   vbpok_tab                          = it_vbpok_tab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PROT                               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VERKO_TAB                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VERPO_TAB                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VBSUPCON_TAB_1                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_VERPO_SERNR                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_PACKING                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_PACKING_SERNR                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_REPACK                          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   it_handling_units_1                = it_rehang[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_OBJECTS                         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         ET_CREATED_HUS                     = it_CREATED_HUS[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TVPOD_TAB                          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = '0'.&lt;/P&gt;&lt;P&gt;write:/ 'ok'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ 'failed'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911772#M379520</guid>
      <dc:creator>vsubbakrishna</dc:creator>
      <dc:date>2007-02-16T10:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: handle errors/exceptions in WS_DELIVERY_UPDATE_2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911773#M379521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your code to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if_error_messages_send = space&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you send 'X' the messages are displayed, otherwise they don't. Look at the message_send_check_do routine in the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 16:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911773#M379521</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-02-22T16:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: handle errors/exceptions in WS_DELIVERY_UPDATE_2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911774#M379522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add to code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;      error_message             = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO g_c_mensaje.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 18:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911774#M379522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T18:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: handle errors/exceptions in WS_DELIVERY_UPDATE_2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911775#M379523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered!1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 02:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911775#M379523</guid>
      <dc:creator>vsubbakrishna</dc:creator>
      <dc:date>2007-06-19T02:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: handle errors/exceptions in WS_DELIVERY_UPDATE_2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911776#M379524</link>
      <description>&lt;P&gt;It's working.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-errors-exceptions-in-ws-delivery-update-2/m-p/1911776#M379524</guid>
      <dc:creator>former_member661603</dc:creator>
      <dc:date>2020-07-22T14:08:13Z</dc:date>
    </item>
  </channel>
</rss>

