Batch splitting for Outbound delivery using BAPI_OUTB_DELIVERY_CHANGE

Hi all,
Let me explain the scenario first.
We are going to create a delivery in SAP with some line items and send it to a non-sap third party WMS.  They will pick the goods and send the delivery confirmation back to SAP.  In SAP we need to delivery confirmation and PGI.
The problem is when the third Part WMS does a batch split for a particular line item, we need to update the same in SAP and then do the PGI.  For this I was trying to use BAPI_OUTB_DELIVERY_CHANGE to create split batches.  It is splitting the batches but the overall pick status is becoming B (Partially picked).  SO it is not allowing to do the PGI.
Can anyone solve my problem

Hi Bala,
make sure you are setting...
itemdata-dlv_qty
itemdata-dlv_qty_imunit
itemdata-fact_unit_nom     e.g = 1.
itemdata-fact_unit_denom  e.g = 1.
Rgds
Glenn

Similar Messages

  • Unable to update Qty for outbound Delivery using BAPI_OUTB_DELIVERY_CHANGE

    Hi Experts,
    I am unable to update the Outbound Delivery quantity using FM BAPI_OUTB_DELIVERY_CHANGE. I am getting error in BAPI Return "Error in document &1 item &2 (quantity consistency check)".
    Here is my sample program to update Quantity
    *& Report  ZTEST_BAPI                                                  *
    REPORT  ZTEST_BAPI                              .
    tables : lips.
    parameters : v_vbeln like likp-vbeln,
                 v_posnr like lips-posnr.
    data : it_item type BAPIOBDLVITEMCHG occurs 0,
           wa_item type BAPIOBDLVITEMCHG,
           it_return type BAPIRET2 occurs 0,
           i_head type BAPIOBDLVHDRCTRLCHG,
           i_hdata type BAPIOBDLVHDRCHG,
           wa_conf type BAPIOBDLVITEMCTRLCHG,
           it_conf type BAPIOBDLVITEMCTRLCHG occurs 0.
    start-of-selection.
    select single * from lips into lips where
                      vbeln = v_vbeln
                      and posnr = v_posnr.
    if sy-subrc eq 0.
    move lips-vbeln to I_hdata-DELIV_NUMB.
    *append wa_hdata to i_hdata.
    move lips-vbeln to wa_item-DELIV_NUMB.
    move lips-posnr to wa_item-DELIV_ITEM.
    move lips-matnr to wa_item-MATERIAL.
    move lips-charg to wa_item-BATCH.
    lips-LFIMG = lips-LFIMG + 20.
    move  lips-LFIMG to wa_item-DLV_QTY.
    move  lips-LGMNG to wa_item-DLV_QTY_IMUNIT.
    move  lips-VRKME TO wa_item-SALES_UNIT.
    MOVE  'KGM'      TO WA_ITEM-SALES_UNIT_ISO.
    MOVE LIPS-MEINS  TO WA_ITEM-BASE_UOM.
    MOVE 'KGM'  TO WA_ITEM-BASE_UOM_ISO.
    append wa_item to it_item.
    move lips-vbeln to wa_conf-DELIV_NUMB.
    move lips-posnr to wa_conf-DELIV_ITEM.
    move 'X' to wa_conf-CHG_DELQTY.
    append wa_conf to it_conf.
    endif.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        HEADER_DATA               = i_hdata
        HEADER_CONTROL            = i_head
        DELIVERY                  = v_vbeln
      TECHN_CONTROL             =
      TABLES
      HEADER_PARTNER            =
      HEADER_PARTNER_ADDR       =
      HEADER_DEADLINES          =
       ITEM_DATA                 = it_item
       ITEM_CONTROL              = it_conf
      ITEM_SERIAL_NO            =
      SUPPLIER_CONS_DATA        =
      EXTENSION1                =
      EXTENSION2                =
        RETURN                    = it_return
      TOKENREFERENCE            =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    I need to update Qty to the outbound delivery for an given item.
    Thanks for your quick response.
    With Regards,
    Bala Sankar
    9900433488

    Hi Bala,
    make sure you are setting...
    itemdata-dlv_qty
    itemdata-dlv_qty_imunit
    itemdata-fact_unit_nom     e.g = 1.
    itemdata-fact_unit_denom  e.g = 1.
    Rgds
    Glenn

  • Create a Batch split for inbound delivery using IDOC

    Hi,
    I have an requirement to create Batch splits in the Inbound delivery.
    These Inbound deliveries are created using IDOC.
    So when the inbound deliveries are created through IDOC the Batch split is not happening.
    How can i achieve this through Coding?
    Any pointers on this will be highly appreciated.

    Hi ,
    Try this link.
    http://wiki.sdn.sap.com/wiki/display/ABAP/Toapplybatchsplitinanoutbound+delivery
    Regards
    HM

  • Error while doing PGI for Outbound delivery using BAPI BAPI_GOODSMVT_CREATE

    Hi All,
    I am getting an below error while doing PGI for outbound delivery using the BAPI BAPI BAPI_GOODSMVT_CREATE:
    Goods movement not possible with mvmt type 601
    Can anyone suggest me what will be the solution for it?
    Regards,
    Raghuraman.k

    I tried with the above BAPI but it is not working.
    In my case a delivery has one line item with batch split and other line item without batch split.
    Below is my code :
    DATA : gwa_header_data TYPE bapiobdlvhdrcon,
           gwa_header_ctrl TYPE bapiobdlvhdrctrlcon,
           lv_delivery     TYPE bapiobdlvhdrcon-deliv_numb,
           git_item_data TYPE STANDARD TABLE OF bapiobdlvitemcon,
           gwa_item_data TYPE bapiobdlvitemcon,
           git_item_ctrl TYPE STANDARD TABLE OF bapiobdlvitemctrlcon,
           gwa_item_ctrl TYPE bapiobdlvitemctrlcon,
           git_return    TYPE STANDARD TABLE OF bapiret2,
           gwa_return    TYPE bapiret2.
    *Header data
    gwa_header_data-deliv_numb = '0808000002'.
    *Header Control data
    gwa_header_ctrl-deliv_numb = '0808000002'.
    gwa_header_ctrl-post_gi_flg = 'X'.
    *Delivery Number
    lv_delivery = '0808000002'.
    *Item data and its corresponding control data
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '900002'.
    gwa_item_data-dlv_qty         = 4.
    gwa_item_data-dlv_qty_imunit  = 4.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '900002'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '900003'.
    gwa_item_data-dlv_qty         = 6.
    gwa_item_data-dlv_qty_imunit  = 6.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '900003'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '000020'.
    gwa_item_data-dlv_qty         = 10.
    gwa_item_data-dlv_qty_imunit  = 10.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '000020'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    BREAK-POINT.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
      EXPORTING
        header_data    = gwa_header_data
        header_control = gwa_header_ctrl
        delivery       = lv_delivery
      TABLES
        item_data      = git_item_data
        item_control   = git_item_ctrl
        return         = git_return.
    BREAK-POINT.
    IF git_return IS INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.

  • Splitting the outbound delivery VL10b

    Hi,
    I am facing the very weird problem. i am using the retail envirnoment ecc 6.0.
    i have scheduled daily batch job for outbound delivery creation from STO's through VL10B transaction.
    As per the SAP standard system it should create a single delivery for one customer consolidating all STO's related to that customer/site.
    but unfortunately system is not behaving like this and creating split deliveries for singel site/customer.
    I have also checked the number of line items in the delivery they are much less than 999  so there should not be any reason to create split delivery.
    can anybody guide in what aread i can look to resolve this?
    thanks in advance
    Praful

    hi
    it does vary actually we have mix sto's ( i.e one is directly created STO and other is created through allocation table )  from which creating deliveries. but in both the cases we dont have much line item even sometimes they are less than 20.
    praful

  • Goods Receive for Outbound Delivery Without Reference using MIGO

    Dear Colleague ...
    We might need your insight on the case below related to Goods Receive of Outbound Delivery without Reference using MIGO:
    (1) In the current SAP Enjoy screen of MIGO, we are allowed to select the reference document (e.g. = PO, Material Document, Inbound Document, Outbound Document, etc.)
    (2) We did 3 (three) kind of test set: GR for Inbound Delivery, GR for Outbound Delivery with STO and GR for Outbound Delivery without reference.
    (3) The first 2 (two) cases work just find with MIGO.  We believe it is because the receiving plant is pretty much determined in the reference document, which is PO (case 1) or STO (case 3)
    (4) However, the last case came up with the error message "Goods receipt not possible for delivery 8000610236: error code 5".  We believe that this is the standard design of SAP, that the receiving plant is required and it is not defined explicitly in the delivery document.
    (5) Moreover, we also believe that that's the reason why SAP (via the Logistic Execution module) provide the Handling Unit and Shipment, which can be used to perform such receive function, which will imply the MM posting (goods issue and goods receive) IF there is stock transfer involved.
    Appreciate for any thoughts or input on the above.  Many thanks,
    Alvon Sibarani

    use transaction mb0a it will work for the scenario.

  • Create outbound delivery using VL10B for Stock Tranfer order

    Hi ALL gurus,
    I had created STO stock transfer order (UB order type ) and release the STO using ME21N and ME29N
    When try create a outbound delivery using VL10B, the STO not show, i remove all check and blank in all seclection. The STO still not show.
    Anyone can help ?? where going wrong ???
    Rejoice

    Hi
    There are two processes for STO , that is with shipping & without shipping.
    For Without Shipping there is no config required.
    For STO with shipping You need to configure in
    SPRO-> IMG-> Materials Management-> Purchasing-> Purchase Order-> Set up Stock Transport Order
    Please go through the link on all types fo STO's
    http://help.sap.com/saphelp_erp2004/helpdata/EN/4d/2b90dc43ad11d189410000e829fbbd/content.htm
    Thanks & Regards
    Kishore
    Edited by: Kishore Kumar Chiluka on Jul 2, 2008 8:25 AM

  • 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

  • Create TO automatic by using wave pick for outbound delivery NLC (STPO)

    Dear all,
    In Cross company code process, we have to create TO automatic by using wave pick for outbound delivery NLC (delivery type NLCC). Time data in outbound delivery NLC have been fulfilled, but there is no TO created, what is wrong in this? pls help.
    Thanks

    Hi Kishor,
    Is there any requirement of TO when ECC system is Interfaced to EWM.
    As per my understanding we have terminology WT & WO in EWM.
    Regards,
    Rock

  • Need to apply Batch split for deliveries.Please suggest

    I had tried to apply batch split for delivery using the function module 'BAPI_OUTB_DELIVERY_CHANGE'.After running the program i get a message saying 'Batch split is done for a decentralised system - WMS' and the delivery can be seen only in display mode where the change is disabled.
    Please suggest solution to apply batch split and view it normally.
    Points will be awarded for helpful answers
    Edited by: venkata on Apr 10, 2008 10:52 AM

    thanks

  • GI for outbound delivery is not getting done despite of the enough stock

    Hi SAP Gurus,
    I was trying to post the goods Issue for the outbound delivery through VL02N. But I'm getting the Error <b>"M7 021" Deficit of BA unrestricted use</b>. I've created a Tranfer Order for the Delivery and also confirmed the transfer order successfully. The delivery quantity is already there in the destination storage type/bin. But still the GI is not getting done. I'd moved the material from two different storage types to the origin storage type to fullfil the delivery quantity. And then I did LT03 ( TO for Delivery) to move the quantity out of the origin storage type to the destination storage type.
    A help from someone of you will be much Appreciated.
    Thanks
    Dhaval Joshi

    Hi there!!
    Yes we are using batch split option. Delivery quantity was automatcally splitted into several batches using FIFO rule as all the materials in the system are batch managed. so when you do LT03(TO for delivery) the system will FIFO the bathes to fulfill the delivery quantity from the storage type(s) selected. Eventually the delivery quantity will be splitted into several batches and FIFO rule is realized.
    I've checked the all the batches and it seems that the system is giving this error for the batches which were FIFOed from one storage type. Other batches which were FIFOed from a different storage type doesn't have this Error message for Deficit of BA unrestricted Use. I wonder if this has something to do with the storage type.!!!
    I really appreciate all the vaulable inputs from all you folks.
    Thanks
    Dhaval

  • Creating Outbound Delivery using BAPI

    Hi All,
    Can anyone advice is there any way to create Oubound Delivery using BAPI.
    If you have come accross with such developments or idea, can you please share your idea?.
    Thanks,
    Muruganand.K

    Hi,
    Use BAPI_DELIVERYPROCESSING_EXEC - Create Delivery from Delivery Due List
    BAPI_OUTB_DELIVERY_CONFIRM_DEC  BAPI for Outbound Delivery Confirmation from a Decentralized System
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized System
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_OUTB_DELIVERY_CREATENOREF
    BAPI_OUTB_DELIVERY_CREATE_SLS
    BAPI_OUTB_DELIVERY_CREATE_STO
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    Also check
    BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N
    BAPI / FM for Create Outbound Delivery for PO
    Outbound  Delivery User Exits
    EXIT_SAPLV50I_003              User Exit BAPI Outbound Delivery Replication
    EXIT_SAPLV50I_004              User Exit BAPI Outbound Delivery Confirmation
    EXIT_SAPLV50K_007              User Exit BAPI Outbound Delivery Replication (Outbound from Sender System)
    Function module: OIJ_EL_DOCG_CREATE_DELIVERY - Create outbound delivery

  • Dynamic Calculation of SLED for Outbound Delivery

    All,
    I have a situation to pick batches at the time of outbound delivery using batch determination. We have a situation where we have some materials which are expiration date managed and some which are not.
    I have set up the batch search strategy with batch status LOBM_ZUSTD (batch is set to released). in the selection criteria
    For Dynamic selection of SLED date i have maintained the selection criteria as LOBM_VFDAT, LOBM-RLZ>0 d. No changes made to the object dependency.
    The Batch Class for Finished goods has LOBM_VFDAT, and no LOBM_RLZ and LOBM_LFDAT.
    In OVM1 i have set the message VL 415 as an error . ' Invalid batch according to batch determination'
    When i am doing a picking of batches for the outbound delivery the strategy analysis gives the SLED > Del. date + Min rem. shelf life e.g Del. date is 4/30 and Min Rem Shelf Life is >0 d.
    When i pick a restricted batch it gives me the correct error message.
    When i pick a batch with unrestricted batch status and an expired batch it gives me an error message.
    When i try to pick a batch which is unrestricted batch with no SLED date it gives me an error message. What is the method to allow picking of batches with no SLED date .
    Thanks for your help with this.

    If you can distinguish between the materials with and w/o shelf life management through a field which is available in the field set of the condition tables (e.g material group, product hierarchy), you could use that field for your condition table and define two condition records in VCH1 - one with selection criteria and one without.
    (you can also consider adding such field to the field cataloge [and then to the condition table], if you have a clear and sensible rule [pls note that adding a field to the field cataloge requires also development to populate the field of the communication structure with value during the program run]).
    It is also possible to influence the batch determination, e.g. via user exit EXIT_SAPLV01F_002 (e.g. you can replace the search procedure [KALSM] for materials w/o SLED and determine different strategy).

  • Batch split line in delivery

    Hi,
    In my system, I have configured automatic batch determination for my delivery item category.
    Now when the system determines the batch, even if there is one batch, the system creates a batch split line (with line number as 900001).
    Is this a standard system behaviour?
    Is there a way that we can have only one line if there is just one batch and go to a batch split line only when there are more than 1 batches.
    pls let me know. Any help would be highly appreciated.
    Thanks
    AB

    Hi Arijeet,
    please do the follow .
    SPRO: LOGISTIC EXECUTION->SHIPPING->DELIVERIES->DEFINE ITEM CATEGORIES
    Choose the item categories you use and check the flag "autobatchdeterm".
    Make sure that you have the right item category determination for the delivery type with Usage: CHSP (take delivery LF as an example). The path is:
    SPRO: LOGISTIC EXECUTION->SHIPPING->DELIVERIES->DEFINE ITEM CATEGORY DETERMINATION.
    Then you have to activate the ATP check in delivery process:
    SPRO: SALES..->BASIC FUNCTION->AVAILABILITY..->AVAILABILITY CHECK->AVAILABILITY CHECK WITH ATP LOGIC->CARRY OUT CONTROL...
    you have to check the configuration for the combination:
    CH Batches - B SD delivery and
    02 Individ.requirements (if you use it in the MRP of you material master) - B SD delivery.
    if you give me brief i can help you out more.
    Thank you .
    Regards
    Ram

  • Batch Split on a delivery

    Hi All,
    Can someone explain what batch split on the delivery means and how it works . Why is it used?
    Thanks,
    Sandeep.

    Hi,
    You can just search the forum or help.sap.com documentation for details.
    For example, Check the SAP link [Executing Batch Splits in Deliveries|http://help.sap.com/saphelp_47x200/helpdata/en/dd/560cd0545a11d1a7020000e829fd11/frameset.htm]
    Regards

Maybe you are looking for

  • Problem with *serial no. profile* in work sheduling view of material master

    Hi ! ! I am here with a problem with serial no. profile in work sheduling view of material master. By mistake for some FHMI type ( PRODUCTION RESOURCE TOOLS )materials, serial no profile exist in 'work sheduling' view. Due to that we are facing probl

  • Unable to open or view: "For the best experience..." problem

    My system is Mac OS X (Browsers: Safari, Chrome, Firefox). I have been trying to browse Adobe's Interactive PDF Showcase for examples of professional output. Instead of the PDF opening up for viewing, I get, "For the best experience, open this PDF po

  • Does AppleTV sync both the HD and SD versions?

    Hi, When you sync AppleTV with iTunes on your MAC does it copy SD versions of a TV shows to AppleTV along with the HD version? My iTunes on my MAC is appears to be showing that the AppleTV has both, but I'm not sure. Cheers.

  • Closing after a few seconds

    Hi, After the Update to 11.0.4 of Acrobat Pro XI - the program closes after a few secondes... If I Open the preference - Acrobat stay open, but as soon a go back to my file, the soft close... Same problem with Distiller... What can I do???

  • Shutting down port 67

    How do I shut down port 67 running IOS 12,2(50)? "no dhcp service" doesn't seem to affect it and I get the following error from "no ip bootp server" myrouter(config)#no ip bootp server ^ % Invalid input detected at '^' marker.