<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Packing using WS_DELIVERY_UPDATE Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/packing-using-ws-delivery-update-error/m-p/7261921#M1528984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BAPIs for HU create/change work when HU management is switched on in your system. I had a similar requirement where packing was required without HU management. I got it working using Fm -BAPI_OUTB_DELIVERY_CONFIRM_DEC. Below is relevant code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_headerdata-deliv_numb = lv_delivery.&lt;/P&gt;&lt;P&gt;  ls_control-deliv_numb = lv_delivery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-hdl_unit_exid    = &amp;lt;fs_hdunhdr&amp;gt;-hdl_unit_exid.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-hdl_unit_exid_ty = 'F'.                        "External identifier&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-plant            = &amp;lt;fs_hdunhdr&amp;gt;-plant.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-ship_mat         = &amp;lt;fs_hdunhdr&amp;gt;-ship_mat.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-sh_mat_typ       = &amp;lt;fs_hdunhdr&amp;gt;-sh_mat_typ.&lt;/P&gt;&lt;P&gt;    append ls_bapidlvhdunhdr to lt_hdunhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-hdl_unit_exid_into  = &amp;lt;fs_hdunitm&amp;gt;-hdl_unit_exid_into.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-batch               = &amp;lt;fs_hdunitm&amp;gt;-batch.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-pack_qty            = &amp;lt;fs_hdunitm&amp;gt;-pack_qty_base.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-deliv_item          = &amp;lt;fs_hdunitm&amp;gt;-deliv_item.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-deliv_numb          = iv_delivery.&lt;/P&gt;&lt;P&gt;    append ls_bapidlvhdunitm to lt_hdunitm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        header_data          = ls_headerdata&lt;/P&gt;&lt;P&gt;        header_control       = ls_control&lt;/P&gt;&lt;P&gt;        delivery             = lv_delivery&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        item_data            = lt_bapiobdlvitemcon&lt;/P&gt;&lt;P&gt;        item_control         = lt_bapiobdlvitemctrlcon&lt;/P&gt;&lt;P&gt;        item_data_spl        = lt_bapiobdlvitemdataspl&lt;/P&gt;&lt;P&gt;        handling_unit_header = lt_hdunhdr&lt;/P&gt;&lt;P&gt;        handling_unit_item   = lt_hdunitm&lt;/P&gt;&lt;P&gt;        return               = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 14:03:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-06T14:03:58Z</dc:date>
    <item>
      <title>Packing using WS_DELIVERY_UPDATE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packing-using-ws-delivery-update-error/m-p/7261920#M1528983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been browsing the forums, and, despite the many examples available I can't put this FM(WS_DELIVERY_UPDATE) to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do Packing of outbound Delivery using VL02N.I am using below Code ,But it's not Working.&lt;/P&gt;&lt;P&gt;it's not giving any  error (Sy-subrc 0 &amp;amp; i_prot is empty )but it's not create any HU or Updating Delivery Document no.I also tried some BAPI for Create HU but still not woring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;BAPI_HU_CREATE&lt;/P&gt;&lt;P&gt;-&amp;gt;BAPI_HU_PACK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;wa_vbkok TYPE vbkok,&lt;/P&gt;&lt;P&gt;wa_hus TYPE TABLE OF vekpvb,&lt;/P&gt;&lt;P&gt;wa_pack TYPE REPACK_HU_WM OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;i_prot LIKE STANDARD TABLE OF prott WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : VERKO type VERKO occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_vbkok-vbeln = pvbeln.&lt;/P&gt;&lt;P&gt;wa_vbkok-vbeln_vl = pvbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**wa_pack-desthu = exidv.&lt;/P&gt;&lt;P&gt;wa_pack-quantity = pqty.&lt;/P&gt;&lt;P&gt;wa_pack-meins = pmeins.&lt;/P&gt;&lt;P&gt;wa_pack-matnr = pmatnr.&lt;/P&gt;&lt;P&gt;**wa_pack-charg = pcharg.&lt;/P&gt;&lt;P&gt;wa_pack-werks = pwerks.&lt;/P&gt;&lt;P&gt;wa_pack-lgort = plgort.&lt;/P&gt;&lt;P&gt;wa_pack-vbeln_vl = pvbeln.&lt;/P&gt;&lt;P&gt;wa_pack-posnr_vl = pposnr.&lt;/P&gt;&lt;P&gt;wa_pack-object = '01'.&lt;/P&gt;&lt;P&gt;wa_pack-objkey = pvbeln.&lt;/P&gt;&lt;P&gt;APPEND wa_pack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DELIVERY_UPDATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;VBKOK_WA = wa_vbkok&lt;/P&gt;&lt;P&gt;SYNCHRON = 'X'&lt;/P&gt;&lt;P&gt;COMMIT = 'X'&lt;/P&gt;&lt;P&gt;DELIVERY = wa_vbkok-vbeln&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;prot = i_prot&lt;/P&gt;&lt;P&gt;VERKO_TAB = VERKO&lt;/P&gt;&lt;P&gt;IT_PACKING = wa_pack&lt;/P&gt;&lt;P&gt;ET_CREATED_HUS = wa_hus&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR_MESSAGE = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nehal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 05:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packing-using-ws-delivery-update-error/m-p/7261920#M1528983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T05:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Packing using WS_DELIVERY_UPDATE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packing-using-ws-delivery-update-error/m-p/7261921#M1528984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BAPIs for HU create/change work when HU management is switched on in your system. I had a similar requirement where packing was required without HU management. I got it working using Fm -BAPI_OUTB_DELIVERY_CONFIRM_DEC. Below is relevant code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_headerdata-deliv_numb = lv_delivery.&lt;/P&gt;&lt;P&gt;  ls_control-deliv_numb = lv_delivery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-hdl_unit_exid    = &amp;lt;fs_hdunhdr&amp;gt;-hdl_unit_exid.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-hdl_unit_exid_ty = 'F'.                        "External identifier&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-plant            = &amp;lt;fs_hdunhdr&amp;gt;-plant.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-ship_mat         = &amp;lt;fs_hdunhdr&amp;gt;-ship_mat.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunhdr-sh_mat_typ       = &amp;lt;fs_hdunhdr&amp;gt;-sh_mat_typ.&lt;/P&gt;&lt;P&gt;    append ls_bapidlvhdunhdr to lt_hdunhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-hdl_unit_exid_into  = &amp;lt;fs_hdunitm&amp;gt;-hdl_unit_exid_into.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-batch               = &amp;lt;fs_hdunitm&amp;gt;-batch.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-pack_qty            = &amp;lt;fs_hdunitm&amp;gt;-pack_qty_base.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-deliv_item          = &amp;lt;fs_hdunitm&amp;gt;-deliv_item.&lt;/P&gt;&lt;P&gt;    ls_bapidlvhdunitm-deliv_numb          = iv_delivery.&lt;/P&gt;&lt;P&gt;    append ls_bapidlvhdunitm to lt_hdunitm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        header_data          = ls_headerdata&lt;/P&gt;&lt;P&gt;        header_control       = ls_control&lt;/P&gt;&lt;P&gt;        delivery             = lv_delivery&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        item_data            = lt_bapiobdlvitemcon&lt;/P&gt;&lt;P&gt;        item_control         = lt_bapiobdlvitemctrlcon&lt;/P&gt;&lt;P&gt;        item_data_spl        = lt_bapiobdlvitemdataspl&lt;/P&gt;&lt;P&gt;        handling_unit_header = lt_hdunhdr&lt;/P&gt;&lt;P&gt;        handling_unit_item   = lt_hdunitm&lt;/P&gt;&lt;P&gt;        return               = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 14:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packing-using-ws-delivery-update-error/m-p/7261921#M1528984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T14:03:58Z</dc:date>
    </item>
  </channel>
</rss>

