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

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

  • 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

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

  • Error message for over delivery quantity in case of batch split.

    Hi All,
    System is throwing error message if I try to to enter delivery quantity more than target quantity(order quantity) in case of standard process which is ok but in case of batch split when split line created (9000001 for line 10) and if go to item level in line item 900001 and enter delivery quantity more than target quantity system is giving only information message, still line item 10 is giving error message but line 9000001 giving only information message, user want this to be a error massege as well. Delivery item category for all the line items is same and status B is assigned to over delivery in item category. Is there any standard way of achieving this or do we need any modification, if yes then what user exit need to use.  
    I searched alot about this in last three days but found only one thread which is unanswered, please provide your valuable suggestions. If this problem is discussed already and solved please provide me the link to that thread as I could't find any.
    Thanks,
    Davinder

    Hi
    Still line item 10 is giving error message but line 9000001 giving only information message, user want this to be a error massage as well.
    I think it you can possible to change the Information message as Warning message.
    Please  go to SE91 put the Message Class XX (Ex:V1) there And in No. field enter the message number (Ex: If message no V1293 enter the number as 293)
    AND
    go for
    where used in then select only Program >ok then Program will come select the Program > double click, you will l find the message with the Description.
    Now with help of ABAP with just comment on these both the messages. Afterwards you will get the Error message.
    Hope this will helps you
    Dasaradha

  • Item category not defined in batch split in vl02n

    HI GUrus,
    cna anybody please helpe me with this. We have to send 3 differnt batches of parts to the vendor via returns PO. when i go to vl02n and click on batch split to send out batch A - 5 EA, Batch B - 5 ea and Batch C - 5 ea. the system is throwing eerror messages like item category not defined. please help me with this
    thanks
    anusha

    I can't understand what are you doing...
    1. You already asked this question - it was answered
    2. Link is pasted in my previous message.
    Please read your previous question (that was the same) - please read the answer too. That's all.

  • Batch Split in case of Stock Transport Order

    Hi all ,
    In case of sales order i can find batch split using table KOTH002 where i give application as V ang give customer number. Then based on KNUMH i can get no. of batch splits allowed(CHASP) from KONDH table.
    Please let me know how can i get no of batch splits allowed in case of STO.
    Thanks in advance.
    Taranam

    Hi,
    Since you have activated the split valuation for the material system is asking to enter the valuation type.
    Check the material master Accounting 1 view whether you have maintained valuation category?
    If you want Split valuation, maintain the valuation type in config settings in IMG & extend the material to the respective valuation type.
    Hope it helps.
    Thanks & Regards,

  • Item categories are re-determining based on batch split during delivery

    Hello All,
    During delivery item categories of bill of materilas are changing based on batch split.
    Scenerio: item level bill of materials configured.
    Ex: COMPUTER is main item and item category group is LUMP and item category is TAP
    but it is relevent for billing as per client requirement
    key board, cpu and moniter are bills of materilas item category group is NORM and item category is ZZTA
    These above items are relevent for delivery and not relevent for billing
    Problem: During batchsplit in delivery item category determining as "TAN" for item category ZZTA
    That can be shown when we click on batch split button for sub line item (moniter, cpu) category ZZTA
    all batch split line items are copied to billing and getting account determination pricng error because of TAN is relevent for billing
    Could you suggest me to prevent the TAN item category for batch split in  delivery
    Should TAE item category to be maintained for delivery item categories
    currently delivery item categories are configured as shown  below
    del doc type=zlf , item cat. group=lumf, higher level item cat.=tap, No default item catgory
    Thanks & Regards

    Hi
    In the asign item cateogories use usage CHSP (Batch split) for norm and assign default item category as ZZTA.  This will get determined your item category when you use batch split.
    Spro --> Sales --> Sales document Item --> Assign item categories

  • Batch Split in OBD & billed for the entire Quantity .RG1  register does not update the excise values

    Hi All,
    I am new here . We have batch split in Delivery and 601 happens for the individual batches and billing we bill for the entire quantity . Hence the RG1 does not update the excise values for the batches and it is showing as zero (upon extraction in J2I6). Upon research through the program the latest note which i presume is patched
    The latest note is N158234 which does not show in the program but seems have been patched considering we are using the Latest version of SAP .
    As you see above in the billing we have billed for the whole quantity but RG1 does not update for the since the batches are zero .
    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split .
    Now i have checked few other projects in my company and they all seems to be following the program . So i am wondering whether my process or some customization is missing .
    Sales order (no batch determination)  , in delivery the batches are picked through wm to and batch split happens in the delivery . Then billling for the whole quantity . We have automatic excise invoice creation enabled so no J1IIN .
    Can somebody help me .
    Thank you

    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split
    Which field (H & J) they were referring in VBFA ?
    i have checked few other projects in my company and they all seems to be following the program
    How about the other projects' values in VBFA where your techinical team is guessing some issue.  Have you compared this?
    Since you have already the note 158234 implemented in your system, ideally, you should not face any issue.
    G. Lakshmipathi

  • Logic to retrieve batch number in batch split scenario for a material

    Hi All!
    LIPS-CHARG gives the batch number for a material in normal scenario.But in batch split scenario for a material what should be the logic to retrieve the field batch number based on POSNR,VBELN and UECHA in LIPS.
    UECHA corresponds to higher level item of a batch.
    I had been given the following logic to do the same but it is not pulling any values inspite of a batch split available for the material.The logic is
    Select lips-charg (batch number) where  lips-posnr = lips-uecha ( higher level item batch)
    Please advise
    Regards
    Praneeth

    Hi Praneeth,
    The way LIPS records are in a batch split scenario is that let us say you have a delivery with one line item 00010. Now if this splits into two batch split items, then you will find in LIPS 3 records, one with line item 00010, one with 90001 and another with 90002. Both 90001 and 90002 will have a UECHA of 00010, whereas for 00010, this field will be blank. So the logic is to create two internal tables one where UECHA is blank and another where it is not blank and use it.
    SELECT * FROM LIPS
             INTO TABLE I_LIPS
            WHERE VBELN = P_VBLEN.
    I_LIPS_TEMP[] = I_LIPS[].
    DELETE I_LIPS_TEMP WHERE UECHA IS INITIAL.
    *-- This table will not have only the batch split items not the main items.
    LOOP AT I_LIPS WHERE UECHA IS INITIAL.
    *-- loop at the main items.
      IF I_LIPS-CHARG IS INITIAL.
    *-- batch is not there on the main item, see if it is there on any batch split items.
        READ TABLE I_LIPS_TEMP WITH KEY UECHA = I_LIPS-POSNR.
         do whatever
      ENDIF.
    ..... do whatever
    ENDLOOP.

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

  • WS_DELIVERY_UPDATE doesn't create batch split in IBD

    Hello,
    I am using the FM WS_DELIVERY_UPDATE to update the Inbound delivery and post GR against it. The problem I am facing is that when there is a batch split for a line item, the same is not being reflected in the IBD. The GR happens successfully but the only problem is batch split of items not happening.
    Can anyone help me with what parameters I might be missing?
    Below is the call that i make to the FM
      CALL FUNCTION 'WS_DELIVERY_UPDATE'
        EXPORTING
          vbkok_wa                 = lv_vbkok_wa
          delivery                 = lv_vbeln
          if_error_messages_send_0 = 'X'
        TABLES
          prot                     = lt_prot
          vbpok_tab                = lt_vbpok.
    regards,
    Priyank

    This Might help you
    Re: Delete handling unit

