<?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: Inserting Batch Split Items in Delivery in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932487#M61159</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;Use BAPI_OUTB_DELIVERY_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill Delivery number in HEADER_DATA and HEADER_CONTROL structures. Pass Delivery number in DELIVERY parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill ITEM_DATA. first line in itab with regular delievery line and next lines with the batch items.&lt;/P&gt;&lt;P&gt;First line - &lt;/P&gt;&lt;P&gt;DELIV_NUMB -Pass Delivery number&lt;/P&gt;&lt;P&gt;DELIV_ITEM - Pass the delivry item number&lt;/P&gt;&lt;P&gt;MATERIAL - Pass Material Number&lt;/P&gt;&lt;P&gt;DLV_QTY - Pass the final balance quantity after the batch split&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the rest of the entries in the ITEM_DATA tables fill the following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELIV_NUMB -Pass Delivery number&lt;/P&gt;&lt;P&gt;DELIV_ITEM - Pass the delivery batch item number (For eg, 900001)&lt;/P&gt;&lt;P&gt;MATERIAL - Pass Material Number&lt;/P&gt;&lt;P&gt;BATCH - Pass the batch number&lt;/P&gt;&lt;P&gt;HIERARITEM - Pass the delivery item number &lt;/P&gt;&lt;P&gt;DLV_QTY - Pass the quantity of the batch item&lt;/P&gt;&lt;P&gt;and other relevant fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ITEM_CONTROL itab&lt;/P&gt;&lt;P&gt;Pass delviery number, delivery item number and 'X' to CHG_DELQTY field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should split the line item after Commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2007 01:22:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-03T01:22:36Z</dc:date>
    <item>
      <title>Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932479#M61151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a very quick question. I was mining for info to get the batchsplit items inserted into an Outbound delivery thru the FM WS_DELIVERY_UPDATE sometime ago. Out of doubt and tight schedule I had to opt for BDC which is not that elegant and I would like to know if anyone of you gurus has managed to insert batch split items for a normal item in a delivery. A sample piece of code would be just what I am looking for, suggestions are invited&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot in advance. &lt;/P&gt;&lt;P&gt;ZAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 11:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932479#M61151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T11:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932480#M61152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ZAMUser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have played with batch-split Items, this is a little part of the code. In this code I try to update quantity of the delivery. Maybe that will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(comments are in french, and I play with special messages and text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   Livraison
    refresh wlt_btc.
    move : 'SAPMV50A'    to wlt_btc-program ,
           '4004'        to wlt_btc-dynpro ,
           'X'           to wlt_btc-dynbegin.
    append wlt_btc.
    clear  wlt_btc.
    move : 'BDC_OKCODE'  to wlt_btc-fnam ,
           '/00'         to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.
    move : 'LIKP-VBELN'    to wlt_btc-fnam ,
           wlt_badge-vbeln to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.

*   PoPo.
    move : 'SAPMV50A'    to wlt_btc-program ,
           '1000'        to wlt_btc-dynpro ,
           'X'           to wlt_btc-dynbegin.
    append wlt_btc.
    clear  wlt_btc.
    move : 'BDC_OKCODE'  to wlt_btc-fnam ,
           '=POPO_T'     to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.

*   Poste.
    if wlt_badge-uecha eq '00000000'.
      move wlt_badge-posnr to wlv_poste.
    else.
      move wlt_badge-uecha to wlv_poste.
    endif.
    move : 'SAPMV50A'    to wlt_btc-program ,
           '0111'        to wlt_btc-dynpro ,
           'X'           to wlt_btc-dynbegin.
    append wlt_btc.
    clear  wlt_btc.
    move : 'BDC_OKCODE'  to wlt_btc-fnam ,
           '=WEIT'       to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.
    move : 'RV50A-POSNR' to wlt_btc-fnam ,
           wlv_poste     to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.

*   Marque le poste
    move : 'SAPMV50A'    to wlt_btc-program ,
           '1000'        to wlt_btc-dynpro ,
           'X'           to wlt_btc-dynbegin.
    append wlt_btc.
    clear  wlt_btc.
    if wlt_badge-uecha ne '00000000'.
      move : 'BDC_OKCODE'  to wlt_btc-fnam ,
             '=CHSP_T'     to wlt_btc-fval .
    else.
      move : 'BDC_OKCODE'  to wlt_btc-fnam ,
             '=IDET_T'     to wlt_btc-fval .
    endif.
    append wlt_btc.
    clear  wlt_btc.
    move : 'BDC_CURSOR'     to wlt_btc-fnam ,
           'LIPS-POSNR(01)' to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.

    if wlt_badge-uecha ne '00000000'.
