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

Similar Messages

  • 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

  • Issue with BATCH SPLIT with Inbound Delivery

    Hi,
    We are in an SAP upgrade project from 4.7 to ECC 6.0, we would require to develop an Interface Program to perform BATCH SPLIT for an Inbound Delivery, I tried with BAPI BAPI_INB_DELIVERY_CHANGE but it seems to be work only to change the existing line items, by requirement is to create new BATCH SPLIT for a given inbound delivery, can anyone help me in finding the appropriate BAPIs, thanks in advance.
    Regards
    Bala

    Hi Bala,
    Have you tried BAPI_INB_DELIVERY_CONFIRM_DEC? If you check the documentation of this BAPI, at the bottom of it there's a statement:
    If you report back batch splits that were created in the ERP system, you cannot fill the hierarchy fields HIERARITEM and USEHIERITM.
    If you created split items in the WM system and have reported back, these two hierarchy fields must contain information.
    BR
    Raf

  • Bapi for inbound delivery using PO

    Hi experts,
    I want to create a bapi for inbound delivery using PO.
    which bapi or FM should i use and can you send me the code for that.
    Thanks,
    Rajiv

    Hi Rajiv,
    Please check this FM --> BAPI_DELIVERYPROCESSING_EXEC
    Please check these threads
    Bapi to create inbound delivery
    BAPI to create inbound delivery
    Hope this would help you.
    Good luck
    Narin

  • BAPI For Inbound Delivery using Purchase Order Number

    Hi All,
    Is there any BAPI for posting Inbound Delivery (VL31N) using Purchase Order as reference.
    thanks
    bobby

    Not sure what it has to do with enhancements and modifications, but there is no such BAPI:
    http://tech.groups.yahoo.com/group/ABAP/message/38307
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/bapi-for-inbound-delivery-creation-and-update-vl31n-1201265
    FYI all BAPIs may be viewed in BAPI transaction.

  • Batch Split in Inbound Delivery document

    Hello Friends,
      In decentralized WM managed scenario, inbound delivery is created automatically when the storage location is HU managed.   In the current design, we need to use MIGO/MB1B transaction for replicating stocks into warehouse location, and all the materials are managed.
    We have a batch split management to use for distributing the cumulative batches into warehouse.  In our testing, transaction MB1B cannot support batch split management however transaction MIGO is closely supporting our need.  In the MIGO, we have a distributed quantity functionality and through this we can able to split the quantity into multiple batches. 
    However, when during inbound delivery generation (Inbound delivery generates in background from MIGO document when location is HU managed), system is generating the individual line item instead batch split, example -
    In MIGO -
    Total Quantity - 10
    Item: 00001
    Material : ZZZYYY
    Batch1:  AAAA
    Quantity : 4
    Item: 00001
    Material : ZZZYYY
    Batch2:  AAAB
    Quantity : 6
    In Inbound Delivery -
    Item:10
    Material : ZZZYYY
    Batch1:  AAAA
    Quantity: 4
    Item:20
    Material : ZZZYYY
    Batch2:  AAAB
    Quantity : 6
    We need as below in inbound delivery -
    Item:10
    Material : ZZZYYY
    item: 90001
    Batch1:  AAAA
    Quantity : 4
    item: 90001
    Batch2:  AAAB
    Quantity : 6
    Please suggest.  Appreciate your reply.
    Thanks
    Best Regards,
    Goutam

    use BAPI: BAPI_OUTB_DELIVERY_CONFIRM_DEC
    I used this long time back. it worked fine.

  • Batch split in inbound delivery VL31N / VL32N

    Hi,
    I am using standard function GN_DELIVERY_CREATE in order  to create inbound delivery document, it works fine, but it doesn't allow to specify batch split!
    So, in order to enter a batch split I have as first create the delivery with this standard function and then enter in VL32N and create the split through batch input.
    I am experiencing a lot of issues using batch input in VL32N (same thing with VL32), I need to avoid the call transaction, is there someone that have solved this problem through a BAPI or some other standard function that allows to create batch split?
    Thank you in advance
    Alessandro

    use BAPI: BAPI_OUTB_DELIVERY_CONFIRM_DEC
    I used this long time back. it worked fine.

  • Trigger internal serial nos creation for inbound delivery using DELVRY03

    Hi all,
    I am working in ECC 6.0 I need to update serial nos in the inbound delivery. The internal serial nos. that will be generated by the system, I have to trap them for a given delivery and map it to a set of external serial nos.(length is 40 chars) and update in a Z table.
    For changing the delivery, I am using idoc DELVRY03 (message SHPCON). Within the idoc I am not able to find any such field which will trigger the automatic creation of internal serial nos. In case of idoc MBGMCR03 (goods movement), there is a field E1BP2017_GM_ITEM_CREATE-SERIALNO_AUTO_NUMBERASSIGNMENT which when set to 'X', the internal serial nos are automatically generated and can be found in table SER03.
    I want a similar thing for the DELVRY03 idoc. Can anyone help me on this?
    If not possible through Idoc, then whats the other option?
    My aim is to just get the internal serial nos created through delivery change activity.
    Note - The serial no. profile cannot have the option of serial no. usage set to '04 - automatic' in SPRO as per the client's business process.
    Thanks,
    Shoma

    Hi Shoma,
    copy the FM  which is assigned to your processcode and copy to ZFM and write your modifications on that ZFM.
    It will resolves your problem.
    Regards,
    Venkat.

  • Post Goods Receipt for Inbound Delivery using WHSCON IDoc

    Dear All
    Currently I am working on a big project dealing with EDI connections to our logistics partner for the Export business. The entire message flow between Lindt and our partner should be via EDI. Our SAP release is (still) 4.6c.
    We will create two kinds of despatch advice messages, one for inbound deliveries and one for outbound deliveries for customers.
    I would appreciate your support in the following problem that I am facing with the inbound delivery scenario:
    We create stock transport orders (purchase orders, POs) for the goods intended to be delivered into the plant at our partner
    We create a delivery (type NL = replenishment delivery) for this POs
    As soon as we post the goods issue we send the despatch advice (as EANCOM D96A DESADV message) to our partner.
    At this point the delivery is basically completed, i.e. packing status (PS) and goods movement status (GM / GS) are equal to 'C' (= completed).
    Our logistics partner uses the same EDI message to send us the goods receipts data, e.g.:
    We dispatched 50 units of a product => QTY:50:12
    The partner received indeed 50 units => QVR:50:66
    Please note that we do not use the QVR segment for the quantity difference (between despatched and received quantity) but it contains the received units. This way we avoid negative values in the QVR segment.
    When the logistics partner sends back the DESADV message containing the received quantities (QVR segment) we want to make
    the goods receipts for the products in the original stock transport order and
    upate the message flow in the delivery
    My idea was to transform the incoming DESADV message into a WHSCON.DELVRY03 IDoc based on the documentation in: [Delivery Interface|http://help.sap.com/saphelp_crm40/helpdata/en/e2/654b15a9f411d184ec0000e81ddea0/content.htm]
    In the delivery header control E1EDL18 I used QUALF = 'PGI' (Post goods issue).
    I prepared an inbound WHSCON IDoc according to the documentation mentioned below. I managed to get some feedback from the Idoc processing implying that the system tried to do the goods receipt in the PO but failed.
    To make a long story short here are my questions:
    Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
    Does anybody have an example on how to fill the WHSCON IDoc?
    Or is my approach a cul-de-sac ?
    Kind Regards
       Uwe
    PS: A related question can be found here: Goods Receipt in PO AND Message Flow Update in Inb. Delivery using WMMBXY

    Hi Uwe,
    Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
    The binary answer would be no. You should use WMMBXY or MBGMCR instead.
    But if we are doing goods receipt against Inbound delivery then answer is YES with additionally E1EDL18-QUALF = 'PIC' populated. But please remember no partial receipt is possible against Inbound Delivery.
    We should populate E1EDL20-VBELN with our Inbound delivery number and line item info should go to E1EDL24.
    I have done a similar interface recently where we are doing receipt against Inbound delivery. But our case was a bit complex because we had to support against Inbound delivery. So we had to go for a custom solution on top of IDOC_INPUT_DELVRY.
    Hope this helps. Let me know if you have more questions.
    Regards,
    Rudra

  • Batch split in inbound delivery according to Handling Units in Idoc

    Hi everyone,
    the Idoc with different HU's segments E1EDL37 (all the same batch no.), causes different items in the inbound delivery. But we need only one item, because it's the same batch no.!
    Where can I customize this?
    Thx in advance!
    Thomas

    use BAPI: BAPI_OUTB_DELIVERY_CONFIRM_DEC
    I used this long time back. it worked fine.

  • Problem with HU during creation of Inbound Delivery using IDoc

    Hi,
    When I am creating Delivery manually and perform Packing, Handling Unit information is stored in VEKP and VEPO tables.
    But when I am processing through IDoc, after passing data to Handling Unit Segments E1EDL37 (Handling unit header), E1EDL39 (Control Segment for Handling Units), E1EDL44 (IDoc: Handling Unit Item - Delivery), It is creating delivery successfully but Handling Unit information is not getting stored in VEKP, VEPO tables.
    Tried most of the notes 912470, 678464, 682506 and all of them say "<i>You use the Idoc DESADV to create inbound delivery with packing data. The delivery is created, Idoc gets status 52 but the Handling Units (HUs) are missing. This is due to a program error. In case the IDoc contains segments to create HUs (E1EDL37), the IDoc processing should end in error status (51) as long as no packing data could be created</i>.".
    Need your advice whether we have to maintain any customizing for this or how to proceed with it.
    Thanks in advance,
    Murali.

    IDocs and BAPIs sometimes behave differently than transactions. You might need to add a user exit specifically for IDoc processing. Otherwise send a message to SAP and have them look at it.

  • Mapping for Inbound Delivery (ASN) Idoc

    Can anyone post the mapping and fields needed for posting Inbound Delivery against PO using incoming IDOC from vendor.
    We are not using Handling Unit Management for inbound deliveries, but still getting the error "Field EXIDV empty" Field EXIDV is for Handling Unit Number.
    How to overcome this error "Field EXIDV empty".
    Thanks

    Hi,
    I would check to make sure that your receiving storage location is not activated for HUM management
    Normally an Inbound delivery would only request EXIDV if you were trying to post stock to a HUM managed storage location
    Can you create an inbound delivery without this issue directly in SAP (via VL31N with the same IDOC data?)
    Steve

  • Post Goods Receipt for Inbound Delivery via IDoc SHPCON (DELVRY03)

    hi all,
    I'm using IDoc SHPCON (Delvry03) for posing goods receipt for inbound delivry.
    Can anyone give a sample IDoc or tell which segments must be filled.
    Thanks!
    Regards,
    Hui

    Hi Uwe,
    Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
    The binary answer would be no. You should use WMMBXY or MBGMCR instead.
    But if we are doing goods receipt against Inbound delivery then answer is YES with additionally E1EDL18-QUALF = 'PIC' populated. But please remember no partial receipt is possible against Inbound Delivery.
    We should populate E1EDL20-VBELN with our Inbound delivery number and line item info should go to E1EDL24.
    I have done a similar interface recently where we are doing receipt against Inbound delivery. But our case was a bit complex because we had to support against Inbound delivery. So we had to go for a custom solution on top of IDOC_INPUT_DELVRY.
    Hope this helps. Let me know if you have more questions.
    Regards,
    Rudra

  • SAP System inconsistency for Inbound delivery / MIGO and a "sap note"

    Hello Friends ,
    After following SAP instruction on how to remove the inconsistency between posting GR through MIGO (Inv. mang.) and the reflection of the goods movement status in the inbound delivery document - done that using sap note 570991
    the problem is that the system start behaving in a weird way throwing unjustified Error messages for any suggested goods receipt using MIGO with reference to inbound
    for example after creating an inbound delivery document and trying to post it via migo , an error will pop up
    - Inbound delivery storage location cannot be changed to here Message no. VLA316
    the thing is i didn't even maintain any storage location entry up to that point and yet i cannot post any stock !!
    also another error  like
    - Inbound delivery batch cannot be changed to *** here
    which doesn't make any sense because there is not batches in the inbound document !!
    i think this behavior is coming from the "Document Flow Update for Stock Postings" inbound  indicator  at the shipping parameter at client level customization
    i need help on  how to overcome this annoying SAP Bug/Problem specially i am in a post go live critical situation

    Hi,
       The messages you mentioned were introduced to avoid inconsistency between inbound delivery and IM, through the note:  1050944 - GR for inbound delivery using inventory mgmt as of ECC 6.00
       If the messages are issued incorrectly, then you may check for SAP notes (I couldnt find anything relevant) or raise an OSS ticket to SAP.
    Regards,
    AKPT

  • Goods receipt for inbound delivery

    Hi,
    I'm using idoc  DELVRY03 in order to post a goods issue. And It's working very well.
    I want to make a goods receipt for an inbound delivery using idoc DELVRY03. When I use this idoc for this (To make a goods receipt), my delivery can't be updated any more (Just like if the goods issue was done) and Its status are updated. And I can't to make the goods receipt manually. But the stock isn't updated, No item document is generated, and the quantity received is still equal to 0.
    Can any one please tell me if there is a special thing I need to do in order It works. And If It's not possible, to make the goods receipt using delvry03, what's the idoc type allowing to do this.
    Thanks in advance

    Hi
    Please try using idoc type DESADV01.
    Please award points if  you find this helpful
    rgds

Maybe you are looking for