Invoice Split Criteria

Hi there,
When trying to create Invoice using the Billing Due list, the Billing documents are split based upon the Sales Order number. The Header copy control (F2 and LF) controls this (The Allocation Number and Reference number fields)
Our requirement is to Split based on the Sales / PO number in general, but for a few Sales Org, we do not want the Invoices to be split on the SO/PO number.
My question is, if there is an user-exit / BADI to achieve this or if there is some other means of getting this to work.
<b>What we have explored so far:</b>
We have explored using the ZUK (VBRK-ZUKRI) Data VBRK/VBRP in the Copy control item level. This one only comes into play as a combination criteria after the Split as mentioned above has already occured. Hence does not seem to be of help.
Explored RV60AFZZ and other RV60AF* user-exits. All these pieces of code come into play after the Split has taken place and hence cannot be used.
Any other pointer would help.
Regards,
Anand

Hi Anand
Try the VBRK-ZUKRI with an If condition.
if sales org = 1000
split by SO and PO
elseif sales order = 2000
split by PO number
endif.
Reward if this helps
Thanks

Similar Messages

  • Invoice Split due to Tax Departure country and Number of Foreign Trade Data

    Hello Friends,
    With all the search I have done, this question was asked and answered a lot previously, but at the same time most of the previous solutions confuse me or didn't help me to solve the issue.
    My issue is there is a invoice split for a sales order, yes its Order based Billing.
    We had order combinations with two different plants before in the past and had no issues, but this plant is in abroad foreign country.
    So I checked VTFA. ( order - billing copy control )  
    Header:                                                                                                          Item:
    Copy requirment          001   Header/order-related                                 Copying Requiremnets    002   Item / Order related
    Determ.esport data      B                                                                         Data VBRK/VBRP              (Blank)
    Assignment Number     E
    Reference Number       A
    The Billing split analysis shows as:
    Split due to different header Data:
    Fld Name                                          $000000001                                $000000002
    Export indicator                                                                                   Z
    Tax classification 1 for custo              1                                                0
    Number of foreign trade data                                                              0000000667
    Tax Departure Country                       US                                             NL
    Please do offer advice and solutions. Thank you.

    Hi
    First, use SAP Note 11162 - Invoice split criteria in billing document as a checklist. Check it carefully.
    After, subroutine VOFM in Data VBRP/VBRK. Check routine 007 as a template. The idea is populate the field ZURKI (CHAR 40) with a concatenation of strings. Each value is a different invoice. So, if the concatenation is over 40 characters, the do an offsetting of some values. As SAQ MD says, take the help of an ABAPer.
    I hope this helps you
    Regards
    Eduardo

  • 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

  • User Exit to avoid invoice splitting

    Hi Experts,
    I need a user exit to change this setting on invoice splitting to omit partner function if it is different.
    Does anyone has any idea on that?
    Thanks in advance.
    Best regards,
    Chris Gu

    Hi,
    Check SAP Note 11162 - Invoice split criteria in billing document, it tells you all reasons that happens in invoice splitting.
    I hope this helps you
    Regards
    Eduardo

  • Invoice split with same document type

    Hi Experts,
    Kindly suggest on following issue:-
    Currently we are using two billing types ZBBL  for division 11 & ZDBL for division 12.
    Whenever we do invoice with billing type ZBBL(manual entry) with reference to delivery for 12, system gives error message i.e. ZBBL can not be processed with division 12 & vice versa.  This is OK .
    But if we do VF01 for two delivery document one with division 11 & other with division 12-billing document ZBBL(manual entry) , system splits the invoces. It create two invoices. Again its a standard process.
    So my problem is system is creating two different invoices , one for division 11 & other for 12-but with same billing type.
    How can I make setting so that if system splits into two invoices ,it should create one invoice with ZBBL & other with ZDBL.
    Please advise.
    Thanks in advance.
    Regards,
    Dharminder dalal

    There can be many reasons why your invoices with same sales area are getting split. It many based on:
    - Billing type
    - Billing date
    - Payer
    - Billing unit
    - Terms of payment
    - Incoterms
    - Letter of credit
    Further, if you want analysis, on what bases system is splitting these in invoice. Try following steps:
    - Try using Tcode VF04. Opt for delivery related billing.
    - Select the desired delivery docs in Billing due list. (Press Ctrl Key from keyboard to select multiple lines).
    - Then click on simulation button.
    - Billing Doc Simulate: Billing Doc Overview Screen
    - Select all lines.
    - There first go for Logs, by pressing Log button.
    - If log is fine then, click on Split Analysis button to get split analysis.
    For further reference on Invoice split. Refer SAP Note 11162 - Invoice split criteria in billing document
    So, how to handle this?
    Based on the split analysis amend your copying control for Delivery to Billing in TCode VTFL.
    There many be a possibility that you might need to create customized routine with help of a tech consultant to suffice your requirement.
    Also, refer link - multiple delivery but single invoice for reference/understanding.
    Then to combine the billing. Follow following steps:
    1. Use Tcode VF04. Opt for delivery related billing.
    2. Select the desired delivery docs in Billing due list. (Press Ctrl Key from keyboard to select multiple lines).
    3. Then click on Collective Billing button.
    Regards
    JP

  • Add value days (VALTG) causing invoice split

    Hello!
    I'm currently having a problem with field VALTG in sales order which is an invoice splitting criteria.
    Additional value days was added to a pricing condition in VK12, by mistake. This value has been removed.
    But created sales orders during this time now has this value in table VBKD and re-pricing of the orders does not remove the value. How can I fix this?
    Appreciate ASAP answers as our invoicing is put on hold.
    Best regards, Carina Karlsson

    Hii,
    Use the T-Code Mass
    Give the business object BUS2032  and Execute
    Select sales order business Item data MASSSDPOSVBKD
    Select the field (Add.value days (MASS) MASSSDPOSVBKD-VALTG) and execute
    now select the sales order range and give the value which u want to change
    Hope it will solve the problem.
    Regards
    Shambhu Sarkar
    Edited by: SHAMBHU SARKAR on Sep 7, 2011 1:52 PM

  • 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

  • Avoid invoice split due to change of address in Sales order

    Hello Gurus,
    I have one business scenario, where, bill to party address is different in sales order then customer master. Such orders are collectively billed and should generate  one invoice. ( all the sales order for a customer have same bill-to party address, bud different from customer master). In standard functionality it will split. I want to avoid split and in invoice bill to party address in sales order should be copied. Is there anybody have similar scenario faced before?
    Regards, and thanks in advance,
    Mukul

    Hi Lakshmipathiji,
    please find below screen shot, where we have address as one of the criteria. but other three criteria  has become my problem. ABAPer has able to remove address as split criteria but can't find how these three criteria is splitting invoice. They are nothing but invoice number and payment reference.  Can you help me with this?
    Regards,
    Mukul

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

  • 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 splitting 2

    Dear all,
    i have two sales order. One of this has the header field ZUONR not blank.
    I can't create one invoice for the two sales order beacuse the system split.
    i changed the customizing copy control at header level by VTFF, setting 'Reference number' = E.
    The system split again.
    Can you help me?
    Thanks
    Alessandro

    Take a look at the contents of VBRK-ZUKRI of the two documents.
    Additional (to SAP standard) split criteria are written into this field.  If two documents have different values in ZUKRI, then they will be split.
    There will be a routine in VOFM which copies fields' data into VBRK-ZUKRI.
    If you are not happy with the split criteria, you will need to edit - or explain to an ABAPer how to edit - that routine to meet your requirements.
    James

  • Additional splitting criteria

    Hello,
      I need to use two custom fields as splitting criteria during delivery creation from Sales Order and during invoice creation from delivery: as fields ZUKRL and ZUKRI, provided for this aim, are already almost completely full, I need an additional way to achieve this.
    Does anybody know of there is a user-exit or a routine, or something else, where I can carry out changes to make the program behave with my custom fields in the same way as it happens with ZUKRL and ZUKRI?
    Thanks in advance.
    Best regards,
    Andrea

    Hi,
    Giving below an example of splitting based on the 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.
    Like wise incorporate your fields which you intend to do the splitting.
    Regards,
    Saju.S

  • Invoice split with examples

    Hello guru
    can any one send the details regarding invoice split with examples
    [email protected]
    thanks in advance

    hi,
    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 documents differs in the header fields of the 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 terms of payment 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.
    Thanks
    Sadhu Kishore

  • Invoice split:  MY REQ IS I HAVE TO SPLIT INVOICE IF SHIP TO PARTY DIFFEREN

    Dear All
    My requirement is I have to combine different deliveries (and delivery can be created with reference of different sales order ) in one invoice, combination criteria ,ship to party, bill to party ,payment term ,incoterm should be the same ,Bold  marked condition is full feel by Routine 7 But ship to party is not full feel.
    If different ship to party are there then invoice should be split and different invoice will create according to different ship to party. If same ship to party then one invoice.
      Please go in Tcode:    VOFM-  DATA TRANSFER - BILLING DOCUMENT
    Check  routine : 7   Inv.Split (Rec/Div)
    Check the code which is given by SAP :
        DATA: BEGIN OF ZUK,
               MODUL(3) VALUE '001',
               VTWEG LIKE VBAK-VTWEG,
               SPART LIKE VBAK-SPART,
               ABTNR LIKE LIPS-ABTNR,
               EMPST LIKE LIPS-EMPST,
             END OF ZUK.
       ZUK-SPART = VBAK-SPART.
       ZUK-VTWEG = VBAK-VTWEG.
       ZUK-ABTNR = LIPS-ABTNR.
       ZUK-EMPST = LIPS-EMPST.
       VBRK-ZUKRI = ZUK.
    ENDFORM.
    Now I am modifying this code:
      DATA: BEGIN OF ZUK,
               MODUL(3) VALUE '001',
               VTWEG LIKE VBAK-VTWEG,
               SPART LIKE VBAK-SPART,
               ABTNR LIKE LIPS-ABTNR,
               EMPST LIKE LIPS-EMPST,
               KUNNR LIKE LIKP-KUNNR             ( This KUNNR (ship to party) is from LIKP table  ,with the help of this code I think ,in the creation of invoice (VF01 Tcode) ,it will check ship to party and if he found different ship to party then invoice will split. Please help me on this)
             END OF ZUK.
       ZUK-SPART = VBAK-SPART.
       ZUK-VTWEG = VBAK-VTWEG.
       ZUK-ABTNR = LIPS-ABTNR.
       ZUK-EMPST = LIPS-EMPST.
       ZUK-KUNNR = LIKP-KUNNR
       VBRK-ZUKRI = ZUK.
    ENDFORM.
    Can anybody tell me this will help me  to split invoice .
    Or I have to use USER EXIT ? and how
    Thanks and Regards
    Bhushan Kolte

    Yes your code will help in splitting the invoice. Actually the value mentioned in VBRK-ZUKRI will be used for splitting of invoice.
    You dont need to go for user exits.
    Hope this helps. Reward points if helpful.
    Thanks
    Balaji

Maybe you are looking for