Invoice split/ZUK

Hi,
I am trying to split invoices based on SH (ship-to-party)
I have a couple of questions regarding this:
1. I am planning to create a routine that will set the split criteria. Should the structure that is to be passed to VBRK-ZUKRI should always be named as ZUK? What is the significance of this name ZUK?
Can I also use any other name to this structure other than ZUK to pass to VBRK-ZUKRI?
2. Since VBRK-ZUKRI is just a 40 char string, how does the system recognise what is the value that is passed to ZUKRI correspond to?
To elaborate:
My intension is to split on SH
So I create,
DATA: BEGIN OF ZUK,
          MODUL(3) VALUE '601',
          KUNNR LIKE LIKP-KUNNR,
        END OF ZUK.
VBRK-ZUKRI = ZUK  ---> assign ZUK to VBRK-ZUKRI
At run time VBRK-ZUKRI contains only the 10-digit kunnr value of sh. (vbrk-zukri = 110000002)
How does the system know that it is only SH number and not some other kunnr like SP or BP or PY?
Thanks,
Anitha

Hello,
The ZUK is a internal table defined to be used in the routine to define and check the split criteria and to pass the value in the field vbrk-zukri
the internal comparision, calculation can be dine in zuk area.
so for your case,, fetch the ship to party and compare in ZUK. if the creiteria is matching or a split is desired, the you can only pass the indicator to vbrk-zukri , not thee acutla value but onlya indicator as shown in the reference routine of  007 or 001.
you can add the elements for the ship to part in 007 rotutine and modify it. it already fetches the partner fucntions
hope this helps
Thanks
akasha