Maybe you are looking for

  • HP J6480 All in one leaves a line down the middle of the paper.

    When I use the feed mode the printer squeeks and protest leaving a line down the middle of the paper.  How can I get this resolved

  • Photosmart D5400 not printing

    Every so often, like now, when I go to print a document, I get the following infuriating error message: ""Your file could not be printed due to an error on HP Photosmart D5400 series on Ne01"" It usually happens with an Excel file, and if I copy and

  • Materialized View Refresh fails

    Hi Colleagues, trying to refresh a MV using this: SQL> exec DBMS_MVIEW.REFRESH ('HR_ASSIGNMENT_L1_L2_DATA_V_MV', 'C'); BEGIN DBMS_MVIEW.REFRESH ('HR_ASSIGNMENT_L1_L2_DATA_V_MV', 'C'); END; ERROR at line 1: ORA-12008: error in materialized view refres

  • Please Help me: Access Denied error

    Dear All, Till yesterday I was able to edit my forms in adobe workbench.But, today I met an error while accessing my form.I tried restarting my JBOSS and my machine as well.But still getting the same error! can anyone help me? Attaching the screen sh

  • Modify all partner links of a process

    hello, what i am thinking about is to modifiy all partner links used in a process. As described in the cookbook you can change the endpoint reference of a parnter link throug an assert statement. What i did up to now is to look up the partner links t