<?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: Picking with SD_DELIVERY_UPDATE_PICKING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/picking-with-sd-delivery-update-picking/m-p/4613247#M1086985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue with FM - SD_DELIVERY_UPDATE_PICKING - is that it cannot allocate a batch to a delivery line item( I have tried many times and even posted this question waiting for a valid solution, however none have come through) . The error which you see is a standard error which also displays the batch allottment, however as the batch is not assigned - only the material is displayed in the message. &lt;/P&gt;&lt;P&gt;One workaround to this is to manually update the batch in the sales order(via BDC) and then run this function module to PICK (or PGI). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Feb 2011 11:27:12 GMT</pubDate>
    <dc:creator>aditya_niyogi</dc:creator>
    <dc:date>2011-02-18T11:27:12Z</dc:date>
    <item>
      <title>Picking with SD_DELIVERY_UPDATE_PICKING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/picking-with-sd-delivery-update-picking/m-p/4613245#M1086983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module SD_DELIVERY_UPDATE_PICKING to pick delivery items. This FM is being called in a loop for each delivery item. Delivery has two items, and each item has to be picked in two batches. This FM call is working fine if there is only one item in delivery. When delivery with two items are processed, 2nd item throws error message as "Item 900003: Only 0 qty from material xxxx are available". But when I check the delivery after the FM call, it shows first item as picked correctly under two batches. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have showed the code I am using to call FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Loop at delivery_itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbkok-vbeln_vl = wa_e1edl20-vbeln.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbkok-wadat_ist = lv_pgidate.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-vbeln = wa_e1edl20-vbeln.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-posnn = wa_e1edl24-posnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-vbeln_vl = wa_e1edl20-vbeln.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-posnr_vl = wa_e1edl24-posnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-charg = wa_e1edl24-charg.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-matnr = wa_e1edl24-matnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-vbtyp_n = 'J'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_vbpok-taqui = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND wa_vbpok TO lt_vbpok.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...For each delivery item...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vbkok_wa = wa_vbkok&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;synchron = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nicht_sperren = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if_error_messages_send = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vbpok_tab = lt_vbpok&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;prot = lt_prot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried function module WS_DELIVERY_UPDATE in the same place of code. That also gives the same issue. I tried WS_DELIVERY_UPDATE as showed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'WS_DELIVERY_UPDATE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vbkok_wa = wa_vbkok&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;synchron = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;commit = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;delivery = wa_vbkok-vbeln_vl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;update_picking = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vbpok_tab = lt_vbpok&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;prot = lt_prot&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXCEPTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error_message = 99.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I tried to call the FM with all the delivery items appended in itab lt_vbpok. That doesn't work, gives the same error message. I have also taken care to wait until delivery update is commited. Also I am doing Enque and Deque for the delivery document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls suggest me if I am missing any parameters / any thing here ? I would greatly appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 12:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/picking-with-sd-delivery-update-picking/m-p/4613245#M1086983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T12:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Picking with SD_DELIVERY_UPDATE_PICKING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/picking-with-sd-delivery-update-picking/m-p/4613246#M1086984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;           Try this way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tvblkp.&lt;/P&gt;&lt;P&gt;    hvbpok-vbeln_vl = tvblkp-vbeln.&lt;/P&gt;&lt;P&gt;    hvbpok-posnr_vl = tvblkp-posnr.&lt;/P&gt;&lt;P&gt;    hvbpok-posnn = tvblkp-posnr.&lt;/P&gt;&lt;P&gt;    hvbpok-vbeln = vblkk-komau.&lt;/P&gt;&lt;P&gt;    hvbpok-vbtyp_n = 'Q'.&lt;/P&gt;&lt;P&gt;    hvbpok-pikmg = tvblkp-komng.&lt;/P&gt;&lt;P&gt;    hvbpok-meins = tvblkp-meins.&lt;/P&gt;&lt;P&gt;    hvbpok-ndifm = 0.&lt;/P&gt;&lt;P&gt;    hvbpok-taqui = ' '.&lt;/P&gt;&lt;P&gt;    if tvblkp-posnr &amp;gt; '900000' and not tvblkp-uecha is initial.&lt;/P&gt;&lt;P&gt;      hvbpok-taqui = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    hvbpok-charg = tvblkp-charg.&lt;/P&gt;&lt;P&gt;    hvbpok-matnr = tvblkp-matnr.&lt;/P&gt;&lt;P&gt;    hvbpok-brgew = tvblkp-brgew.&lt;/P&gt;&lt;P&gt;    hvbpok-gewei = tvblkp-gewei.&lt;/P&gt;&lt;P&gt;    hvbpok-volum = tvblkp-volum.&lt;/P&gt;&lt;P&gt;    hvbpok-voleh = tvblkp-voleh.&lt;/P&gt;&lt;P&gt;    hvbpok-orpos = 0.&lt;/P&gt;&lt;P&gt;    append hvbpok.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--call FM after the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sav_nast = nast.&lt;/P&gt;&lt;P&gt;  call function 'SD_DELIVERY_UPDATE_PICKING'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            nicht_sperren = 'X'&lt;/P&gt;&lt;P&gt;            vbkok_wa      = vbkok&lt;/P&gt;&lt;P&gt;            aufrufer_t    = 'X'&lt;/P&gt;&lt;P&gt;            if_error_messages_send = ' '&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            vbpok_tab              = hvbpok&lt;/P&gt;&lt;P&gt;            prot                   = lt_prot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 14:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/picking-with-sd-delivery-update-picking/m-p/4613246#M1086984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Picking with SD_DELIVERY_UPDATE_PICKING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/picking-with-sd-delivery-update-picking/m-p/4613247#M1086985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue with FM - SD_DELIVERY_UPDATE_PICKING - is that it cannot allocate a batch to a delivery line item( I have tried many times and even posted this question waiting for a valid solution, however none have come through) . The error which you see is a standard error which also displays the batch allottment, however as the batch is not assigned - only the material is displayed in the message. &lt;/P&gt;&lt;P&gt;One workaround to this is to manually update the batch in the sales order(via BDC) and then run this function module to PICK (or PGI). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 11:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/picking-with-sd-delivery-update-picking/m-p/4613247#M1086985</guid>
      <dc:creator>aditya_niyogi</dc:creator>
      <dc:date>2011-02-18T11:27:12Z</dc:date>
    </item>
  </channel>
</rss>