*     Recherche le sous poste.
      move : 'SAPMV50A'    to wlt_btc-program ,
             '3000'        to wlt_btc-dynpro ,
             'X'           to wlt_btc-dynbegin.
      append wlt_btc.
      clear  wlt_btc.
      move : 'BDC_OKCODE'  to wlt_btc-fnam ,
             '=POPO_T'     to wlt_btc-fval .
      append wlt_btc.
      clear  wlt_btc.

*     Sous Poste.
      move : 'SAPMV50A'    to wlt_btc-program ,
             '0111'        to wlt_btc-dynpro ,
             'X'           to wlt_btc-dynbegin.
      append wlt_btc.
      clear  wlt_btc.
      move : 'BDC_OKCODE'  to wlt_btc-fnam ,
             '=WEIT'       to wlt_btc-fval .
      append wlt_btc.
      clear  wlt_btc.
      move : 'RV50A-POSNR'   to wlt_btc-fnam ,
             wlt_badge-posnr to wlt_btc-fval .
      append wlt_btc.
      clear  wlt_btc.

*     Marque le sous poste
      move : 'SAPMV50A'    to wlt_btc-program ,
             '3000'        to wlt_btc-dynpro ,
             'X'           to wlt_btc-dynbegin.
      append wlt_btc.
      clear  wlt_btc.
      move : 'BDC_OKCODE'  to wlt_btc-fnam ,
             '=CDET_T'     to wlt_btc-fval .
      append wlt_btc.
      clear  wlt_btc.
      move : 'BDC_CURSOR'     to wlt_btc-fnam ,
             'LIPS-POSNR(01)' to wlt_btc-fval .
      append wlt_btc.
      clear  wlt_btc.
    endif.



*   Onglet Qtt
    move : 'SAPMV50A'    to wlt_btc-program ,
           '3000'        to wlt_btc-dynpro ,
           'X'           to wlt_btc-dynbegin.
    append wlt_btc.
    clear  wlt_btc.
    if wlt_badge-uecha ne '00000000'.
      move : 'BDC_OKCODE'  to wlt_btc-fnam ,
             '=T04'       to wlt_btc-fval .
    else.
      move : 'BDC_OKCODE'  to wlt_btc-fnam ,
             '=T05'       to wlt_btc-fval .
    endif.
    append wlt_btc.
    clear  wlt_btc.

*   Mise à jour Qtt livrée
    move : 'SAPMV50A'    to wlt_btc-program ,
           '3000'        to wlt_btc-dynpro ,
           'X'           to wlt_btc-dynbegin.
    append wlt_btc.
    clear  wlt_btc.
    move : 'BDC_OKCODE'  to wlt_btc-fnam ,
           '=SICH_T'     to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.
    move : 'LIPS-LFIMG'  to wlt_btc-fnam ,
           wlv_poids     to wlt_btc-fval .
    append wlt_btc.
    clear  wlt_btc.



*   Appels du call transaction.
    call transaction 'VL02N'  using wlt_btc
                              mode  'N'
                              update 'S'
                              messages into wlt_error.
    sort wlt_error by msgid msgnr.
*   Binary search
    read table wlt_error
         with key msgid = 'ZTPL'
                  msgnr = '011'
         binary search.
    if sy-subrc eq space.
      message i011(ztpl) with wlt_error-msgv1 wlt_error-msgv2.
    else.
      read table wlt_error
           with key msgid = 'ZTPL'
                    msgnr = '010'
           binary search.
      if sy-subrc eq space.
        message i010(ztpl) with wlt_error-msgv1 wlt_error-msgv2.
      else.
*       Pas de binary search pour la recherche d'erreur
        read table wlt_error
             transporting no fields
             with key msgtyp = 'E'.
        if sy-subrc eq space.
          message i398(00) with text-e01.
        else.
*         Mise à jours des masses dans les textes au niveau des postes
*         de livraison.
          concatenate wlt_lips-vbeln
                      wlt_lips-posnr
                      into wlv_tdname.
*         Masse net.
          move : 'VBBP'     to wls_thead-tdobject ,
                 wlv_tdname to wls_thead-tdname ,
                 'YP09'     to wls_thead-tdid ,
                 wlv_langu  to wls_thead-tdspras.
          move : wlt_bascule-poids to wls_tdline-tdline ,
                 '*'               to wls_tdline-tdformat .
          refresh wlt_tdline.
          append wls_tdline to wlt_tdline.
          call function 'SAVE_TEXT'
            exporting
              header                = wls_thead
              savemode_direct       = 'X'
            tables
              lines                 = wlt_tdline
            exceptions
              id                    = 1
              language              = 2
              name                  = 3
              object                = 4
              others                = 5.
