DELVRY01 via IDoc with batch split

Hi Experts!
Process:
-a supplier sends delivery information via EDI to us
-the supplier cannot do a batch split, so he sends us the delivery like that
Delivery (delivery order, material number, ...)
|
|-Pos 1
|    |
|    |-box 1 (batchnumber)
|    |-box 2 (batchnumber)
|    |-box 3 (batchnumber)
|    |-box 4 (batchnumber)
|
|
|-Pos 2
|    |
|    |-box 5 (batchnumber)
|    |-box 6 (batchnumber)
|    |-box 7 (batchnumber)
|    |-box 8 (batchnumber)
|
|
Technical infos at our side (customer)
-IDoc typeDESADV
-message type: DELVRY01
-FM which perform the incoming IDoc: IDOC_INPUT_DESADV1
Problem:
How can I get the structure above into a IDoc? The problem is that in DELVRY01 (also DELVRY02 and -03, in R/3 4.7 and ERP6.0) I only can insert the batch number once per position of a delivery!
So I try to use the described E1EDL19 segment with control qualifier BAS. I also generated lower positions with the flag HIPOS in E1EDL24, but it doesn't work. The IDoc is processed correctly without errors but when I look into the delivery (via Tcode: VL32N or MIGO) I see just main items - three positions (in case I had insert one main item with two lower items)!!
SAP Documentation for delivery
Does anybody has a hint for me how should I use the DELVRY01 type ?
regards,
Steffen Fröhlich

