Split Deliveries by Line Items

Hello all,
We would like to split deliveries that have more than 250 lines on them.  We have tried inserting code in several routines in transaction VOFM - Data Transfer - Deliveries.  We have copied Routines 302 & 500 and inserted code directly in 500. 
Here is an example of what we have tried.  We count the lines in table xlips and if it is greater than 249, we delete the table from 250 and following.  Right now we are using 10 lines for testing purposes. 
DATA: l_lines LIKE sy-tabix.
*Limit deliveries to 249 lines for certain European plants
IF likp-lfart = 'NLCC'.
  CASE xlips-werks.
    WHEN: '4310' OR '4311' OR '4322' OR '4331' OR '4341'.
      DESCRIBE TABLE xlips[] LINES l_lines.
      IF l_lines > 10.
        DELETE xlips[] FROM 11 TO l_lines.
        clear ilips.
      ENDIF.
  ENDCASE.
endif.
When we copied routine 500, the program wouldn't stop at breakpoints put in the code.  Now that we have put it in routine 500, we get a short dump related to ILIPS. 
It seems to me that there would be a more elegant way of splitting deliveries than this. 
Does anyone know of a way to do this?
Thanks in advance,
Chris

hi
i got your question.
this you can achieve through only BAPI for delivery line items split.
for eg:
there are 250 line items in the delivery you wanted to split basing on the item category.
you can use this BAPI with a different screen which will be similar to VLSP.
maintain the fields in screen exit.
and you can achieve on the same.
but it taes long time for achieveing this
regards
balajia.