*         Masse brut.
          move : 'YP07'            to wls_thead-tdid ,
                 wlt_bascule-poid2 to wls_tdline-tdline ,
                 '*'               to wls_tdline-tdformat.
          refresh wlt_tdline.
          append wls_tdline to wlt_tdline.
          call function 'SAVE_TEXT'
            exporting
              header                = wls_thead
              savemode_direct       = 'X'
            tables
              lines                 = wlt_tdline
            exceptions
              id                    = 1
              language              = 2
              name                  = 3
              object                = 4
              others                = 5.
*         Tare.
          move : 'YP08'            to wls_thead-tdid ,
                 wlt_bascule-poid3 to wls_tdline-tdline ,
                 '*'               to wls_tdline-tdformat.
          refresh wlt_tdline.
          append wls_tdline to wlt_tdline.
          call function 'SAVE_TEXT'
            exporting
              header                = wls_thead
              savemode_direct       = 'X'
            tables
              lines                 = wlt_tdline
            exceptions
              id                    = 1
              language              = 2
              name                  = 3
              object                = 4
              others                = 5.
        endif.
      endif.
    endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 12:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932480#M61152</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-08-30T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932481#M61153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply VJ, however i need a standard FM/BAPI to do the job. I am also looking at&lt;/P&gt;&lt;P&gt;WS_DELIVERY_UPDATE_2 which updates OUTBOUND DELIVERIES.&lt;/P&gt;&lt;P&gt;Let me know if you have anyother solution.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 13:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932481#M61153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932482#M61154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a similar requirement but was unable to find a FM or BAPI to perform multiple batch split on an outbound delivery. You can use WS_DELIVERY_UPDATE/2 to allocate a single batch number but it won't perform batch split.&lt;/P&gt;&lt;P&gt;I believe there is a BAPI available from 4.7 that allows you to perform multiple batch split called BAPI_OUTB_DELIVERY_CHANGE, I have not used it but from the documentation it looks possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function VB_BATCH_DETERMINATION will tell you if need to allocate a single batch number or need to perform batch spilt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end I used a combination of WS_DELIVERY_UPDATE2 and Batch Input. Using WS_DELIVERY_UPDATE2 when I needed to allocate a single batch number and batch input when batch split was needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 14:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932482#M61154</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2006-08-15T14:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932483#M61155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know if you find a way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 14:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932483#M61155</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2006-08-15T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932484#M61156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI! I want to insert batch split items in delivery. How can this be done.&lt;/P&gt;&lt;P&gt;Can you let me know how did u resolve this issue using bapi with a sample piece of code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 15:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932484#M61156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T15:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932485#M61157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess BAPI or WS_DELIVERY_UPDATE FM will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB_CREATE_BATCH - or &lt;/P&gt;&lt;P&gt;BAPI_BATCH_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 16:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932485#M61157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T16:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932486#M61158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I checked the bapi and function module that you gave me. Those function modules are for creation of Batches for material. This is done using transaction MSC1N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case batches has already been created. I want to insert batch split.&lt;/P&gt;&lt;P&gt;Say I have a delivery XXXX and item ITM1. It has a material MAT1 with quantity 5.&lt;/P&gt;&lt;P&gt;I want to change this to&lt;/P&gt;&lt;P&gt;delivery XXXX   item ITM1   material MAT1   batch B1   quantity 3.&lt;/P&gt;&lt;P&gt;delivery XXXX   item ITM1   material MAT1   batch B2   quantity 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came to know that we can use BAPI_OUTB_DELIVERY_CHANGE for this. I am not able to find the right inputs. Can you check? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Senthil G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932486#M61158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932487#M61159</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;Use BAPI_OUTB_DELIVERY_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill Delivery number in HEADER_DATA and HEADER_CONTROL structures. Pass Delivery number in DELIVERY parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill ITEM_DATA. first line in itab with regular delievery line and next lines with the batch items.&lt;/P&gt;&lt;P&gt;First line - &lt;/P&gt;&lt;P&gt;DELIV_NUMB -Pass Delivery number&lt;/P&gt;&lt;P&gt;DELIV_ITEM - Pass the delivry item number&lt;/P&gt;&lt;P&gt;MATERIAL - Pass Material Number&lt;/P&gt;&lt;P&gt;DLV_QTY - Pass the final balance quantity after the batch split&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the rest of the entries in the ITEM_DATA tables fill the following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELIV_NUMB -Pass Delivery number&lt;/P&gt;&lt;P&gt;DELIV_ITEM - Pass the delivery batch item number (For eg, 900001)&lt;/P&gt;&lt;P&gt;MATERIAL - Pass Material Number&lt;/P&gt;&lt;P&gt;BATCH - Pass the batch number&lt;/P&gt;&lt;P&gt;HIERARITEM - Pass the delivery item number &lt;/P&gt;&lt;P&gt;DLV_QTY - Pass the quantity of the batch item&lt;/P&gt;&lt;P&gt;and other relevant fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ITEM_CONTROL itab&lt;/P&gt;&lt;P&gt;Pass delviery number, delivery item number and 'X' to CHG_DELQTY field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should split the line item after Commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 01:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932487#M61159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T01:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932488#M61160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Prasad Ji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 sale order with multiple line items and different batches...i wanna design a z program to create partial deliveries of that sale order considering batches...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which bapi should i use???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 11:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932488#M61160</guid>
      <dc:creator>former_member623135</dc:creator>
      <dc:date>2013-09-26T11:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932489#M61161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After almost 8 years, greetings from Portugal &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1322/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; Your post has been extremely useful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;João&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 18:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932489#M61161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-22T18:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932490#M61162</link>
      <description>&lt;P&gt;For someone still looking for an answer to this: here's the key to achieve Batch Split using BAPI_OUTB_DELIVERY_CHANGE&lt;/P&gt;&lt;P&gt;In ITEM_DATA, pass 1st line with main Delivery Line (e.g. 000010) with 0 Delivery Qty and pass 2nd line with Item = 900001, Batch &amp;amp; Qty.&lt;/P&gt;&lt;P&gt;In ITEM_CONTROL, pass 1st line with main Delivery Line (e.g. 000010) with Blank in CHG_DELQTY and pass 2nd line with Item = 900001 and X in CHG_DELQTY.&lt;/P&gt;&lt;P&gt;I achieved this after wasting one whole day.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 21:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932490#M61162</guid>
      <dc:creator>jainsaras18</dc:creator>
      <dc:date>2020-03-12T21:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932491#M61163</link>
      <description>&lt;P&gt;I have been working that problem. I have been trying much test data. One of them was as you mentioned.&lt;/P&gt;&lt;P&gt;I have also read the SAP document. It made similiar comments.&lt;/P&gt;&lt;P&gt;In ITEM_DATA, &lt;/P&gt;&lt;P&gt;DELIV_NUMB = 80000093 DELIV_ITEM = 000010&lt;/P&gt;&lt;P&gt;DELIV_NUMB = 80000093
