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.

Similar Messages

  • 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

  • Splitting the Idoc data into 2 diff files based on file content.

    Hi Experts,
                               Mine is a SAP - XI - File Scenerio. A perticular Idoc when triggered has a segment 4 with a Field KONDART. This Segment 4 is optional in nature and can appear n nos of times. Initially KONDART carried a value ABCD  and created a File called PLU, containing 14 fields.
       Now the value of KONDART can carry ABCD as wll as many other values.
    The current requirement is , if the Value of KONDART is ABCD , EFGH, etc etc , then it will create the PLU file as usual, but the moment the KONDART value is XYZ , then it will create the PLU as well as a new file called MRP, carrying only 4 fields .
        I can understand that I need to make a new DT, MT , MI . I can' make out, if i call it in Messege Mapping the PLU as well as MRP structure and map them according ly, I simply cant make out , hw to make it conditional based on the content of KONDART.
        Should I go for messege splittng, like in the second messege type , the Structure will get mapping data only if the KONDART Value is XYZ.
    Is my understanding OK.
    I think I can check this in Messege Mapping itself. calling 2 messege types and put a CREATEIF kind of logic for the KONDART = XYZ condition.
    Pls correct me / Comment .
    Regards,
    Arnab Mondal.

    Hi,
    If I have understood your problem correctly then the solutin can be like this..
    First of all create two separate mappings as well as Interface mappings (based on your different data types).
    In ID, just do the conditional "Interface Determination", so whenever your condition(s) will be true the respective interface mapping(s) will be triggered and offcourse create two CC respectively.
    Now when you do the "Receiver Determination" assing correct CC to corresponding interfaces.
    Regards,
    Sarvesh

  • Delivery get created with one line item from sale ord having two line item

    I have an issue when delivery is created with reference to a sales order.
    The sale order consist of a header with customer group VBKD-KDGRP = '01'. There are two line item for this header with item 10 having customer group '01' and line item '20' having customer group '02'.
    When delivery is created with reference to this sale order the delivery contains only one line item corresponding to line item 10 having customer group '01' of the sale order. But I need to have both the line item in the delivery irrespective of difference in customer group.
    What makes this split up of delivery? Is there any configuration or user exit that need to be applied in order to adress this.
    <REMOVED BY MODERATOR>
    Thanks in advance
    Ramachandran Babu
    Edited by: Alvaro Tejada Galindo on Jun 13, 2008 5:45 PM

    Check if there is any copy routine applied in the copy control from order to delivery - transaction VTLA. The routines themselves can be found in transaction VOFM (Data transfer -> Deliveries). LIKP-ZUKRL field contains the split criteria (by the way, check what's in that field on your deliveries).
    It's possible that there is something in the current routine that is forcing the delivery split. Otherwise you can probably use similar approach to make it stop splitting.
    Hope this helps.

  • SD / Third Party Sales / 2 line items in PR for one line item in Sales orde

    Hi
    In a third party scenario, I have item category TAS .When I create a sales order, there are 2 Schedule lines for the item. The first SL has confirmed qnty as 0 and the second SL has confirmed qnty as full quantity ( say50). When I save the sales order, it creates a PR as expected. However the PR has 2 line items for this single line item of SO. Each PR line items have the same quantity, in this case 50. Why is this happening. Is it due to some configuration.
    All my SD configurations are fine for third party process. Please let me know if somebody faced this situation and solved it.
    In crux, one line item in third party process leads to 2line items in PR , each with the quantity as mentioned in teh confirmed schedule line.

    Yes interesting to see multiple scheudle lines during TAS processing.
    Also please check the scehdule line category. Should be CS. Also check the MRP type in your material.
    CS should have Order Type = NB , Item category = 5, Acct Assign Category = 5, incompletion = 31. Rest all fields should be blank or unchecked.
    Pur Requisition will be based on the scehdule lines. Since there are 2 schedule lines, you have two line items in the purchase requisition. If you can fix the multiple schedule lines problem in your order, then your requisition looks good.
    Please check note 210417 reg av chk for TAS.
    Regards
    Sai

  • Need  Rep to extrct  Opn Sale Ords whch has diff Paymnt terms frm Cust Mast

    Hi All,
       I need code for a Report to extract the Open Sales Orders which has the different Payment Terms from Customer Master .Please help.
    It's urgent.

    Check out table VBFA and KNB1-ZTERM.
    You need to see if there are any deliveries for the orders.
    I think, you first need to get the zterm from customer master then retrieve all open sales orders from VBFA. Also check out VBUP for the item status.

  • Sales order no and line item no in account assignment tab of line item no.

    Hi All,
    When we display a sales order and go to line item --> Account assignment tab --> we can see sales order no and line item no in that screen. We want to know from where this existing no. in that field is populating from.
    We want to know this as we want to check feasibility of changing sales order and item no to maintenance contract no and line item no. ( Maintenance contract we have to pick from notification)
    If anybody has any idea about this do let me know as this is urgent requirment.
    Effort will be rewarded.
    Thanks in advance.
    Edited by: Satish Bharambe on Jul 4, 2008 10:38 AM

    Hi Satish,
    You mean Accounting assignment tab-->In Settlement rule details
    If yes the order number which is coming in that field Sales order and for which sale order you are looking that details both are the same numbers(i.e Nothing but sales order number).
    When you create sales order system will give number of the sales order the number will come in this place.
    I hope it will help you,
    Regards,
    Murali.

  • Calculate sales tax based on all line items on the order

    My users have asked to determin tax on the sales order, based on all the line items on the order. For example, if all the items are for product only, or if all the line items are for labor only, or if there is a mix of product and labor,
    Order 1
    line 1 product flag as both for vertex
    line 2 labor flag as both for vertex
    Order 2
    line 1 product flag as product only
    line 2 product flag as product only
    Order 3
    line 1 labor flag as labor only
    line 2 labor flag as labor only
    I do not see away to do this while the order is being created. In the order 1 example above, line one is entered, priced, and taxed as product only (it is the only line on the order at that time and it is product only). Line two is entered, it is marked as both. But I cannot send line item one back through vertex marked as both. Vertex processing is already complete.
    I have looked at using both FYTX0001 and FYTX0002. With both of these exits I can only work with a single line item, i.e. once item one is processed it will not go through the exit when item two is added.
    Any assistance would be appreciated.
    Jay

    Hi WCG,
    Our business is located in California as well. California is a modified-origin state, where state, county, and city taxes are based on the origin of the sale, while district taxes are based on the destination of the sale. You only need to add Sales tax when your customer's billing address is in California. I do not believe that Catalyst currently supports district based sales tax. You could look into a third party solution like TaxJar and see if it could be integrated into Catalyst. We currently charge our California based customers exactly what we would charge them in our retail store.
    So you want to do something like this:
    -Ryan

  • 1 Invoice / 2 Line Items / Different Item Categories & diff exchgn rte

    hi,
    there are 2 line items in my invoice and both have different item categories. one item cat (ZFIX) have exchange rate setting in copy control "PricingExchRate type" as A and other (ZFLT) have "C". now exchange rate are maintained in OB08 and are determined correctly in my billing documnet. but whenever i post the billing document to FI, exchange rate for "Billing Date" is determined for both line items. however the expected result was that exchange rate for 1st line item should have been determined as per sales order date( as copied in billing documnet).
    hope my queery is clear. any comments to resolve the issue?
    Edited by: Robert on Mar 4, 2011 8:29 AM

    I had a similar problem before. The FX rate for the FI document is determined based on the invoice posting date, whatever you select in the copycontrol.  The copy control setting is only for the SD internal conversion of i.e. pricing condition currency into document currency.
    The only choice in the Sap standard is to manipulate FI FX Rate my knowledge to set the Rate in the sales order (billing document tab in header or item, Field Exchange rate for FI postings).
    Hope this helps to clear your issue.
    Regards
    TDI

  • How to Split 1 Order into Multiple Deliveries based on Partner Function ?

    Hello,
    How can I split one Sales Order into multiple deliveries, based on the partner function "managed by" ?
    The requirement is that one order will be created for different "managed by".
    If partner function "managed by" is same at line item level in order, than the items having same "managed by" can be combined in one delivery, else delivery will split and multiple deliveries will be created from 1 Order.
    Jatin Mistry

    Hi,
    You need to create a new requirement in tcode VOFM for that, together with your ABAP consultant. This requirement will be used in copy contol.
    http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf
    MdZ

  • How to create diferents deliveries for each schedule line

    Dear gurus,
    I have sales orders with many schedule lines in order to deliver in diferents dates. We need to create all the deliveries together but each schedule line needs to be in a diferent delivery with the corresponding delivery date.
    I analiced the customizing about pool for delivery creation (VL10) but all I can change is for display and can not change the way the delivery is created. If we select two schedule line with diferent dates, the proccess create only one delivery with the total quantity and the first date of delivery.
    Anybody knows some way to make the proccess create individual deliveries from diferents schedule lines?
    Tanks in advance!
    Marina.

    Hello Marina
    I hope you are using VL10E. Did you try working with Delivery creation date (range) and Delivery Date calculation rule? For example if you go for a value of 2 for the CalcRuleDefltDlvCrDt ('Rule for determining default value for deliv. creation date), then system will consider only those sched lines which are to be delivered today and tomorrow.
    You also have the possibility of setting up your own routine for CalcRuleDefltDlvCrDt.
    Thirdly SAP has suggested a solution for Scheduling agreements ( valid for releases upto 4.7). In this SAP has suggested solution 4 for ensuring all schedule lines are not delivered together. You can customize the code to include Sales orders ( in stead of Sched Agreements)  in your case. Though it is for release 4.7, I think you can use the smae concept in ECC also.
    137937 - SD scheduling agreement: Delivery split for each schedule li
    Check it out and let me know how it goes. Good luck.

  • Delivery Split based on Schedule line data

    Hi,
    Would need some help in determining how to proceed with splitting delivery based on Schedule line data (Date/Time).
    If S.A 1 has line item 10 with two schedule lines SL1 and SL2 which happened in different times of the day, how to split this S.A to two deliveries in delivery creation (thru VL10E).
    Please suggest.
    Thanks,
    Preema

    Hi,
    In copy control see which Split routine is there, with the help of abaper
    Copy that and create new one, an maintain your date criteria in newely created routine and assign that.
    T-code VOFM
    Kapil

  • Split Deliveries Based on Available Pallet Qty

    Hello
    Here is the process we follow,
    once the sales order is booked. We create Deliveries and a Trip. Using the Trip, we do the pick release by Trip#....here is my requirement.
    1. Prime Sub-Inventory - Qty is available in Eaches
    2. Reserve Sub-Inventory - Qty is available only in pallets (12) - Pallet Break is not allowed in this sub-inventory
    If I have shipping Delivery Lines(WSH) for total of 38 Qty
    Delivery Line Detail 1 - 20 Qty
    Delivery Line Detail 2 -  10 Qty
    Delivery Line Detail 3 - 8 Qty
    As per standard oracle solution, I want 36 qty  (3 Pallets) to be picked from Reserve and 2 Qty (1+1) to be picked from Prime. To achieve it, System has to automatically split one shipping delivery line into 2 lines (suppose line# 3, qty 8 into 6+2), so that 36 can be picked from reserve and 2 from Prime. Is it possible to do through standard functionality through setups?
    Thanks,
    Sree

    hi,
    In a normal sale order, stock is available in mmbe as well in sale order, availability check it is showing a confirmed quantities. But when i am trying to deliver (vl01n) its coming as only 0 EA is available, delivery could not be made. please help

  • Redetermination of item category in deliveries

    Hi,
    Let me explain with an example i have sales order with item category TAN and when i do delivery i want the item category should redetermine as TAS(example)
    what are all the setting in need to do?
    Please guide me its really urgent for me.
    Thanks alot
    Sridhar B

    Hi,
       Delivery Item category is determined based on the Delivery type assigned to your sales document, Item category group from the material master.
    So if u want to redetermine the delivery type in the sales order, go to
    Spro, Logistics execution, Shipping, Deliveries, Define Item Category determination in deliveries.
    Here assign Item category to the combination of ur delivery type, Item category group. Then that item category will be determined automatically.
    Reward points if it is helpful,
    Regards,
    Sree

  • Advance payment can not be used against credit limit and another sales ord

    Hi,
    I have advance payment scenario where customer want advance payment cannot be used against another sales order and against any credit limit.
    Let me put one example.
    Customer X is having credit limit of 1000 USD, if my client is received customized product order then he will take advance for this special order but customer X is already enjoying credit limit of 1000 USD. In this scenario my client wants advance payment received cannot use against any sales order and against any credit limit.
    If I will post advance payment in F-29 then customer credit exposure will decrease against credit limit in FD32 which will affect normal sales order credit limit. Here customer does not want to utilize advance payment against credit limit of customer which is use for normal sales order.
    Please suggest

    Hi,
    You can use the SAP standard documentary payment management functionality together with credit management for this purpose. You need to configure Documentary payments in SAP first. For that see below link;
    [Documentary payments|http://www.learnsaptips.com/2011/09/how-to-handle-letter-of-credit-in-sap.html]
    Then the advance payment has to be created as a financial document in SAP. This is just a SD only document and no impact to FI. During sales order creation you can assign this document number in to your sales document. It is possible to add it to sales order header as well as to individual line items.
    If the attached financial document is sufficient to cover the value of the total sales order (If you attached to header) or value of the line item (If you attach it to a line item), system will NOT take that value for credit exposure calculation.
    As far as I understood from your question, this is exactly what you're looking for.
    Best regards,
    Anupa

Maybe you are looking for

  • Frequently my mac book pro freezes. how to troubleshoot this issue.

    in the console log i see these error keep on repeating 11/26/11 11:14:24 PM    com.apple.launchd.peruser.502[179]    catch_mach_exception_raise_state_identity(): PID: 52230 thread: 0x15627 type: 0xa code: 0x1000f8044 codeCnt: 0x2 flavor: 0x1000f8054

  • Condition on posting Date

    Hi Techis I AM FACING A PROBLEM IN MY REPORT I WANT TO GIVE CONDITION ON IT_FINAL-DMBTR. The condition is if document postiong date(it_final-budat) is > 30 days then it should store in  it_final-thirty if postiong date is > 60 days it shpold b store

  • Using a counter channel as a DO

    Hello, Could you please tell me if there is any possible way to use a ctr channel of an 6212 OEM as a DO channel. Thank you in advanced

  • Error message for Itunes

    Every time my computer starts up I get the following error message. APPLE SYNC NOTIFIER,EXE,_ENTRY POINT NOT FOUND. THE PROCEDURE ENTRY POINT SQLITE3_WOL_ CHECKPOINT COULD NOT BE LOCATED IN THE DYNAMIC LINK LIBRARY. cAN SOMEONE TELL ME HOW TO FIX? I

  • Ipad will not turn on!

    I havent used my ipad in about a month. I assumed it would be dead. So i charged it over night; when i woke up this morning all i saw was the apple sign coming up and then going away. Same thing happens when i charge it to my computer. Super confused