Skip to Content

handle errors/exceptions in WS_DELIVERY_UPDATE_2

hi all,

I am tryng to do batch split using 'WS_DELIVERY_UPDATE_2'. it did split in few cases.

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.

how to handle errors/exceptions. it just stops there and i am not able to continue with the program further.

.

CALL FUNCTION 'WS_DELIVERY_UPDATE_2'

EXPORTING

vbkok_wa = it_vbkok_wa

synchron = 'X'

  • NO_MESSAGES_UPDATE_1 = ' '

commit = v_commit

delivery = v_delvry

  • UPDATE_PICKING = ' '

  • NICHT_SPERREN_1 = ' '

  • IF_CONFIRM_CENTRAL = ' '

  • IF_WMPP = ' '

  • IF_GET_DELIVERY_BUFFERED = ' '

  • IF_NO_GENERIC_SYSTEM_SERVICE = ' '

if_database_update_1 = '1'

  • IF_NO_INIT_1 = ' '

  • IF_NO_READ_1 = ' '

if_error_messages_send = 'X'

  • IF_NO_BUFFER_REFRESH = ' '

  • IT_PARTNER_UPDATE =

  • IT_SERNR_UPDATE =

  • IF_NO_REMOTE_CHG_1 = ' '

  • IF_NO_MES_UPD_PACK = ' '

  • IF_LATE_DELIVERY_UPD = ' '

IMPORTING

EF_ERROR_ANY = EF_ERROR_ANY

EF_ERROR_IN_ITEM_DELETION = EF_ERROR_IN_ITEM_DELETION

EF_ERROR_IN_POD_UPDATE = EF_ERROR_IN_POD_UPDATE

EF_ERROR_IN_INTERFACE = EF_ERROR_IN_INTERFACE

EF_ERROR_IN_GOODS_ISSUE = EF_ERROR_IN_GOODS_ISSUE

EF_ERROR_IN_FINAL_CHECK = EF_ERROR_IN_FINAL_CHECK

EF_ERROR_PARTNER_UPDATE = EF_ERROR_PARTNER_UPDATE

EF_ERROR_SERNR_UPDATE = EF_ERROR_SERNR_UPDATE

TABLES

vbpok_tab = it_vbpok_tab[]

  • PROT =

  • VERKO_TAB =

  • VERPO_TAB =

  • VBSUPCON_TAB_1 =

  • IT_VERPO_SERNR =

  • IT_PACKING =

  • IT_PACKING_SERNR =

  • IT_REPACK =

it_handling_units_1 = it_rehang[]

  • IT_OBJECTS =

ET_CREATED_HUS = it_CREATED_HUS[]

  • TVPOD_TAB =

.

if sy-subrc = '0'.

write:/ 'ok'.

else.

write:/ 'failed'.

endif.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 22, 2007 at 04:39 PM

    Change your code to:

    if_error_messages_send = space

    If you send 'X' the messages are displayed, otherwise they don't. Look at the message_send_check_do routine in the FM.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 29, 2007 at 06:12 PM

    add to code:

    EXCEPTIONS

    error_message = 4

    IF sy-subrc eq 4.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO g_c_mensaje.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 19, 2007 at 02:33 AM

    Answered!1

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.