Similar Messages

  • Splitting sales ord line items to diff deliveries based on max line items

    Hi,
    I'm trying to split sales order line items to different deliveries based on the max line items on Sales Organization ( TVKO-MAXBI ) . I activated a new routing (copying standard 001 ) but an error is happening
    Item 000200: delivery split due to conflicting header data (ZUKRL: M106 <-> M1061)
    However the split does not work as expected. Does anyone have any ideas ?
    Pls help me
    The code is:
    data: ITEMNO        LIKE TVKO-MAXBI,
          BILLNO        LIKE TVKO-MAXBI.
    *}   INSERT
    FORM DATEN_KOPIEREN_601.
    *{   INSERT         MTDK905083                                        1
      LIKP-VKORG = CVBAK-VKORG.
      LIKP-AUTLF = CVBAK-AUTLF.
      LIKP-VSBED = CVBAK-VSBED.
      LIKP-FKARV = TVAK-FKARV.
      LIKP-TRAGR = MAAPV-TRAGR.
    Fill field ZUKRL with combination criteria
      LIKP-ZUKRL(2)      = CVBAK-VTWEG.
      LIKP-ZUKRL+2(2)    = CVBAK-SPART.
        IF NOT TVKO-MAXBI IS INITIAL.
          IF ITEMNO < TVKO-MAXBI.
            ITEMNO = ITEMNO + 1.
          else.
            LIKP-ZUKRL+4(2) = BILLNO + 1.
            ITEMNO = 1.
          endif.
        endif.
      LIKP-STAFO = CVBAK-STAFO.
      LIKP-STWAE = CVBAK-STWAE.
      MOVE CVBAK-KKBER TO LIKP-KKBER.
      MOVE CVBAK-KNKLI TO LIKP-KNKLI.
      MOVE CVBAK-KKBER TO LIKP-KKBER.
      MOVE CVBAK-GRUPP TO LIKP-GRUPP.
      MOVE CVBAK-SBGRP TO LIKP-SBGRP.
      MOVE CVBAK-CMWAE TO LIKP-CMWAE.
      MOVE CVBAK-WAERK TO LIKP-WAERK.                      "46C/note 184914
      MOVE CVBAK-CTLPC TO LIKP-CTLPC.
      IF LIKP-LFART = TVAK-KORLI.
        LIKP-KLIEF = CHARX.
      ENDIF.
      MOVE CVBAK-LIFSK TO LIKP-LIFSK.                           "45B
    Pick-up sheet number in delivery order processing is external dlv. no.
      IF CVBAK-VBKLT EQ VBKLT_AUSL_AUFT OR
         CVBAK-VBKLT EQ VBKLT_AUSL_AUFT_KORR.
        MOVE CVBAK-BSTNK TO LIKP-LIFEX.
      ENDIF.
    Consignment issue by service agent is external delivery number
      IF CVBAK-VBKLT EQ VBKLT_EDL_ENTN OR
         CVBAK-VBKLT EQ VBKLT_EDL_ENTN_KORR.
        MOVE CVBAK-BSTNK TO LIKP-LIFEX.
      ENDIF.
    *}   INSERT
    ENDFORM.

    hi friend i solved the problem.. was a mistake on my source... I send u the code to help u in advanced... thanks for your time
    data: ITEMNO        LIKE TVKO-MAXBI,
          BILLNO        LIKE TVKO-MAXBI.
    *}   INSERT
    FORM DATEN_KOPIEREN_601.
    *{   INSERT         MTDK905083                                        1
      LIKP-VKORG = CVBAK-VKORG.
      LIKP-AUTLF = CVBAK-AUTLF.
      LIKP-VSBED = CVBAK-VSBED.
      LIKP-FKARV = TVAK-FKARV.
      LIKP-TRAGR = MAAPV-TRAGR.
    Fill field ZUKRL with combination criteria
      LIKP-ZUKRL(2)      = CVBAK-VTWEG.
      LIKP-ZUKRL+2(2)    = CVBAK-SPART.
        IF NOT TVKO-MAXBI IS INITIAL.
          IF ITEMNO le TVKO-MAXBI.
            ITEMNO = ITEMNO + 1.
          else.
            BILLNO = BILLNO + 1.
            ITEMNO = 1.
          endif.
        endif.
      LIKP-ZUKRL+4(3) = BILLNO.
      LIKP-STAFO = CVBAK-STAFO.
      LIKP-STWAE = CVBAK-STWAE.
      MOVE CVBAK-KKBER TO LIKP-KKBER.
      MOVE CVBAK-KNKLI TO LIKP-KNKLI.
      MOVE CVBAK-KKBER TO LIKP-KKBER.
      MOVE CVBAK-GRUPP TO LIKP-GRUPP.
      MOVE CVBAK-SBGRP TO LIKP-SBGRP.
      MOVE CVBAK-CMWAE TO LIKP-CMWAE.
      MOVE CVBAK-WAERK TO LIKP-WAERK.                      "46C/note 184914
      MOVE CVBAK-CTLPC TO LIKP-CTLPC.
      IF LIKP-LFART = TVAK-KORLI.
        LIKP-KLIEF = CHARX.
      ENDIF.
      MOVE CVBAK-LIFSK TO LIKP-LIFSK.                           "45B
    Pick-up sheet number in delivery order processing is external dlv. no.
      IF CVBAK-VBKLT EQ VBKLT_AUSL_AUFT OR
         CVBAK-VBKLT EQ VBKLT_AUSL_AUFT_KORR.
        MOVE CVBAK-BSTNK TO LIKP-LIFEX.
      ENDIF.
    Consignment issue by service agent is external delivery number
      IF CVBAK-VBKLT EQ VBKLT_EDL_ENTN OR
         CVBAK-VBKLT EQ VBKLT_EDL_ENTN_KORR.
        MOVE CVBAK-BSTNK TO LIKP-LIFEX.
      ENDIF.

  • Splitting sales ord line items to diff deliveries based on sched ln date

    Hi,
       We are trying to split sales order line items to different deliveries based on the schedule line date. I have copied routine FV50C001( vofm -> data transfer -> deliveries -> routine 1)into a custom routine and added the schedule line date xvbep-edatu to the split criteria likp-zukrl. However the split does not work as expected. Does anyone have any ideas ?
    Regards.

    Hi Aravind,
    u said u ve copied the routine into a customised one..but did u chk whether ur customised routine is getting called from the transcation or not?? the routine has to be assigned in config so tbat it is triggered appropriately.. try putting a BP in ur routine n doin the transaction...
    Regards

  • Need to Split Sales Order Line Item in VA01

    Hi,
      I have a requirement in which i have to split an order line item for KMAT materail number. system popup configurable screen, here all the required characteristic values have to be selected as per the customer requirement.
    After entering all the required customer specific characteristic values, system determines batch automatically. If characteristic values of the Batch matches with the characteristic values of configurable screen selected in the sales order
    Here also we have to check the sales Order Quantity (VBAP u2013 KWMENG) and order Confirmed quantity (VBEP u2013 BMENG), if the both the quantities are not same, consider order has partially confirmed.
    If Order quantity is partially confirmed, check for the batches with the same characteristic values of the quotation configurable screen and if batch found, system has to create a one more line item and new batch has to be assigned to create line item.
    Reduce the order quantity equal to the confirmation quantity in the first line item.
    Create a new line item in the quotation, copy all the remaining unconfirmed quantity from the first line item and also copy all the characteristics and properties (item category, schedule line category, business data, item data, and requirement type) and assign the batch to the new line item. System does the availability check automatically and confirms.
    In another scenario system doesnu2019t find batch, in this case capable to promise has to trigger directly.
    Here we have to check the Order confirmed quantity, if confirmed quantity is equal to zero.
    Change the item category of the line item, due to which system determines different Requirement type and schedule line category.
    Based on the Requirement type system triggers the capable to promise.
    I would lke to know which is the suitable user eixt or BADI to split the line items and what all the tables or structures i need to populate in order to create a new line item successfully.
    I have seen many post in sdn but no body gives the right user exit name where i can add new line item.
    Regards,

    Hi Amit,
      Thanks for your reply. In this scenario configurable material is involved. And first Make to Stock scenario is executed to check any material with customer entered characteristics are avialable. If its so it will determine its batch and assigned the quantity.
    If zero quantity is assigned or no quantity is assigned then I have to trigger the Make to Order scenario for rest of unconfirmed quantities in order.
    I have check it in USEREXIT_MOVE_FIELD_TO_VBAP but it was of no use. I even tried in USEREXIT_CHECK_VBAP but still no result. I am not sure what all the tables and structures i need to populate there.
    Regards,

  • In VL06O while selecting the tab LIST OUTBOUND DELIVERIES, no line item

    Hi,
    In VL06O while selecting the tab LIST OUTBOUND DELIVERIES, no line item is showing under item overview for a particular Delivery no but I can see the line items in VL03 for that delivery no.
    So why the line item is not getting display in VL06O.
    Can any one give the proper suggestion on this.
    Waiting for quick response.
    Best Regards.
    BDP

    are you sure that the current setting is activated?
    try to get help from an ABAPer
    check as well OSS note 384304 - Input help for material number does not work (EKPO-MATNR)
    Edited by: Jürgen L. on Dec 23, 2008 8:33 PM

  • Full deliveries each line item wise

    Hi,
    I have one sales order with 5 line items, system should allowe only full quantity deliveries each line item wise. we need to control partial deliveries each line item wise, so how can we control this. can you please guide me..
    Rao

    Hi,
    In Customer Master (T. Code: XD02) under
    TAB: Sales Area Data, and
    Sub-Tab: Shipping
    There is Field: Partial delivery per item,
    Select Option: C - Only complete delivery allowed
    This will meet the requirememnt
    Best Regards,
    Amit.

  • Free Goods sub item split in two line items

    Sir,
    I give free good along with  sale item ,but i want free goods quantity split in two lines ,so how I do  that?
    Please help .

    Hi,
    Free goods has the following limitations:
    - Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
    - Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
    - Free goods are only supported for sales orders with document category C (for example, not quotations).
    - Free goods are not supported for deliveries without reference to a sales order.
    - Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
    - If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
    Not all Sales Order can be used for free goods determination.  You have to check the SD document category if it does not work.  Only category 'C' are supported.  Check transaction VOV8.
    Assume that you want to configure an inclusive FREE goods routine.  Customers must order a minumum quantity of 5 before any free goods can be assign.  For every quantity of 3, the customer will be given 1 free goods.
    WC07 - Maintain Number Range Intervals
    e.g.
    No   From number       To number
    01    0000010000         0000099999
    IMG -> Sales and Distribution -> Basic Functions -> Free Goods ->
    Maintain Access Sequences
    New Entries
    Acsq
    NA00
    Save
    Maintain Condition Types
    New Entries
    Ctyp   Name             AcSq
    FREE  Free Goods    NA00
    Save
    Maintain Pricing Procedures
    Procedures
    New Entries
    Procedure   Description
    FREE           Free Goods
    Select Procedure FREE then click Control data
    Step   Cntr   Ctyp
    10       10      FREE
    V/N6 - Activate Free Goods Determination
    Assign Order Type OR with Document Procedure A with Procedure FREE
    VBN1 - Create free goods determination
    e.g.  FREE inclusive
    Material  Min qty   From   are free good   Calc Rule   Free Goods
                           5           3                1                      1                1
    In this example, if you create a Sales Order for a quantity of 10, SAP will prompt you 7 as the customer order qty and 3 will be free.  Customer only pay for the 7 quantity
    Hopefully this will help to resolve the answer.
    Thanks & regards,
    Pankaj Mahajan
    Edited by: PM on Apr 13, 2010 10:28 AM

  • Splitting Delivery per line item in Sales order

    Hi All,
    We have a requirement of splitting the delivery per every line item on the sales order Is there a way to achieve this
    So eg. if we have 10 line items with X quantity each, it should create 10 deliveries.
    Suggestions awaited.

    Hi,
    You may have to change your copy control to work the way u want it to. In Tcode VTLA, for the say OR to LF you will have to write the condition at header (for copying the header data) and item level (to split the items into a new delivery) in such a way that, once the delivery is created for the first line item (I think the status of the table VBUP for the item number changes and that can be retrived), the new delivery gets created for the second and the same follows.
    BTW, what is the scenario you are dealin with. If you have this kind of a scenario, then, in real time, it becomes very difficult to really have a track of all the sales orders, deliveries and invoices. Also, from system point, the delivery tables will get filled up very fast and so as the VBFA table. So, acrchiving will have a problem. Returns is another thing you may have to look into.... So, as I have seen, normally, one sales order, one delivery, one billing doc is created always so that it is easy to track and archiving becomes very easy.
    Hope this helps
    Regards,
    Mukund S

  • Error in document splitting in vendor line item

    Hi,
    I have activated document splitting on segment and profit center level.  When I am entering simple transaction through transaction code FB60, the error message is showing " Balancing field profit center in line item 001 not filled".
    Details as below:  Through T. Code FB 60
    Expense 1 Dr 600
    Expense

    Hi Babji,
    Check the following settings in customizing
    1. Check the field status of GL. It allows the entry for Profit Center i.e optional or required.
    2. Check IMG > Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Classify Document Types for Document Splitting
    Check whether this document type is assigned to Business transaction (0300) and Business Transaction Variant (0001)
    3. Also check IMG > Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Activate Document Splitting.
    Check whether Inheritance is checked?
    Regards,
    Surya

  • F110 Issue Split of Vendor line items in Clearing document

    Hi SAP Gurus,
    I have a strange problem with F110 payment programme when i am clearing the single  vendor line items example 4 line items through F110 system is spliting 4 line items into 4 different clearing doucments rather than creating one clearing document and showing an error 098 in document payment list.
    Can you please guide me in this issue
    Regards
    Srini

    HI
    This may happen because of any of the following settings:
    1) in the vendor master, payment transaction company code area, "individual payment" check box is selected
    2) "single payment for marked item" check box is selected in payment methos company code.
    Deselect the check box for making single payment for multiple open item

  • F110 payment run - split on invoice line item that exceed certain amount

    Dear expert,
    Now i want to ask is there any ways to configure F110 - payment run to auto checking on whenever the amount of one fi document is more than USD100,000 will auto split to second payment item.
    *i have already tick individual pmnt on tcode FK02 - change vendor master data (at automatic payment transactions column). This method will split all fi document under same vendor post with different posting document number.
    I would like to ask is there any way to configure auto split on the fi document (if the document is exceed some amount) for payment run.
    thanks and appreciate

    i have put distribution amount.
    Let say i put distribution amount USD100, after i run payment run, one account payable document will generate one payment document.
    As what i want is- if the ap document is USD 200, then the payment document will generate two payment document.
    Coz my enquiry is if the payment is excedd USD100 we need to assign to another tt payment as the TT is only accept maximum USD100 transfer.
    Expert, please advice on ur view.
    Thanks and appreciate much on ur previous help.
    regards,
    Ng Chong Chuan

  • Split the delivery line item?

    Hello All,
    I have a question. I want to split the delivery into batches. Can anybody tell me how to achieve this through abap program?
    Points will be awarded.
    Thanks,
    Sohil.

    Hi Abhisek,
    Actually i want to split the delivery into the batches. so the FM that you are talking about will not work.
    If you have any info. then please pass it to me.
    thanks,
    sohil,

  • How to split a line item to 2 line item.

    Hi all !
    I have a request, help me please !
    In system I have a invoice with 1 line item value 1000 USD.
    Customer payment 600$. a incoming payment with value 600$ will post to system.
    I want incoming payment and invoice will auto clear 600$ but system can't auto clearing because value is not Identical.
    I want line item of invoice will split to 2 line item. Line item 1 value 600$ and line item 2 value 400$.
    Line item 1 of invoice will auto clear with incoming payment and system will exist a invoice with 1 line item value 400$.
    How to split a line item to 2 line item ? Have FM for split a line item to 2 line item in SAP ?
    If you have other solution for this request, help me please !
    Thanks !

    Hi,
    Have a look at Split line item - Sales Order
    Regards

  • Substitution of Split Line Items that appear only in FI - New GL?

    Hi,
    The new GL incorporation has brought in a functionality to automatically split user entered line items during GL Posting to create ledger balance at Profit Centre(or Company code) level in-case line items have multiple Pofit Centres(or Co.Code) etc.
    I have a requirement wherein I need to do substitution and validation of line-items created after splitting of document(which are visible only in general Ledge view of New GL). The line-items created after splitting don't show at runtime(ie during substitution using GGB1), we can only see user entered line-items that are present in BKPF and BSEG tables.
    Is there any way by which we can get hold of system created split line items that are present only in FAGLFLEXA/FAGLFLEAXT table for substitution/validation ?
    I need to substitute Transaction Type field BEWAR.
    Message was edited by: Tabishul Haque

    All ,
    As per SAP it doesn't allow substitution of fields after splitting of documents in new GL in case of Cross Profit Centre documents postings.

  • Split item quantity into line items

    Hi Gurus,
    I work in CRM 7.0. I created a Quote with 1 line item (Monitor) and quantity is 10 pcs. Then I create a Service Contract as follow-up document from that Quote. My requirenment is to get 10 line items with 1 piece of Monitor as quantity in each line item instead of getting 1 line item with 10 pcs of Monitor in it.
    1 line item with 10 Monitors -> 10 line items with 1 Monitor in each line item.
    Could you advice a solution please?
    Regards,
    Alex

    Hi Alex,
    Could you get a solution for this? We are facing the same problem.
    Not able to split the reference line items based on quantity, for complaint creation..
    Any help will be greatly appreciable.
    thanks,
    Spurthi

Maybe you are looking for

  • Hiding columns dynamically in a table control

    Hello all, Based on the selected value in a dropdown box, I want to hide some columns in a table control. The table control is generated using the wizard from a work area and itab in the program. I have tried things like loop at screen.   if screen-n

  • How to set Image equal to BufferedImage?

    Is there a way to set an Image equal to a BufferedImage? For example: Image myImage; BufferedImage myBuffImage; myBuffImage = myImage; I know this way is not correct but is there any way either directly or indirectly to do such a thing? Thanks, Every

  • Will I be charged to replace a a faulty replacement?

    I didn't know how to word this question but I replaced my iPhone 4 which had a  fault and because it was out of warranty I paid to get a replacement which is fair enough. But only a month after using it I have discovered that the replaced phone is fa

  • Connecting my 6120 to my mac to go online?

    Hi, Is there any way i can connect my phone and my macbook to the net, i have been using it fine with pc suite on windows, is there anyway of getting online through nokia/Mac? Cheers

  • Macbook Pro can't reconnect after sleep and wake-up

    I didn't experience any kind of problem until now, but a few days ago when opening the lid on the Macbook it would fail to reconnect to the network. I am getting the "auto-assigned IP" message and I need to turn the Airport OFF and then back ON again