Similar Messages

  • Number of Pallets on layout in case of Invoice Split

    Hi,
    Ours is a warehouse managed storage location from where we deliver the goods of our Sales Cycle.
    IN the Invoice output, we have to print the number of pallets as no of packages, which is fine as we go back through VBFA & get the value of LIKP-ANZPK
    But in the case of a invoice split, where the delivery may have 5 pallets but we are only invoicing 2 pallets, it is difficult to create logic to get the data from the Item level from delivery. COuld anybody help with that pls
    Thanks

    Hi,
    I think that you need create your own VOFM subroutines in the copy rule from delivery to invoice. If will be important how to populate the structure ZUK (there are a lot of post about this issue in this forum) to split the invoices. I think that you need be careful with performance, because you must use VBFA table to link HU, delivery and other documents. Try do define the algorithm in this VOFM with an ABAPer.
    I hope this helps you
    Regards,
    Eduardo

  • INVOICE SPLIT AND CONSOLIDATION

    Hi Everyone!
    Do you happen to know any site that I can search for information on invoice split and consilidation? Or perhaps you can share with me some of the documents you have.
    I'll promise to reward points for those who'll give me answers. Thanks!!

    Hi Clarey,
    Invoice Split by Item Category-
    In trx VTFA (if your billing is sales order based) choose your billing type and SO type, there select your item categories and there select the field VBRK/VBRP data. In that field you will see the currently used routine. With the help of your ABAP guy create a copy of that routine under a different number and add your lines of code. Let's say you use routine 001. 
    FORM DATEN_KOPIEREN_001.
    Header data
    VBRK-xxxxx = ............
    Item data
    VBRP-xxxxx = ............
    Additional split criteria
    DATA: BEGIN OF ZUK,
    MODUL(3) VALUE '001',
    VTWEG LIKE VBAK-VTWEG,
    SPART LIKE VBAK-SPART,
    END OF ZUK.
    ZUK-SPART = VBAK-SPART.
    ZUK-VTWEG = VBAK-VTWEG.
    VBRK-ZUKRI = ZUK.
    ENDFORM.
    This is how it should look after modification:
    Header data
    VBRK-xxxxx = ............
    Item data
    VBRP-xxxxx = ............
    Additional split criteria
    DATA: BEGIN OF ZUK,
    MODUL(3) VALUE '001',
    VTWEG LIKE VBAK-VTWEG,
    SPART LIKE VBAK-SPART,
    PSTYV LIKE VBAP-PSTYV,    <- New line
    END OF ZUK.
    ZUK-SPART = VBAK-SPART.
    ZUK-VTWEG = VBAK-VTWEG.
    ZUK-PSTYV = VBAP-PSTYV.   <- New line
    VBRK-ZUKRI = ZUK.
    ENDFORM.
    After this routine is created and activated place it as the default copy control routine instead of the old ones.
    REWARD POINTS IF U FINDS THIS AS USEFUL...
    Regds
    MM

  • Invoice split based only on payer, material, invoice date

    Dear Friends,
    I have an issue which I don't know how to move further..
    Task:  avoid Invoice split during collective invoice creation in VF04. Invoice should be grouped by: payer, material, invoicing date.
    What I'm doing: clearing all fields which could cause invoice split in copy routine rv60c903 ( this one is used for this type of invoices ) in VBRK. Then changing partners - sold-to, ship-to, bill-to in enhancement., so that they are equal for all invoices with the same payer party. And also VBRK-ZUKRI is filled accordingly with the grouping parameters: VBKD-PERFK and VBRP-MATNR.
    What I can't understand: when I run SIMULATE in VF04, the invoices are grouped correctly, BUT when I run the actual Collective Billing button, for each delivery a new billing document is created.. I can't understand this!
    Thanks a lot in advance!

    Hi
    As Madhu tells you, check your settings in customizing (tcodes VTFA and VTFL). Second, take in account always the SAP Note 11162 - Invoice split criteria in billing document and related notes. Finally, set your own algorithm to rule the splitting defining ZUK structure to determine the value of VBRK-ZUKRI (remember that this field is a char 40) in your own VOFM subroutine.
    I hope this helps you
    Regards
    Eduardo

  • Invoice Splitting - for some shipping points and not others

    Dear Gurus, I have a requirement where for some shipping points I need to be able to split an invoice on sales order (i.e. a separate invoice for each customer order) and for other shipping points I require a single invoice for multiple customer sales orders.  Using the copy control rules for LF to F2, I have set the Refence Number to B but this does not achieve what I want.  Would it be possible to achieve this via a copy requirements routine and by setting the values in VBRK-ZUKI?  Do I just copy the standard 003 routine and apply my changes here?  If yes, where do I insert the code - the top or bottom?  Regards

    In VOFM, first of all "Copying requirements" are used when we want to stop creating a target document from a source document or to prevent certain items from copying to target document under certain conditions. Copying requirements can't be used to do invoice split.
    Data transfer routines are the ones that allow invoice split (in addition to allowing copying fields from source to target). Although "copying requirements" is a loosely used terminology, it is important we make distinction between copying requirements and data transfer routines as both are different and perform different functions.
    SAP uses field VBRK-ZUKRI (a 40 character field) to store the combination of field values that are used as basis of invoice split. Invoice split happens if any of the fields stored in VBRK-ZUKRI differ across orders/deliveries (or their items) from which invoices are created.
    We assign VBRK-ZUKRI during item copy control in data transfer routines. The fields are simply concatenated and assigned to VBRK-ZUKRI.
    in VOFM, "Data transfer" routine 003 for Billing documents for example splits the invoice for each reference document, as shown by code below
    Include FV60C003
    *       For each reference document an invoice is created
    FORM DATEN_KOPIEREN_003.
      DATA: BEGIN OF ZUK,
              MODUL(3) VALUE '003',
              VTWEG LIKE VBAK-VTWEG,
              SPART LIKE VBAK-SPART,
              VGBEL LIKE VBRP-VGBEL,
            END OF ZUK.
      ZUK-VTWEG = VBAK-VTWEG.
      ZUK-SPART = VBAK-SPART.
      IF KURGV-PERFK = SPACE.
        ZUK-VGBEL = VBRP-VGBEL.
      ENDIF.
      VBRK-ZUKRI = ZUK.
    ENDFORM.
    In the above coding we are concatenating VBAK-VTWEG (Distr channel), VBAK-SPART (Division), VBRP-VGBEL (Reference Order from billing item) as the criteria for invoice split. So if any of these field differ then it will cause a split. So basically we are creating one invoice for all items that reference a single order
    So what you need to do for your requirement, is to copy the logic of data transfer routine 003 in VOFM to your own custom 9XX routine and make the assignment to ZUK / VBRK-ZUKRI only when shipping point (LIKP-VSTEL) is not equal to certain values that you don't want split to happen. It is better to maintain those shipping points in a custom table and make the check on the table rather than hard coding, so that in future it is easy to add more shipping points or remove existing ones if needed.
    Also remember to assign the new data transfer routine number 9XX to all relevant item categories in VTFL for your target billing type and reference delivery type

  • Invoice split new requirement

    Dear Sap Gurus,
    Invoice will get split due to various parameters such as incoterms, billing date, payer, foreign trade data, exchange rate type etc according to standard.
    I would like to consolidate all my intercompany invoices irrelevant  of difference in header and item data.
    My idea is to develop a new routine where it will bypass all the criteria of invoice split, so all the invoices will get consolidate into a single invoice when this applicable to a particular sales org or company code.
    pls let me know what are the fields that i have to give to abaper to bypass all the criteria for invoice split.
    after creating that routine i will be using that routine in vtfl - copy control, so invoice split will not happen.
    Pls guide me abt this logic , is correct and let me know abt the advantages and disadvantages.
    Phani

    Hi,
    Check the VOFM '001' as an example (ie: report FV60C001). The field that decide the split is VBRK-ZUKRI. The lenght is 40 characters, so you must define the internal table ZUK up to 40 and you must analyze if you must use offset of fields what is the codification of fields (eg: organization levels, and so on).
    To understand how works VOFM search in google with this string: inside vofm ext:pdf
    Check the notes:
    Note 356737 - Customer name range for VOFM routines
    Note 327220 - VOFM function and its objects
    Note 381348 - Using user exit, customer exit, VOFM in SD
    and related notes
    I hope this helps you
    Regards
    Eduardo

  • Invoice Split by TAXM1

    Hi, I have a requirement where I need to check all items of an invoice and if any item differs in field TAXM1, invoice must split.
    Example:
    ITEM 10     TAXM1 = A
    ITEM 20     TAXM1 = B
    A not equal to B ---> split.
    Now how I may check all the items? I was given include LV60A002 (routine 02 from VOFM transaction) but I checked it and I quite do not understand how to solve it. Also, Is this the correct routine?
    Any help would be appreciated.
    Regards,
    Ernesto
    Edited by: Ernesto Caballero on May 1, 2009 4:39 PM

    Hi, thank you for your answers. I have been investigating a little bit with the information I got from your answers and I copied routine 001 to 600 and I modified it like this:
    FORM DATEN_KOPIEREN_600.
    Header data
    VBRK-xxxxx = ............
    Item data
    VBRP-xxxxx = ............
    Additional split criteria
      DATA: BEGIN OF ZUK,
              MODUL(3) VALUE '600',
              VTWEG LIKE VBAK-VTWEG,
              SPART LIKE VBAK-SPART,
              TAXM1 LIKE VBAP-TAXM1,  ---> Line added
            END OF ZUK.
      ZUK-SPART = VBAK-SPART.
      ZUK-VTWEG = VBAK-VTWEG.
      ZUK-TAXM1 = VBAP-TAXM1.  ---> Line added
      VBRK-ZUKRI = ZUK.
    ENDFORM.
    Now, Am I missing something? all the customizing has already been done but the invoice split doesn't work. Item 10 TAXM1 = 0 and item 20 TAXM1 = 1. Is this enough for the invoice split?
    Thank you in advance.
    Ernesto
    Edited by: Ernesto Caballero on May 6, 2009 9:59 AM

  • Invoice split & Delivery split

    Can any body tell me what is Invoice split and Delivery split and how it is done?

    Dear Raj Kumar
    Please make use of the "Search" option b4 posting your question, as the question what you posted has been answered so many times.
    1)  Delivery Split
    If you want to combine multiple sale orders in one delivery, the following should be same in all sale orders
    -  Ship To Party
    -  Inco Term
    -  Delivery Priority
    -  Shipping Point
    -  Transportation Group
    If any of the above differs in any sale order, you will get delivery split which means, multiple deliveries will be created
    2)  Invoice Split
    As like delivery split, if you would like to generate one invoice against multiple sale orders / deliveries, the following should be same in all preceding documents
    -  Payer
    -  Inco Term
    -  Payment Term
    -  Actual GI Date
    -  Exchange rate in case of exports
    If any of the above differs, then you will get multiple invoices which is nothing but an invoice split.
    thanks
    G. Lakshmipathi

  • Invoice split

    hi
    i created sales order for the material with 2 qty.  i delivered 2 qty. after PGI,  the customer asked two invioce (mean each qty).   i set Billing relevance K in item category level.  But problem is , first i saved on one billing document. i am not able to create another billing for another qty.  Error is invoice is incorrect? please rectify
    regards
    murali

    Hi Murali,
    As a rule, the system combines into one billing document all transactions for the same customer, default billing date and sales organization.
    If data from the related reference <u>documents differs in the header fields of the</u> billing document, the system will automatically split the invoice.
    An order contains terms of payment at header as well as item level. These are stored only at header level in the billing document, however. If there are different <u>terms of payment</u> in the reference documents, an invoice split will always be made.
    If data from the related reference documents differs in the item fields of the billing document, the system does not split the invoice.
    The order basis is stored at header level in the order and at item level in the billing document. The system does not split the invoice. If you require an invoice split, you must first define the appropriate split requirements in Customizing for copying control. Copying control depends on the following criteria:
    Billing Document Type
    reference document type (i.e. type of order, delivery or billing document on which the sales document is based)
    item category in the reference document
    You can also display a split analysis to discover why an invoice split has occurred.
    Regards
    Srikanth.A

  • Invoice split with Free Goods !

    Hi All,
    I am having a invoice split when i am generating a sales order with free goods.
    Item category i am using is TAN & TANN
    Sales order -> Delivery -> Invoice (it is splitting to 2 deliveries) and 2 items are getting billed separately, i want in one invoice.
    Need help Please.
    Thanks & Rgds
    Naveen

    Delivery split can occur when the following are different:
    1. ship-to-party
    2. shpping point
    3. route
    4. incoterms
    5. transportation zone
    etc
    Delivery split happens based on not only on different shipping points,but it depends on your business logic which supports thru order to delivery copy controll.
    at item category level.if you do not have different shipping points for multiple line items ,but if you have for example business logic of say "any line items with 10 tons and above gross weight' can be split into multiple deliveries.
    Regards
    AK

  • Invoice Split on line items

    Dear all,
    We are on CRM 7.0. We are doing billing in crm for service products . We have a requirement that if the number of line items in the invoice is more than 200, invoice split should happen. Has anyone worked on this scenario and if so pl. let me know how to go about this.
    Regards
    P.Bhaskaran

    might give you better answers.
    If this applies to your processes CRM Web Channel, the work will still be in the CRM backend.
    Easwar Ram
    http://www.parxlns.com

  • Automatically invoice split is going there

    when i am doing the billing the invoice is getting automaticaly splitting
    i want only one invoice
    i check at shipping point,plant ,ship to party
    but all are correct
    plz give the solution
    with regrds
    g.phani

    Hi,
    In VF04 while creating the collective invoice at first instance don't save the document by selecting Individual document,but select simulation option.Here you will be able to check the split analysis.In split analysis system will definetly show the fields which caused the invoice split.
    Also you can do the invoice split analysis for the splited invoice.Go to VF03 enter 1'st invoice number,Go to environment,Split analysis,Enter 2'nd invoice number and enter.Here also system will show you the relavant fields which caused the invoice split.
    Once you get the fields which are causing the invoice split you can restrict this in copy control by creating a Z routine and defining split criteria in ZUKARI(combination criteria) field in table VBRK.
    Reward points if useful
    Regards,
    Amrish Purohit

  • Invoice Split bassed on Condition Type

    Hi ,
    For the invoice split issue, PFB the functionality required:
    1.       1) Sales order created where the item condition tab would have the Standard price as well as a condition type for the freight charges.
    2.       2) Create a delivery for this sales order.
    3.       3) At present, we get an invoice for the above sales order created with the standard price and the freight charges on the same invoice.
    Requirement:
    We need 2 invoices, where one invoice has the standard price and the other has the freight charges printed separately for the above Sales order scenario.
    if this requirement is feasible?
    I have search in SDN i have found the below links
    http://scn.sap.com/thread/3476396
    The Above link he has Confirmed is feasible. He provided the SAP Note and he told write the routine in VOFM. I refer the SAP Note they have provided the header level split.
    Can you please tell how can i atcheive that? if Any one done the same previously please tell how you done that?
    Thanks,
    Dhina..

    Hi Fred,
    There is no problem in that SAP note. I just want to know how can i atcheive that?
    if any one done the requirement previously how they done that? i need the each and every steps.
    Thanks,
    Dhina.

  • Stopping Invoice Splits

    Dear Friends,
    Need your expert tips to stop invoice splitting in the folllowing scenario :
    Scenario :
    Client is changing terms of payment at the item level of Sales Order. This changed terms of payment differs from the terms of Payment at document header. Here single delivery document is being created. Finally this single delivery is getting split into two invoices.
    I found in the "split analysis" that split is happening due to the different header data for a) Terms of Payment Key b) Foreign Trade data.
    Query :
    Client wants to have a single invoice for the above delivery scenario. I tried changing Data transfer VBRK/VBRP routine for the relevant item category in delivery to Billing copy control but could not zero in on the exact configuration.
    Whether there is any standard routine to achieve this or shall I create a new routine ?
    What other setting is required here ?
    Requesting you to please share your views soon.
    Thanks in advance !

    Hi Anubhav,
    You cannot combine line items having different payment terms in one invoice, reason being payment terms is a header field in invoice and it applies to the entire document i.e for all the line items.
    Moreover Payment terms are also responsible for deriving the "Baseline date" which is taken into account while ageing of customer line items.
    Also when the customer pays you he pays with reference to the invoice # and not the line item # in a particular invoice.
    It is not logical also to group number of line items with different payment terms in single invoice. it might have impact in FI also, so please consult FI people also before you make new routine.
    Regards,
    Shantanu Kunte

  • Invoice Split @ VF06....not stopping at breakpoint applied in routines

    Hi All,
    This is regarding Invoice Split...from VF06 Tcode.
    We are trying to generate Invoice from Delivery  using VF06.
    But Invoice is splitting at item level.
    We tried to debug the routines for 003 & 007 as well for copy control..
    But while executing the Vf06 it is not stopping at breakpoint.....
    Please guide us how to get to the routine for debugging......
    If you have any other solution please let us know.
    Thanks
    RK

    VF06 runs in background (delegated to system) so the session break points you put in the data transfer routine won't hit.
    What you can do instead is put break point in the item data transfer routine (VTLF - item data transfer routine) and create a single invoice online using VF01. Then your break point will hit. Although this is not similar to Vf06, still you can find out which fields are being concatenated in VBRK-ZUKRI that is used as split criteria.
    Otherwise you can run the program SDBILLDL online. This program is run VF06 in background. So if you run it directly in SE38 in foreground your break points will hit, if you put them in correct data transfer routine

