2023 Feb 21 4:26 PM
I have adapted this example and it seems to work correctly when there is no error (duh!).
Problem is, when WS_DELIVERY_UPDATE_2 goes belly up the error message is displayed in the bar and that's a big no-no for my use case in a handheld scanner. I even tried this suggestion from jelena.perfiljeva2 although this system is probably way more recent than the comment.
Maybe I am doing something else wrong, but neither space nor abap_false have any effect here: HUGENERAL 075 is still being displayed in the bar.
The invocation of the function is as follows:
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = ls_vbkok_wa
delivery = pi_vbeln
update_picking = abap_true
no_messages_update_1 = abap_true
synchron = abap_true
commit = ' '
nicht_sperren_1 = 'Y'
if_database_update_1 = '1'
if_error_messages_send = space
TABLES
prot = lt_prot
verko_tab = lt_verko
verpo_tab = lt_verpo.
2023 Feb 22 7:41 AM
2023 Feb 22 7:41 AM
2023 Feb 23 2:54 PM