DELIV_ITEM=900001
MATERIAL=3000000090001
BATCH=1000000798
HIERARITEM=000010
USEHIERITM=1
DLV_QTY=4
DLV_QTY_IMUNIT=4&lt;/P&gt;&lt;P&gt;ITEM_CONTROL.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;DELIV_NUMB=80000093
DELIV_ITEM=000010
CHG_DELQTY&lt;/P&gt;&lt;P&gt;DELIV_NUMB80000093
DELIV_ITEM900001
CHG_DELQTYX&lt;/P&gt;
 &lt;BR /&gt;</description>
      <pubDate>Tue, 26 May 2020 12:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932491#M61163</guid>
      <dc:creator>former_member664245</dc:creator>
      <dc:date>2020-05-26T12:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932492#M61164</link>
      <description>When I did it this way, I couldn't run it.&lt;BR /&gt;</description>
      <pubDate>Tue, 26 May 2020 12:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932492#M61164</guid>
      <dc:creator>former_member664245</dc:creator>
      <dc:date>2020-05-26T12:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932493#M61165</link>
      <description>&lt;P&gt;I tried with same way...but it is not working ...it is not updating the delivery.&lt;/P&gt;&lt;P&gt;Please provide data with all fiedls that we need to fill in bapi.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 12:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932493#M61165</guid>
      <dc:creator>former_member15804</dc:creator>
      <dc:date>2020-10-21T12:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Batch Split Items in Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932494#M61166</link>
      <description>&lt;P&gt;I tried with same way...but it is not working ...it is not updating the delivery.&lt;/P&gt;&lt;P&gt;Please provide data with all fiedls that we need to fill in bapi.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 12:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-batch-split-items-in-delivery/m-p/932494#M61166</guid>
      <dc:creator>former_member15804</dc:creator>
      <dc:date>2020-10-21T12:09:42Z</dc:date>
    </item>
  </channel>
</rss>