Steffen -
I have a similar problem and was wondering if the discoveries you made would fall in that space , currently when we are sending the 856(Advanced shipping notification's ) for batch split items the standard SAP functionality is to put a "0" qty at LGMNG (actual delivered qty field)and populate the various batch quantities at the sub level. Currently the edi mapping is such that only the LGMNG is mapped. In the scenario of batch split items we are sending back "0" qty eventhough they have a valid qty ! any idea how to resolve this ?
would this require a custom code to add a new field to cumulative the batch splits ?
Is there another standard field that edi can map to pass this information?
Is there std edi mapping rules for this scenario?

Similar Messages

  • Inbound Delivery: Inbound WHSCON IDoc with Batch Split - HowTo...?

    Hello
    We have another tricky problem to solve on our ERP 6.0 system.
    My colleagues of Lindt UK create manually inbound deliveries (VL33N) which are replicated to the warehouse (DESADV IDoc -> TRADACOMS.ORDHDR).
    When the goods arrive at the warehouse they send back a good receipts message (TRADACOMS.DLCHDR -> WHSCON IDoc).
    In some cases we have a batch split because the goods have been put into different storage locations. Example:
    - item 10: 200 Cases of product 4711, batch 10-2011,  in storage location '0001' (free available for Sale)
    - item 10:     5 Cases of product 4711, batch 10-2011, in storage location '0004' (damaged)
    I am aware that in the inbound WHSCON item 10 is a main position and the two actual batch split positions are sub-items (900001 & 900002 with HIPOS = '10'). I tried to used E1EDL19-QUALF = 'BAS' (= batch split) with the sub-items but failed so far to update the inbound delivery that I can see the batch split.
    I have managed to get one sub-item but not 2 of them. Somehow the system aggregates the quantities for both sub-items into the single item that shows up in the inbound delivery.
    When we send the inbound delivery to the warehouse the item looks like this:
    - item 10: 200 Cases (no batch yet, Putaway quantity = 0, because these data are coming from the warehouse).
    QUESTION: Has anybody else been faced with a similar (if not identical) problem and how did you solve it?
    Thanks a lot in advance for your valuable input.
    Regards
      Uwe

    Hello Finbarr
    I assume that you do NOT send any (suggested) batches to your warehouse. Otherwise you would have the same problem like we have that the WHSCON cannot overwrite a (suggested) batch.
    However, if you just send the quantity per item then the batch split is much simpler than you suggested:
    "First E1EDL24 segment:
    POSNR     50
    MATNR     000000000000602006
    MATWA     000000000000602006
    CHARG     L1519   " <<< first batch
    LFIMG     37.000
    VRKME     CT
    "Second E1EDL24 segment:
    POSNR     50
    MATNR     000000000000602006
    MATWA     000000000000602006
    CHARG     L1880   " <<< second batch
    LFIMG     37.000
    VRKME     CT
    Well, and as qualifier we use: E1EDL19-QUALF = 'XYZ'  " a dummy
    The SAP system is smart enough the realize that these two E1EDL24 segment belong to the same item yet have different batches and, therefore, yield a batch split in the delivery. The system generated the 9xxxxx numbers for this sub-item lines automatically.
    Although I believe that it is not possible to change a batch in the delivery using an inbound WHSCON I would appreciate to have a final proof of this assumption. I could imagine that if you first delete the item containing the suggested batch and then add a new item with the actual batch from the warehouse it might works. However, this would require to implement a user-exit which I do not prefer.
    Regards
      Uwe
    PS: It seems I gave an answer to the wrong question (should be EDI (DESADV): Can batches be overwritten by an inbound WHSCON (pick conf)? )

  • Inbound Delivery Idoc with batch split then PIC and PGI using DELIVERY03

    Dear Experts,
    Requirement to split the delivery item then PIC and PGI, while Processing Inbound Idoc using basic Idoc type DELIVERY03
    I have searched forum already but it vain. Please advice.
    Thanks and Regards,
    Thiru.
    Moderator message : Spec/requirements dumping not allowed, show the work you have already done.  Thread locked.
    Edited by: Vinod Kumar on Nov 16, 2011 5:09 PM

    Hello Finbarr
    I assume that you do NOT send any (suggested) batches to your warehouse. Otherwise you would have the same problem like we have that the WHSCON cannot overwrite a (suggested) batch.
    However, if you just send the quantity per item then the batch split is much simpler than you suggested:
    "First E1EDL24 segment:
    POSNR     50
    MATNR     000000000000602006
    MATWA     000000000000602006
    CHARG     L1519   " <<< first batch
    LFIMG     37.000
    VRKME     CT
    "Second E1EDL24 segment:
    POSNR     50
    MATNR     000000000000602006
    MATWA     000000000000602006
    CHARG     L1880   " <<< second batch
    LFIMG     37.000
    VRKME     CT
    Well, and as qualifier we use: E1EDL19-QUALF = 'XYZ'  " a dummy
    The SAP system is smart enough the realize that these two E1EDL24 segment belong to the same item yet have different batches and, therefore, yield a batch split in the delivery. The system generated the 9xxxxx numbers for this sub-item lines automatically.
    Although I believe that it is not possible to change a batch in the delivery using an inbound WHSCON I would appreciate to have a final proof of this assumption. I could imagine that if you first delete the item containing the suggested batch and then add a new item with the actual batch from the warehouse it might works. However, this would require to implement a user-exit which I do not prefer.
    Regards
      Uwe
    PS: It seems I gave an answer to the wrong question (should be EDI (DESADV): Can batches be overwritten by an inbound WHSCON (pick conf)? )

  • WM with Batch split

    Hi Friends
    Greetings!
    We have the following issue with batch split.
    When we create Transfer order for outbound delivery , batch split happens and the TO gets created with two line item based on the bach.
    After confirming the TO and when we try to post PGI, the system issues the error message
    " X24408003104230 ; available stock in interim storage bin around 50.000 ST below target"  
    Can you please let us know if i am missing any settings
    Gobinathan G

    Hi
    Thanks for your feedback.
    As requested , please find the error code
    "E L9 040"
    The patch split was carried out through WM. When we created transfer order for the delivery, as the required stock was available in different batches, system picked the stock from two different batches. And the transfer order also got confirmed.
    Please give your suggestion to complete teh PGI.
    Gobinathan G

  • Line with 0 quantity for main item with batch split

    Hello experts,
    I have one line item in delivery. Delivery split is there: There are 1 spilt items with 1 batch nos. The main item category and the batch split item category are TAN.
    My system is showing 2 line items in billing, the batch line with quantity and the main line with zero qty. How to prevent this and have only the lines item in invoice with batch/qty. I don´t want to see the main item with o quantity.
    In VTFL I have routine for copying requirements 004 and Billing Quantity B. I need to create another copying routine or I need to use another item category for batch lines?
    Thanks in advance
    Pablo

    Hi Pablo,
    It is advisable to have a different item category for Batch split items.
    If you want the batch split items to suppress and show only the Total in the Invoice. Yes it is possible.
    1) You can do this in the Copy controls in VTFL - Delivery to Billing, go to your Item category and go to Item details - Change the billing Qty to 'G'.
    2) Go to Shipping > Deliveries > Item categories Determination in Deliveries > Define item category.
    Go to your item category which is used in Batch Split
    Remove the Billing Revelance and make it blank and Save.
    Now when you create the Invoice for Batch split - Only the total quantity will be displayed without the subitems - like in Delivery note or Delivery..
    Please check and revert back for any more details
    Rgds
    Sunil.

  • 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

  • Subcontracting - Mov 541 with Batch Split

    Hi,
    I'm trying to send materials with batch management to subcontract. My problem is when I do the MB1B (541) to send 1KG of the roh material X and I have to batchs of 0,5KG I cannot do this at the same time. Do you know if has a batch split to do that or other solution?
    Thanks,
    Guiza

    Hi
    Split the batch numbers according to the availability i.e 0.5 KG each and give ref batch number against each line item.
    cheers!!!!!!!!

  • Config Manager 2012 client upgrade (via package with batch commands)

    Hello all,
    I would like to kindly ask for your help with my question regarding a SCCM 2012 R2 client upgrade (from RTM to R2)
    Recently, we have upgraded from RTM version of SCCM2012 to R2 (with the PXE hotfix applied)
    During the process, I have choose not to upgrade clients when the SP1 was applied and go straight for the R2, which is not a problem I believe. 
    My question is regarding the pre-created packages, that are showing up in the console. I believe, that they are the easiest way to upgrade clients via packages in SCCM. (we can't push the installation due network policy)
    This hotfix is stored here: \\"FQDN_site_server"\SMS_TSP\hotfix\KB2905002\Client\x64    (in case of x64 version, x86 is the same but x86 in the end)
    The executed file from this path is this with this command following: 
    msiexec.exe /p configmgr2012ac-r2-kb2905002-x64.msp /L*v %TEMP%\configmgr2012ac-r2-kb2905002-x64.msp.LOG /q REINSTALL=ALL REINSTALLMODE=mous
    Anyway, when we install the clients when we deploy it for the first on a machine, that has no client or we reinstall it, we do it with help of this batch command:
    set curdir=%~dp0
    %curdir%ccmsetup.exe SMSSITECODE=TSP /NoCRLCheck /UsePKIcert /forceinstall SMSMP=HTTPS://CML.LTSPRAGUE.CZ CCMHOSTNAME=CML.LTSPRAGUE.CZ
    I just need to know, if I can use the prepared package from the console in our case and if it will keep the settings when the package is deployed.
    I belive I have found a similar questin here on the forums:
    http://social.technet.microsoft.com/Forums/en-US/c9b40687-1843-44c7-b61b-fd26d53ab90b/cumulative-update-3-and-agent-upgrade?forum=configmanagerdeployment
    The second answer might the answer I'm looking for, but can you explain that to me like I'm five years old? :)
    Please, let me know.
    The IT guys from LukOIL

    I'm not sure, because of my short time at  the company, but there are historical security reasons for setting the push installation off. 
    Second reason are strict firewall rules used here. SCCM Agent may contact site server through HTTPS - that is a one way communication, so push installation isn't possible.
    Don't mix "client push" and "automatic client update". See
    http://blogs.technet.com/b/configmgr_geek_speak/archive/2013/09/09/using-configuration-manager-automatic-client-upgrade-to-upgrade-to-the-latest-system-center-endpoint-protection-client.aspx for further details. (And yes, the article talks about SCEP, but
    it also tells details about the entire process)
    Torsten Meringer | http://www.mssccmfaq.de
    Thank you for the article and your, but I find it easier to deploy packages right now.
    I have found out, that there is a folder named "ClientUpgrade" in ConfigMgr installation folder.
    I used this and made a package out of it. Deployment went fine as well as the installation of the upgrade for the client, but there is a problem now, that I don't see any software in the "Software Center" in "Available Software" - and there should be, since
    I have may SW pointed to me and the list was populated before I have done the upgrade to the new version.
    This may be a simple problem, but I really don't know what's wrong.
    The IT guys from LukOIL

  • Inbound Delivery via Idoc with more than 1 line fails

    Hi @ all,
    i try to replicate inbound deliveries from an external system to SAP EWM using Idocs (SHP_IBDLV_SAVE_REPLICA02 with MessageType SHP_IBDLV_SAVE_REPLICA).
    If there's only one position in inbound delivery it works, but if i try with two or more lines processing ends up with idoc-status 51 (WE02) and message 'Error inserting partner and location data at item level'  (SLG1).
    Any ideas to solve this problem?
    kind regards

    Hello Markus,
    "i try to replicate inbound deliveries from an external system to SAP EWM using Idocs".
    you are trying to send the information from non sap system?. Can you elaborate the scenario.
    Is the case you are sending ASN information directly to eWM system.
    Seems the process is more interesting. Can you please share details.
    regards
    Sastry

  • STO- How to control Over delivery with batch split?

    Dear All,
    In STO Scenario, how to control the over delivery?
    I created a PO for the Intra Company stock transfer & Delivery created in the Background with the T Code VL10B. When I am doing picking using T code VL02N, the system is allowing to add  more than PO Quantity in batches and system displaying the warning message (Specified quantity is greater than the open quantity/Message no. VL287) & allowing to save the deliver document..
    Hence plz suggest how to restrict the same.
    Hope it is clear.
    Thanks & Regards
    varun

    I am also in the same boat.
    I searched the forum and got the link STO - How to control Over delivery ?
    I checked OSS notes 548914, 386340,215488 but to no avail.
    I suggested user exit USEREXIT_SAVE_DOCUMENT_PREPARE  in include MV50AFZ1 to my technical team for finding the resolution. So far it is still on hold.
    If you come across any other solution, you can update the forum so that it would be helpful for many others.
    Regards,

  • Sales Returns with batch split.

    12.10.10
    Hi friends,
    I have created a sales return against invoice with multiple batches for a BOM item.  During returns the returns have created individual lines for each of the batch and the components are also available as per sales bom. The components are dependent on the main item and since the main items are in multiple lines when changes are done the components are not adjusted accordingly. Please advise how to solve this problem.
    Regards,
    Udaynath.

    12.10.2010
    Reazuddin thanks for the reply. Yes this is a complex scenario.
    Its the main matierial which is physically moved out from stock.
    The billing and pricing is done at the component level, the main material as well as the components are available in the billing document.
    The problem is with the returns against invoice. When the return order is maed it has the  main material say with line 10 without batches and quantity.
    The batches are copied with the quantity as line number 11,12 ...
    So when the quantity is changed in the lines containing batches,  the changes are not carried out in the components as the components are referring to line 10.
    The issue is when there are multiple batches. Can you please advise on the scenario.
    Regards,
    Udaynath.

  • Updating scheduling agreements in SD via IDOC delins.delfor02 / splitting

    Dear All,
    I am having the following problem:
    I am getting an EDI 862, which should update an scheduling agreement in SAP on the SD site.
    The incoming file contains the relevant information for multiple line items and for mulitiple release numbers as well as the information for the forecast and the JIT.
    Based on SAP standard documentation, an IDOC will be only processed if it's containing a single E1EDP10 segment, means in my understanding information for exactly one line item,for exactly one relase number and either the forecast information or the JIT information.
    Due to this I need to split the IDOC into several ones, to be able to use the SAP standard process here.
    It looks like that the splitting is not posssible in XI, which we are using as our middleware. Does anybody can tell me, how to split an incoming IDOC into several ones and to have them saved in the database, so that each IDOC can have it's own status etc.
    I already tried to go away from standard and to use fm sd_salesdocument_ change instead, which is having all the relevant table structures, but finally it was not helpful, because we have not been able to execute changes to the recent release number.
    Thanks for your help.
    Marita

    Dear All,
    I am having the following problem:
    I am getting an EDI 862, which should update an scheduling agreement in SAP on the SD site.
    The incoming file contains the relevant information for multiple line items and for mulitiple release numbers as well as the information for the forecast and the JIT.
    Based on SAP standard documentation, an IDOC will be only processed if it's containing a single E1EDP10 segment, means in my understanding information for exactly one line item,for exactly one relase number and either the forecast information or the JIT information.
    Due to this I need to split the IDOC into several ones, to be able to use the SAP standard process here.
    It looks like that the splitting is not posssible in XI, which we are using as our middleware. Does anybody can tell me, how to split an incoming IDOC into several ones and to have them saved in the database, so that each IDOC can have it's own status etc.
    I already tried to go away from standard and to use fm sd_salesdocument_ change instead, which is having all the relevant table structures, but finally it was not helpful, because we have not been able to execute changes to the recent release number.
    Thanks for your help.
    Marita

  • How to create material via Idoc with empty material field

    Hello.
    I have to take over materials from a 46c system to an ECC5 system and I want to use Idocs.
    Some of the materials must keep their old numbers, some must change with a new number which have to be define automatically following the internal range number rules of the customizing.
    I thought we just had to make the matnr field empty in the E1MARAM segment and so, SAP would assign automatically the new number, but it doesn't work.
    I also tried to put '/' (nodata) character in the field, but I just reached to create an material with '/' number. :-(((((((.
    Does anyone know a solution ?
    Thank you in advance for all your advices.
    David

    Hello James and happy new year.
    Thank you for your answer.
    In fact, I already tried to leave the matnr field with blanks and for a material type which use internal numbers range. I hoped/thought it would have worked as you said but it wouldn't.
    About the external old numbers I keep, I think I don't have to use the field external_number of the E1MARA1 segment, because some of my tests showed me that it works good. Moreover, I don't really understand the reason why this field exists because the field matnr is here for.
    I presume that the external_number is maybe for another use I don't know, aren't you ?
    I've never used this segment for data take over.
    Do you know if the principle you described in your previous mail is also the same to apply to customers & vendors idocs ?
    Best regards.
    David

  • Batch split in Idoc DESADV.DELVRY01

    Hi,
    my scenario is non-SAP --> xi --> SAP for dispatch notifications. The sender system provides batch information on line item level, sometimes with batch split.
    I am looking for a possibility to post the dispatch advice in R/3 with batch split. I already tried with multiple E1EDL24 segments and with E1EDL15, but with no success.
    Does anybody have experience with batch splits in SAP Idocs or can anybody help me with a documentation?
    Thanks a lot,
    Philipp

    hello Philipp, all you have to do is to fill the fields CHARG, HIPOS, HIEVW, only have  to fill the fields HIPOS and HIEVW in the sub-items segments, then you have to manually assign these fields to the structure that receives them, for example in the user exit "EXIT_SAPLV55K_011" the structure that receives these fields is DELIVERY_COM.   
    Example:   
    IF IDOC_SEGMENT-SEGNAM = 'E1EDL24.'   
       l_es_e1edl24 = idoc_segment-sdata.   
       it describes table DELIVERY_COM lines reg.   
       if sy-subrc = 0 and reg> 0.   
          loop at delivery_com into l_ti_delivery from reg to reg.   
                  l_ti_delivery-charg = l_es_e1edl24-charg.   
                  l_ti_delivery-lichn = l_es_e1edl24-charg.   
                  l_ti_delivery-chspl = 'X.'   
                  l_ti_delivery-uecha = l_es_e1edl24-hiccups.   
                  modify delivery_com from l_ti_delivery transporting charg lichn chspl uecha.   
          endloop.   
       endif.   
    endif. 
    i hope this information can help you. 
    best regards.
    Cesar Becerra.

  • 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

Maybe you are looking for