Skip to Content

WS_DELIVERY_UPDATE is not posting

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:

Getting error while calling two BAPIs

Error BS001 when posting goods movment with FM WS_DELIVERY_UPDATE

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 18, 2012 at 10:42 AM

    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...

    Add comment
    10|10000 characters needed characters exceeded