Maybe you are looking for

  • Removing Credit Card Details from itunes account

    I tried to use a prepaid credit card to make a purchase but i didn't have enough on the card to complete the purchase now i can't update anything because it keeps asking me for those useless credit card details, how do I remove them from my itunes ac

  • Creative Cloud doesn't 'know' I have a full susbscription

    Hi I have a subscrition to Creative Cloud, however, even tho I'm signed in the menu bar at the top still asks me to 'upgrade' and the Apps section invites me to "try" the apps rather than download them. i have tried everything I can think of to coax

  • Error: Balancing field "Profit Center" in line item 324 not filled for t-code:PC00_M99_CIPE

    Hi, Anybody can help me. when I am posting the documents for all employees for the t-code:PC00_M99_CIPE, I am getting the following error, kindly help me.

  • Sync Nokia n97 with iTunes?

    I've read many different ways and some which don't seem to work so here goes! I have a PC with the up to date iTunes where ALL my music is stored. How do I sync my Nokia n97 with iTunes? Any help is appreciated!

  • Getting "No Bootable device" Error Message

    I bought my daughter a new Satellite Laptop earlier in the spring (April 10th) and am having an issue trying to get it to start. Its a C55D-A5120 (S/N XXXXXXXXX P/N PSCFWU-03H02X) and I'm having truble just trying to get help from Toshiba. I original