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.

Similar Messages

  • 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?

  • 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)? )

  • 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

  • Batch Split in BAPI_PO_CREATE1

    Hi Experts,
    I have a requirement to create Purchase order from DESADV - DELVRY03 basic type idoc.Now in the file at line item the material will be batch splitted. ex:
    POSNR    MATNR      QTY
    10             NC3337     0
    900001     NC3337     50
    900002     NC3337     50
    How do i create PO with batch split.Exactly which structure/Field needs to be populated in BAPI BAPI_PO_CREATE1 for batch split. I cant find suitable field in BAPIMEPOITEM.
    Please advise accordingly.
    Thanks in advance.

    Try this... and you are good to go!
    Flag the field ITEM_INTVL with X in the structure BAPIMEPOHEADERX. But do not pass any value for this field in BAPIMEPOHEADER.
    By doing this, PO is created with user defined item numbers instead of standard config sequence.
    Check this note 418683.
    Thanks,
    SKJ

  • Batch split and picking via interface

    We have a set-up where we receive picking confirmations from an external system, via an IDOC (type DELVRY01). The picking strategy is SD picking w/o transfer orders, so we update picked batches directly into the delivery, with the picked quantity.
    However we have an issue if the delivery quantity is 30 CAR ex. and we receive a picking confirmation for 30 CAR or more. I this case the batch is updated on the delivery main item. If the picking confirmation was for 29 CAR or less, it is updated as a batch split item. The issue is that if the 1. picking confirmation is eaqual or higher than the delivery quantity, the main item is updated. It is then not possible to receive more picking confirmations for that item.
    What we would like is to force creation of batch split items, regardless of the picking quantity. Any ideas for user-exits/BAdI or customising settings are welcome.

    I have found a solution to this using user-exit EXIT_SAPLV55K_002. If you receive a picking confirmation for an item where the quantity is equal or creater than the delivery quantity, you can add an extra record to table T_KOPO in the user-exit, only containing the delivery number and item number. This will then generate the picking confirmation as a batch-split item.

  • 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).

  • Production date in inbound delivery in batch split

    Hi,
         I have a issue with production date update in inbound delivery.
    I have created a inbound delivery for 10 PC. The inbound delivery has only one line item and there are no batch details on it. As soon as the inbound delivery is created a message is sent to the 3PL . Once the 3PL receives the goods from vendor he send us a message with the batch details. Say the 3PL has received multiple batches from the vendor. So he send us back an SHPCON message with multiple batch details. That  is batch A with QTY 6 and batch B with QTY 4. He also send us the production date for each batch via the shpcon idoc. say batch A has production date as 10.02.2011 and batch B has production date as 21.03.2011.
    The IDOC is created successfully in our system and the inbound delivery is also updated correctly with the batch split details with correct QTY. That is line item 10 has batch split line items 900001 with batch as A and QTY as 6 and line item 900002 with batch as B and QTY as 4. The issue is only with updation of date of production for each of the above batch. Both batch A & B are updated with date of production as 21.03.2011. Instead of batch A being updated with date of production as 10.02.2011 it is updated with the batch B date of production. I checked in the idoc. In the idoc each batch has correct production date. only when updating the inbound delivery it has updated wrongly..   Has any one come across similar kind of situation. ? How did u manage it?
    Ram

    I found out the issue and the approriate changes has been made in the message handling

  • Batch splits in deliveries

    Hi all,
    I have to modify an FM to extract the SLED/BBD (expiry date) based on material and batch number, and move it to an IDoc segment. In addition i need to take into account batch splits in which case the earliest SLED/BBD will be moved to an IDoc segment.
    My question is given a delivery were can i check if a batch split occurred? And were will i find the different batches if a batch split indeed occurred?
    For the deliveries in which no batch split occurred i will be extracting the data from table LIPS.

    Hi Joseph,
    Not exactly.
    If the field value LIPS-UECHA is '000000' or the same line item number (let say '000010', in this case both the line item number (LIPS-POSNR) & LIPS-UECHA will be same)), then consider this line item as the master.
    Then chk whether any line item in lips with the same vbeln and LIPS-UECHA = '000010' (in this case LIPS-POSNR will have a different value as per the customization, normally in many cases it will be like 009000, 009001... or 000011, 000012...). If exists, then that line item have the batch split and get all the above line items.
    For instance, let say
    for line item ... 000010 will have 2 batch split with each 10 qty for the document number X, then in the lips you have 3 line items as below:
    LIPS
    VBLN        POSNR      LFIMG    UECHA
    X               000010      0            000000 (or 000010 which can be configured)
    X               000011      10          000010
    X               000012      10          000010
    Regards,
    Selva K.

  • Test Outbound Idoc type DELVRY01

    Hi all,
    We've a client who is presently using idoc type DESADV/DELVRY01 for sending Orders outbound.  They want to modify the existing output data, which I've deduced I can do by using an existing user exit (. 
    But when I use WE19 to test the outbound process, ALE is not stopping at my break-point.   Can any tell if I'm doing anything wrong with my testing process?  How can I get the outbound idoc to stop?
    Points rewarded for useful answers.
    Cheers,
    Steve

    Hello Stephen,
    WE19 is for testing for Inbound IDOC..
    If you want to test Outbound IDOC ,you need to create delivery or change the delivery in VL01N or VL02N Transaction.
    Here you need to give correct output type like Delivery transaction output would be LD00 -> you can find out Delivery Output type in NACE Transaction.
    GOTO NACE -> select V2 Application -> Click on output type -> here you are able to see all output types
    if you don't find output type then contact Functional guy.
    once you create delivery it will create IDOC ,you can IDOC Status in WE02 Transaction.
    if you want to debug IDOC then follow below Steps :
    goto delivery transaction -> when you create delivery ,please modify output type -> extras -> header -> output type
    here see the further data -> select peridocally scheduling.
    now come to RSNAST00 Program
    enter delivery number as object number
    Application -> V2
    Output type -> enter delivery output type
    Medium - A (ALE)  ,6(EDI)
    Now you are able to work on debugging
    Thanks
    Seshu

  • Status of Outbound Delivery in case of batch split

    Hi All,
    I have a query regarding the status updation of outbound delivery in case of a batch split.
    I have a delivery with 10 qty of batch managed material and is distributed from ERP to EWM. As per standard SAP, the following 2 options exist to carry out a batch split in EWM
    1. Create batch sub items in the Outbound delivery Order
    2. To adopt quantities pertaining to multiple batches during WT creation from the 'Stock can be removed' tab.
    We are using the second option as per business requirement. The process is working fine if i create & confirm multiple WT's at one shot i.e in this case i created one WT for 5 qty with batch-1 & one more WT for balance 5 qty with batch-2 & confirmed both the tasks. System created 2 batch sub items automatically when WT's are confirmed & the header status of 'picking' got updated as 'completed'.
    However the problem is when i create only 1 WT for partial quantity. For eg. in this case i created onle WT for 5 qty of batch-1 & confirmed the task. System created 1 batch sub item for 5 qty & also updated the 'picking' status in header to completed. My understanding is that since entire delivery quantity is yet to be picked, the picking status at header must be 'partially completed' & not 'completed'.
    I have checked the status profile & have status types DER & DPI active. Does this require any config in the status profile OR Is there any other way in which i can achieve this functionality ( i.e. Header status must be 'partially completed' untill entire delivery quantity is picked.)
    Would be glad if you can share your thoughts on this.
    Regards,
    Smitha Pai.

    Thank you for your kind reply.
    I performed failover to my physical standby and now archives are going on my logical standby from new primary but changes are not getting applied on my logical standby database.
    when i tried to register the logical logfile from new primary on my logical standby i am getting following error.
    SQL> ALTER DATABASE REGISTER LOGICAL LOGFILE 'E:\orcl1\stdb\archives\TESTDBT001S00001.ARC';
    ALTER DATABASE REGISTER LOGICAL LOGFILE 'E:\orcl1\stdb\archives\TESTDBT001S00001.ARC'
    ERROR at line 1:
    ORA-01287: file is from a different database incarnation

  • Batches are not coming in invoice where there is batch split in delivery

    Hi all,
    Batch split quantity as per delivery is not coming in billing document.
    Ex
    1). Sales order created with Material "A" - 50 Kgs
    2). Delevery is created
    Material A - 10Kgs - Batch 1
    Materail A- 15KGs - Batch 2
    Material A - 10Kgs - Batch 3
    3). iNVOICE IS CREATED For cumulative quantitiy in single line like
    Material -A -25 KGS - Rs.10,000
    it's conderind other two lines for batch split quantities with 0' quantities and 0 values
    Please advise what should be done if i need to create invoice --
    Material A - 10Kgs - Rs.2000
    Materail A- 15KGs - Rs.4000
    Material A - 10Kgs -Rs.2000
    I.e. An invoice should be created with batch split quantities.
    And when i create a return order with the reference of this invoice it should take all the respective batches as per batch split.
    Please advise.

    hI,
    Go to vtlf  copy controls in item data  vbrk/vbrp give 001  try this it my work out.
    Best regards,
    venkataswamy.y

  • Picking quantity from a different storage location during batch split??

    Hi Gurus,
    Have an issue with doing batch split in a delivery with batches from several storage locations.
    Have delivery XXXXXX where I want to pick batches from several different storage locations.
    I click on the batch split button and select the different batches and quantitys.
    The issue here is that I would like to have the different storage locations entered automatically based on the selection of the batch I have made.
    The only storage location that is entered here or possible to be entered is the defaulted storage location that is in the first screen...
    My question is why can I get the storage location where the batch is located and acctually exists when I do select the batch in the batch split...
    The table LIPS and LGORT is not filed with the storage location so I do not know how I could fill this field with the correct storage location data...
    Thank You for all Your help!
    BR,
    Christian

    Hi Christian,
    you have not jet got an answer  -- here my suggestion.
    You have to use the Userexit Mv50afz1. Here you can do some checks and  you can do a popup, where you can sign the LGORT, where the batch is.
    In any case, you need an ABAPer
    In documentation, there is signed, that you should not change database other as Save_prepare - and that's too late.
    In one solution at my company, i show in a message the right information. In an other solution, i made a modification of table lips.
    But dont change the index of the current lips/xlips. That may have the effect of incorrest LIS - System.
    If nessesary create an ylips- Line of the position.
    Use an assign-command to avoid the change of the index.
    hans

  • Batch split not happening during delivery

    Hi Experts,
    I have enough of stock for a material with different batches (with different expiry dates). When I create an order for qty 100, system confirms it on a certain date taking 1st batch nearest to expiry date, as per the search startegy set in the cponfiguration.Please note here that the batch that system picks has got only 50 qty in stock, but it shows whole 100 qty against it. Probably because Batch split is not possible during sales order creation, hence system showing whole qty against one batch.
    Now, when I try to create delivery, it shows only 50 qty of the same batch in delivery document. I select the line item and go to the "Batch split" tab to effect batch split, but system does not allow. It says "Batch already specified for material".Here is the detail for your analysis-
    Batch in item 000010 already specified for material 2000978
    Message no. VL221
    Diagnosis
    The batch was either predefined in the sales order that the delivery is based on or it was assigned to the delivery item manually. Therefore, you can no longer carry out a batch split for the delivery quantity of the items.
    Procedure
    In order to make the batch split possible, you can cancel the assignment of the delivery item to the batch, if the delivery's processing status allows.
    Kindly advise.
    Thanks in advance,
    Randhir

    Thanks Mr. P Gomatheeswaran,
    Now batch is not being determined during sales order creation, that's fine.While creating delivery,when I select line item and go to Batch split tab I can see batches being split in two, which is OK. But when I try to put Picking quantity as delivery qty, system says "Picked quantity is larger than the qty to be delivered".(Message no. VL019).
    Also Storage location field is grayed out.
    Regards,
    Randhir

