Inserting Batch Split Items in Delivery

Hi Folks,
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
thanks a lot in advance.
ZAM

Hi ZAMUser,
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
Regards
Frédéric
(comments are in french, and I play with special messages and text)
*   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.

Similar Messages

  • Quality certficates for batch split items in delivery

    Hi Masters
       How to make the output determination for outgoing quality certificates to select the output type LQCB
    for batch split items in Delivery.
    What is the routine to be selected in the output determination to map this scenario?
    Regards
    Mohan

    Hi Masters
            My problem is When i create a delivery for the items with batch split, the output type LQCB is not determined ie., not automatically get assigned in the delivery item.Hence the delivery items are not listed while executing T code QC20/
    What am I missing?
    -mohan

  • No Single batch split item created in delivery during picking

    Hello,
    When there is only one batch split item, SD_DELIVERY_UPDATE_PICKING is not creating batch split item (90001) if delivery quantity is equal or less than picking quantity...I didi search for SAP Note (1360407) and found one which is applicable only to P3A Component.
    Instead of batch split it updates at item level itself. Now if again i post an IDOC with 2 batch split, then it adds both picking quantity and update the same line item itself.
    This is much worse. Any one faced this issue before???
    Thanks to update me
    Regards
    Hari

    When the batch is the same, regardless of the number of times the same batch is picked, the update to the delivery will be to the same header line item. The batch split (delivery line split with parent and child line items) will occur only when there are multiple batches picked against the same header line item. Since this behavior is standard SAP I'm doubtful that this can be changed via an exit or BADI (I couldn't find one to influcence this).

  • Urgent ! delivery items and its batch split items

    Exports:
        How to find relationship between delivery items and its batch split items. Thanks alot.

    Talk to functional guy -
    List of tables which contains CHSPL
    VBAP
    LIPS
    KNVV
    KNMT

  • Constrain delivery quantity "0" in Batch Split item of DN

    Hi all,
      I have been done a "0" constrain on delivery quantity in items of DN which means there will never be "0" delivery quantity in item of DN. But in Batch Split situation , user can still make the delivery quantity "0" in batch split item and save the DN.
      So, can anyone tell me how to constrain the "0" in batch split situation.

    Hi..
    In 0VLP Check configuration related to BOM..
    Test the possibility...
    Reward if u finds this as USEFUL...
    Regds
    MM

  • Update picking quantity in delivery for batch split items

    Hi,
    I'm trying to use the function module WS_DELIVERY_UPDATE to update the existing deliveries. I'm able to do batch split for the items in delivery using the same FM. I have also requirement to delete these items (batch split items).
    To delete these items first we have to make quantities to zero. So I'm able to make delivery quantity of these items to zero but not picking quantity.
    If we do not make picking quantity also zero it will not allow to delete these items
    and gives an error message saying "item is already made available for transfer order".
    Could some one let me kow how to make picking quantity also zero for batch spit items using FM.
    Thanks

    Hi Vikram
    To nullify the Picking Quantity, we can use FM: <b>SD_DELIVERY_UPDATE_PICKING</b>.
    Parameters to be passed:
    VBKOK_WA
    -- VBELN_VL - Delivery Number
    -- VBELN - Sales Document Number
    SYNCHRON - 'X'
    VBPOK_TAB
    -- VBELN_VL - Delivery Number
    -- POSNR_VL - Delivery Item Number
    -- VBELN -- Sales Document Number
    -- POSNN -- Sales Document Item Number
    -- MATNR -- Material Number
    -- LFIMG -- '0.000'.
    Have tried this in both cases whereby we have partial picking done and full picking done and worked for both cases.
    Please try on your end too...
    Hope this helps.
    Regards
    Eswar

  • Update picking quantity in delivery (Batch split items) using function modu

    Hi All,
    I need to update a picking quantity with zero value in delivery for batch split items (Item numbers start with 900001. etc).I'm trying to use WS_DELIVERY_UPDATE
    and SD_DELIVERY_UPDATE_PICKING. I'm passing parameter VBKOK-KOMUE , and all other details, but it is not updating.
    I'm able to update delivery quantity of same item with zero value but not picking quantity.
    Could you please let me know how to achive this.
    Regards
    Vikram

    I think the number 900001is mean batch split line item.
    example:
    In Deivery Note:
    Item 10
         Batch 900001
         Batch 900002
    Item 20
         Batch 900003
         Batch 900004
    That right,

  • Creating Batch SPLIT items via WS_DELIVERY_UPDATE

    HI,
    I try to create batch split items into an inbound delivery. It works fine, but now we decided to have only one split item per material/batch.
    Now I've got the problem, that calling the ws_delivery_update from same screen several times, it works only every second call. Means:
    first call creates split item
    second call runs on error
    third call increases the split item amount, as it should do.
    fourth call runs on error  and so on...
    I guess that I have problems with buffers, initialization or something like that.
    Any ideas are welcome
    Best regards
    Patrick

    Hi Patrick,
    a very quick question. I was mining for info to get the batchsplit items inserted into an Outbound delivery thru the FM WS_DELI... sometime ago. Out of doubt and tight schedule I had to opt for Batch (direct input) which is not that elegant and I would like to know how you realised the batch split. A piece of code would be just what I am looking for.
    thanks a lot in advance.
    ZAM

  • Printing mataerial description for batch split material at delivery level

    Hi all,
    Here i am printing the material description which is maintained in the item level at sales order level.For each material they have maintained two material descripption.I am not able to display the second material description in my export invoice whenever the material is splited into batch ie batch split at delivery level. so please can anyone help me regarding this, I am not able to get it from long time.
    Regards,
    madhu

    Hi,
    You can create a two folders for printing the line items, one folder for the normal line-items and the other folder for printing the BAtch-Split Items. you can do this by putting condition as UEPOS NE 0 or UEPOS EQ 0. You can include the Item-Description of the Batch-Splitted item in the Corresponding folder, so when there will be a batchsplit it will get printed.

  • Batch Split Items appearing in the billing document

    Dear Friends,
    Batch determination is active in our system. In the delivery there are two main items. 10 and 20 and each has Batch split and the sub items are 90001 and 90002 respectively.
    Now in the billing document there appears are four items with item nos and qty as follows.
    item 10 qty 1 - main item having pricing etc
    item 20 qty 0 - batch split item no qty n no pricing
    item 30 qty 1 - main item having pricing etc
    item 40 qty 0 - batch split item no qty n no pricing
    The requirement is that there should not be any sub items with zero qty. Only main items to appear in the Billing document.
    One important observation I would like to share with you is that in the delivery document both main items and it's sub items have item category as TAN.
    Your help is appreciated.
    Regards,
    Vishi
    Edited by: Vishi19 on Apr 27, 2009 2:48 PM

    Dear US,
    Thanks for replying.
    What i would like to know here is if appearance of sub items with 0 qty n 0 price does not affect in the billing document then how come VPRS cost coming only in the item conditions of the sub items. I dont see the cost in the main items.
    What I want to knlow here is that does in any way these sub items affect the billing document? i mean in the accounting or data flow to CO-PA or something like that..?
    Regards,
    Vishi.

  • VPRS condition currency for batch split items

    Hi,
    i did the config for billing main item only in my delievry. that is batch split items will not be billed separately in billing.
    before doing the above change, the currency of VPRS was appearing as document currency but after doing the above config, the currency of VPRS is changed to material valuation currency.(i.e taken from material master)
    what is to be done so that currency for vprs in case of billing of main items shud be equal to document currency.
    if there is no batch split, there is no issue of currency. if there is batch split in delivery and i bill only main item, vprs currency gets changed to material master currency.
    regards
    sac

    Normally, it should work for both bath main item and batch split item.
    Please check the batch split items:
    - what's the item category. Is it relevant for picking?
    - what's the plant / sto.loc. in batch splite items? Is it assigned to a WM?
    - What's the value in LIPS-KOMKZ field for the batch split items? (EK00 is valid only when komkz = A).

  • There are still batch split items with quantity X for item

    Our current system is ECC6. The deletion of item in the delivery (TO
    confirmed) is different before ECC6 (4.6C). In 4.6, unless quantity of
    batch split items are zeroed out in the delivery, the item cannot be
    deleted. Message "There are still batch split items with quantity X for
    item" is encountered. In ECC, line item can be deleted even batch split
    items are not 0. The message doesn't exist in ECC6.
    Please advise how to activate this message.

    In ECC6, the logic has been completely changed during item deletion.
    Now, there is no way to activate the message VL224 when deleting batch item.
    In 46c,
    FORM XLIPS_LOESCHEN_PRUEFEN is called with XL_ERROR = 'X'.
    Main program     SAPFV50P
    Source code of   FV50PFLP_XLIPS_LOESCHEN_RC
    FORM XLIPS_LOESCHEN_RC
               IF IF_TABIX IS INITIAL.
                 REFRESH LT_REASONS.
                 PERFORM XLIPS_LOESCHEN_PRUEFEN TABLES   LT_REASONS      <<<<<<
                                                USING    LF_POSNR
                                                         CHARX        <<<<<<<
                                                         IF_ALL
                                                CHANGING LF_EXIT.
    In ECC6,
    The FORM is called with XL_ERROR = SPACE. That's why the error is not issued.
    Actually, they are called from different place in ECC and 46c. The logic has  been completely changed.
    Main Program     SAPMV50A
    Source code of   MV50AF0D        
    FORM DELETE_ITEMS_CHECK                                      
               perform xlips_loeschen_pruefen(sapfv50p) tables   ct_reasons   <<<<<
                                                        using    ls_admin-posnr
                                                                 space
                                                                 space   <<<<
                                                                 'GHK' "n_766525
                                                        changing lf_exit.

  • Batch split items in invoice

    Hello Friends,
    I have a delivery item with batch split and which consists of 5 batch split items. If i create an invoice from delivery , invoice is whowing all 5 batch split items as 5 line items in the invlice. User wants only the one item  with full quantity should show in invoice.
    Please guide me how to do this.
    Thanks,
    Ashok S

    fyi,
    -While Creating Invoice for Batch split material, System copies all the batch items including main item, where as, system should copy/combine all batch split items into Main item, batch split items should not be shown in different line items in Invoice.- ?
    In copy control from the delivery type to billing type VTFL, for the item category maintain billing quantity as G. This will ensure that the batches are clubbed into single line item.
    In Item Category of the Billing, goto VOV7 u2013 maintain billing relevance as u201CMu201D.
    - Batch Management in STO, after creating delivery via VL10F, wrt: STO order, automatic batch determination is not happening for the batch managed material. But for the same Material, from SD it is working fine. System displays message as u201C No Batch search procedure assigned to the order typeu201D
    In V/C5, batch has to assigned to the determination procedure in combination of Sales Org / Dist Channel / Division / Order type u2013 Search Procedure / Check batch indicator.
    *Sales area should be taken from STO-ME22n, Shipping tab at item level.
    *Order type should be, default Order type from the specific Delivery type eg:NL-
    Item Category for STO main item : NLN / batch item: ULN, both has to be marked for automatic batch determination indicator in IMG-LG-Batch Mgmt u2013 Batch detu2019n & Batch check u2013 Automatic batch detu2019n in SD u2013 Activate Auto. Batch detu2019n for Delivery Item Catu2019s
    After following above procedure, system displays error message as u201C Item Category is not maintainedu201D
    -Tcode:0184-Delivery item cat detu2019n
    Maintain entries as u201CDel type/Item cat group / Item Usage / High. Item Cat- Default, Item catu201D
    Eg: NL u2013 NORM u2013 CHSP -= ULN
    CHSP u2013 Batch split item.
    NOTE: Copy Controls from Delivery u2013 billing at item level u2013 ULN should not be maintained.

  • Batch Split Item

    What is the significance of Batch Split Item and how's it linked with HIGH LEVEL & LOW LEVEL BOM?

    Hem -
    As far as i know, the batch split does'nt have any relation ship with High or low level BOM.
    Suppose if you have inventory under two or three batches and if you want to consume it from all the three batch for one single line item in the delivery. Then the scenario of batch split happens in SD delivery.
    Batches are used in all the modules..
    Shiva.

  • Dont combine batch split items on one CoA

    When i print a CoA at goods issue i get one CoA for multiple batches if there is a batch split in the delivery. Item 10 was split up in 900001 and 900002. I get one coa with two batches on it. How can i make sure that the system will always print a new CoA per batch?
    Regards,
    Maarten
    Edited by: Maarten_m4 on Dec 14, 2010 10:47 PM

    You have to create the outputs at the batch split level only  Most folks create them at the item or header level of the delivery.  Your SD consultants should be able to help you set up the sequences properly..  The downside is that once you make that change to the delivery access sequences you will always have to assign the batch in the batch split screens even if you only assign one batch.
    The othe option is to make changes to the SAPscript that forces a new page and repeats all the header data.  The downside is that if you want a reprint or refax of the COA you get all batches reported out, you just have to pull the page that has the batch you want.
    FF

Maybe you are looking for

  • Using 3G cricket broadband to connect Wii to internet??

    I really don't know what I'm doing, can anyone offer any advice? I'm trying to connect our Wii to the internet using my Cricket Broadband 3G USB modem, plugged into my MacBook. I've tried to create a network with internet on, and it won't work. Will

  • Bug in JDev--help OTN

    Previously I had reported a problem in trying to define a rowSetInfo for a detail panel. In the queryinfo dialog the columns I was choosing were being ignored after clicking on the OK button. I finally discovered what the problem is. I have one maste

  • NumChildren doesn't show all children in the movieclip

    Hi, I have 2 movie clips inside another movieclip, when I trace numChildren on the parent movieclip it only shows 1. Anyone know why?

  • How do I verify apple ID

    Where do I get the email? Or the link I sign in and it says to verify so I click verify then it says click on link in the email I'm confused

  • Drive Died - Review of Rescue Applications?

    My hard drive on my computer died and I've had to replace it. Thankfully I was warned not to sync my Touch with empty iTunes! However I see there's quite a selection of software out there I can use to get my Touch contents copied back to a new copy o