<?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: Delivery Items not getting packed programmatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-items-not-getting-packed-programmatically/m-p/2246921#M485149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pack items in handling unit linked to a delivery, you can use FM WS_DELIVERY_UPDATE_2.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of the call of FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_vbkok-vbeln_vl =  p_vbeln. "delivery number&lt;/P&gt;&lt;P&gt;w_verko-exidv = wa_vekp_pal-exidv. "HU in which you pack&lt;/P&gt;&lt;P&gt;APPEND w_verko TO i_verko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_verpo.&lt;/P&gt;&lt;P&gt;w_verpo-exidv_ob = wa_vekp_pal-exidv.&lt;/P&gt;&lt;P&gt;w_verpo-EXIDV = wa_vekp_col-exidv.&lt;/P&gt;&lt;P&gt;w_verpo-velin = '3'. " 3 to pack a HU in another one&lt;/P&gt;&lt;P&gt;                            " 1 to pack a material in a HU&lt;/P&gt;&lt;P&gt;w_verpo-vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt; APPEND w_verpo TO i_verpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR i_repack.&lt;/P&gt;&lt;P&gt;        w_repack-desthu = wa_vekp_pal-exidv. "HU in which you pack&lt;/P&gt;&lt;P&gt;        w_repack-sourcehu = wa_vekp_col-exidv. "HU to be packed&lt;/P&gt;&lt;P&gt;        w_repack-packhu = 'X'.&lt;/P&gt;&lt;P&gt;        APPEND w_repack TO i_repack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DELIVERY_UPDATE_2'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        vbkok_wa      = w_vbkok "delivery number&lt;/P&gt;&lt;P&gt;        delivery      = p_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     = i_verko&lt;/P&gt;&lt;P&gt;        verpo_tab     = i_verpo&lt;/P&gt;&lt;P&gt;        it_repack     = i_repack&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;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jan 2008 14:25:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-26T14:25:01Z</dc:date>
    <item>
      <title>Delivery Items not getting packed programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-items-not-getting-packed-programmatically/m-p/2246920#M485148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to create a handling unit in delivery using BAPI_HU_CREATE and BAPI_HU_CHANGE_HEADER. However I m not able to pack the items into the handling unit. I have tried BAPI_HU_PACK, PACK_HANDLING_UNIT_DLVRY etc but nothing is working. Most likely i m not passing the right parameters. Please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will give points for the right answer. Thanks for reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 22:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-items-not-getting-packed-programmatically/m-p/2246920#M485148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T22:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delivery Items not getting packed programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-items-not-getting-packed-programmatically/m-p/2246921#M485149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pack items in handling unit linked to a delivery, you can use FM WS_DELIVERY_UPDATE_2.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of the call of FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_vbkok-vbeln_vl =  p_vbeln. "delivery number&lt;/P&gt;&lt;P&gt;w_verko-exidv = wa_vekp_pal-exidv. "HU in which you pack&lt;/P&gt;&lt;P&gt;APPEND w_verko TO i_verko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_verpo.&lt;/P&gt;&lt;P&gt;w_verpo-exidv_ob = wa_vekp_pal-exidv.&lt;/P&gt;&lt;P&gt;w_verpo-EXIDV = wa_vekp_col-exidv.&lt;/P&gt;&lt;P&gt;w_verpo-velin = '3'. " 3 to pack a HU in another one&lt;/P&gt;&lt;P&gt;                            " 1 to pack a material in a HU&lt;/P&gt;&lt;P&gt;w_verpo-vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt; APPEND w_verpo TO i_verpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR i_repack.&lt;/P&gt;&lt;P&gt;        w_repack-desthu = wa_vekp_pal-exidv. "HU in which you pack&lt;/P&gt;&lt;P&gt;        w_repack-sourcehu = wa_vekp_col-exidv. "HU to be packed&lt;/P&gt;&lt;P&gt;        w_repack-packhu = 'X'.&lt;/P&gt;&lt;P&gt;        APPEND w_repack TO i_repack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DELIVERY_UPDATE_2'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        vbkok_wa      = w_vbkok "delivery number&lt;/P&gt;&lt;P&gt;        delivery      = p_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     = i_verko&lt;/P&gt;&lt;P&gt;        verpo_tab     = i_verpo&lt;/P&gt;&lt;P&gt;        it_repack     = i_repack&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;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 14:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-items-not-getting-packed-programmatically/m-p/2246921#M485149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T14:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delivery Items not getting packed programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-items-not-getting-packed-programmatically/m-p/2246922#M485150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi   Hervé,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i successfully run the following F.M,but what my problem is after i did my &lt;STRONG&gt;PGI (Post Goods Issue)&lt;/STRONG&gt; i need to catch the material document number for that Delivery order, i unable to catch the material document number , could plz help me ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using following code .&lt;/P&gt;&lt;P&gt;l_vbkok-vbtyp_vl = 'J'.&lt;/P&gt;&lt;P&gt;l_vbkok-vbeln = l_vbkok-vbeln_vl = DONO. "do number&lt;/P&gt;&lt;P&gt;l_VBKOK-WABUC = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND L_VBKOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_verko-object = '01'.&lt;/P&gt;&lt;P&gt;l_verko-objkey = DONO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND: l_verko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH I_LIPS.&lt;/P&gt;&lt;P&gt;SELECT * FROM LIPS&lt;/P&gt;&lt;P&gt;INTO TABLE I_LIPS&lt;/P&gt;&lt;P&gt;WHERE VBELN = DONO AND CHARG NE ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear i_vbpok.&lt;/P&gt;&lt;P&gt;loop at i_lips..&lt;/P&gt;&lt;P&gt;*move-corresponding i_lips to i_vbpok.&lt;/P&gt;&lt;P&gt;i_VBPOK-VBELN_VL = i_lips-VBELN."Delivery&lt;/P&gt;&lt;P&gt;i_VBPOK-POSNR_VL = i_lips-POSNR."Delivery Item&lt;/P&gt;&lt;P&gt;i_VBPOK-POSNN = i_lips-POSNR."Delivery Item&lt;/P&gt;&lt;P&gt;i_VBPOK-VBELN = i_lips-VBELN."Pick Order&lt;/P&gt;&lt;P&gt;i_VBPOK-VBTYP_N = 'Q'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_VBPOK-PIKMG = I_LIPS-LFIMG.&lt;/P&gt;&lt;P&gt;i_VBPOK-MEINS = i_LIPS-ME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&gt;EXPORTING&lt;/P&gt;&lt;P&gt;wait = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Advance Thanks ,&lt;/P&gt;&lt;P&gt;jana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2008 04:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-items-not-getting-packed-programmatically/m-p/2246922#M485150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-26T04:03:13Z</dc:date>
    </item>
  </channel>
</rss>