Maybe you are looking for

  • How to print a report in landscape mode?

    Hello everybody, I have a task where in i need to print a report in LANSCAPE format. I have tried to print the report output but i could not found an option to set LANDSCAPE mode and also how to change the font size. Can anybody suggest me the approa

  • Reading big JTable from disk one page at a time

    Hi, I'm trying to display a JTable in its JScrollPane for a large amount of data (say 40'000 records). Scrolling is quite smart, since it does a relatively good job when the user drags the knob, e.g. in order to reach the bottom. However, it leaves s

  • RMAN Restore on Test DB Fails - ORA-01152:file 1 was not restored from blah

    Calling all RMAN Gurus! I'm having trouble recovering an RMAN backup on my test DB server. Please Help! Solaris 10/Oracle 10.2.0.4 Standard Edition (Both Servers) Part one - Step by Step Primary Server 1. Perform full backup: backup database plus arc

  • Save to XML: image attribute defined twice

    Hello all, I am saving a structured document to XML and run into an error I cannot explain - or solve: I place graphics inside an anchored frame, which is aligned right with the image centered in the frame. Saving the document to XML generates an err

  • Self made trigger for third party device?

    Hi, everyone! I am new to labview programming.  Recently I have been trying to realize a function to trigger(or start) the third party device to do acquisition. I want to use the DAQmx to acquire one channel signal(which is continous pulse signal). A