2007 Feb 16 10:21 AM
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.
2007 Feb 22 4: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.
2007 Mar 29 7: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.
2020 Jul 22 3:08 PM
2007 Jun 19 3:33 AM