Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

WS_DELIVERY_UPDATE is not posting

pablo_marn
Active Participant
0 Kudos

Hi gurus,

I am having some problems with FM WS_DELIVERY_UPDATE. My program packs HUs into a inbound delivery, and then it has to post the delivery:


    wa_vbkok-vbeln_vl = v_vbeln.
    wa_vbkok-wabuc = 'X'. "CONTABILIZAR
    CALL FUNCTION 'WS_DELIVERY_UPDATE'
      EXPORTING
        vbkok_wa  = wa_vbkok
        synchron  = 'X'
        commit    = 'X'
        delivery  = v_vbeln
      TABLES
        prot      = it_prot
     EXCEPTIONS
       error_message = 1.

This is the CALL for the posting; no error messages or exceptions appear, but it doesn't work. Putaway, Packing and WM status are ok, but the GM doesn't change.

I have checked some thread about this FM with similar issues, but they are not exactly the same:

Thanks in advance.

1 REPLY 1

Former Member
0 Kudos

Hello,

Did you check the return parameters for ws_Delivery_update?

CALL FUNCTION 'WS_DELIVERY_UPDATE'
           EXPORTING
             vbkok_wa                    = ls_koko
             synchron                    = 'X'
             commit                      = ''
             delivery                    = lv_deliv
             update_picking              = lv_picking_flag
             nicht_sperren               = ' '
             if_confirm_central          = ' '
             if_wmpp                     = ' '
             if_error_messages_send_0    = ''
           IMPORTING
             ef_error_any_0              = lv_error
             ef_error_in_item_deletion_0 = lv_error
             ef_error_in_pod_update_0    = lv_error
             ef_error_in_interface_0     = lv_error
             ef_error_in_goods_issue_0   = lv_error
             ef_error_in_final_check_0   = lv_error
           TABLES
             vbpok_tab                   = lt_kopo
           EXCEPTIONS
             OTHERS                      = 4.

there might some error being raised on this  check Lv_error and sy-subrc both...