Invoice Split by Item category

Hi,
i have a requirement to split invooices by item category. so we dveloped a copy control routine and it is woring fine except in one scenario it is not working. if I have multiple line items wtih differnet item category mixed up system is creating multiple invoices instead of grouping i the example below
Item 10 u2013 Item Cat YY u2013 invoice  0090002341 / 10
Item 20 u2013 Item Cat XX  u2013 invoice  0090002342 / 20 -
 this one should be together with item 40 and 50 (invoice 0090002344)
Item 30 u2013 Item Cat YY  u2013 invoice  0090002343 / 30
Item 40 u2013 Item Cat XX  u2013 invoice  0090002344 / 40
Item 50 u2013 Item Cat XX  u2013 invoice  0090002344 / 50
I'm thnking if I sort vbap before hitting this code It might work...any suggessions or user exit where I can fix this.
your help much appreciated.

HI,
thanks for your response. I'm providng the code here. my issue is this, code is triggered once for each line item and the sequence the the line items come in? if the item cat of each line item different and repats the repeated line item does not get grouped under earlier line item invoice. Thanks for your responses.
if vbrp-taxm1 eq 2.
  select single steuc into l_steuc from marc where matnr eq vbrp-matnr and werks eq vbrp-werks.
  if not l_steuc is initial.
  zuk-pstyv = vbrp-pstyv.
  endif.
endif.
  if kurgv-perfk = space.
    zuk-vgbel = vbrp-vgbel.
  endif.
  vbrk-zukri = zuk.

Similar Messages

  • GR-based invoice verification for item category SERVICE

    Hi SAP Masters,
    I will be very appreciate if you will help me to solve problem related with PO for Services (item category = SERVICE).
    When I try to create this kind of purchase order the indicator GR_Based IV become assigned and cannot be changed (field is not active). Is it possible to change this setting and create PO for service where  I will be able to save invoice before GR?
    If yes, please tell me where I can change this setting?

    Hi,
    No,
    You cannot change this setting, you HAVE to have GR based IV for service entry sheets.
    I really don't like the effect of the GR Based IV flag and so I always recommend against using it unless it is absolutely necessary. But in this case it is necessary and can't be switched off.
    Have you tried using materials for services (or free text) and "normal" POs, instead of service POs? that way you can have a simple GR instead of the two step GR for services and you can also have the GR based IV flag set OFF.
    Steve B

  • AR- Invoice- splitting line item positngs

    Hello,
       we have a scenario in the AR invoice. The business invoices the customer on a weekly basis, for the week at month-end few days if the week fall into the next month( for e.g Oct 28th week , thursday and friday fall into Nov month, they want that all the revenues to be automatically split on the same Invoice and fall in the appropriate period.
    Personally I don't think there is posting date on line item , if we invoice it in nov then the total amount will post to november period.
    Can anyone provide any inputs or some work around to split the line items month-wise on the same invoice.
    thanks in advance.

    Win:
    This issue should actually be resolved by an SD consultant. It is outside FICO domain.
    For your scenario you need to modify "Billing Plan/Invoice Plan Type" which is configured in  SD > Billing > Billing Plan > Billing Plan Type.
    There are some options available in that config settings that should fulfill your needs for eg:
    In
    Milestone billing (a billing type) - the total value to be billed is distributed between the individual billing plan dates (the value billed on each date can be fixed amount or a percentage). I believe this should take care of your issue. You may need to get in touch with your Sales & Distribution team for configuring settings to satisfy your scenario.
    You can find some descriptive notes on this under:
    SD > Billing > Billing Plan, just read the documentation available to get a hang of the issue.
    Vj
    Assign points if info helps!

  • 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 (SH Region)

    Hi All,
    I have a scenario in which a sales order has two line items. Both the line items have separate ship to party (SH). There is no ship to party (SH) at the header level. When i am creating an invoice, the system splits the invoice in two documents.
    I checked the split analysis & it says:
    difference in ship to party (ADRNR Number) & the field is "region".
    My customer wants to create a single invoice regardless of the ship to party. I have checked the routine "003-Single Invoice" at the item category level but this doesn't solve the requirement.
    Is there any other standard routine or a customization to fulfill this requirement?
    Thanks & regards,
    Allabaqsh

    Hi Allabaqsh,
    Note 161545 is not helpful for your sys release.
    A split can result when any changes in the data of the partner detail screen have been made (for example, changes in
    the address). If the partners are identical or not, you can see in table VBPA. If it contains an entry in field ADRNR, then the partner detail data has been changed manually and it cannot be combined.
    Please see note 22609.
    Please note that when you manually change partner address the system generates a new address number for each change. Even if the address is changed back to the original and made the same, the system will still maintain two addresses and hence will split the invoices.
    Possible workaround would be to create your own copy routine at item level which clears the field ADRNR and add this the copy routine between the order and delivery.
    Please also try to set the ship-to party on item level instead of on header in the billing, this could also avoid the invoice split.
    Thanks,
    Alex

  • What r the conditions that u hav to check for automatic invoice split ( fro

    what r the conditions that u hav to check for automatic invoice split ( from order to proforma invoice)

    You can find out the exact fields which lead to invoice split in the Data VBRK/VBRP field of copy control between the order and the invoice type at item category level.
    Find out this routine.
    Go to VOFM tcode and Data transfer-----Billing documents
    Here you can see the routine. See the code behind this routine. This will give you the exact criteria used for invoice split in your specific case.
    By default,
    It is payer, payment terms, incoterms, Billing date
    Hope this helps.
    Reward if this helps.

  • Item category and pricing type

    Dear All,
    I have an requirement of special Sales order from end user.
    In our business scenario, while creating invoice, we click on update button (conditions tab) and choose pricing type B to get the present/updated price.
    But now  we have some special customers for whom we have to maintain the same price of items till the total quantity gets despatched. Even if the price of item gets updated, the same should not get updated even we click on update button.
    During making of invoices we have a practice of mrerging many sales order into one delivery and merging many deliveries into one invoice.
    Right now we have many normal invoices created with item category TAN(pricing type is maintained as G).also we have made special orders with item category ZTAN. How do i bill them together, without changing pricing type G To B in TAN, in which the special orders dont get updated but the normal orders get updated by clicking update button ?
    Can anyone pls tell me, can i create a new pricing type in which i can  update items with any item category except ZTAN?

    I have tested with one open sale order where the pricing date for a material is 22-04-09.  For that material, I have changed the pricing in VK11 with effective date as 28-04-09 and saved.
    In VA02, I clicked the "Update" button in condition tab and system is not picking the revised price.  This means, what I said earlier holds good. 
    To summarise, in copy control for your item category, if you maintain "G" for the field "Pricing Type", and if you change the pricing condition in VK11, system will not  consider the revised price in existing sale orders unless the pricing date is within the validity period in VK12.
    thanks
    G. Lakshmipathi

  • Is it possible to split invoice Item category wise?

    Is it possible to split invoice Item category wise

    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

  • Aggregating Item category in sales order to Invoice

    Hi
    There are two itemcategories in our sales orders one is revenue recognition type and other one normal item category, when we are billing the sales order, iam getting 2 invoice documents for the same sales document. Our client has requested is it possible to combine the 2 item categories to get single invoice.
    Is it possible to do that in SAP only with configurations?
    Thanks,
    Vaishnavi

    Hi Vaishnavi ,
    You can prevent multiple invoices for multiple item categories with the help of Copy control.
    In copy Control  there you will find one field called "Data VBRK/VBRP" there you assign a routine which determines the splitting criteria.
    In that routine you can define the Criteria as when to split the invoice. Take the help of your ABAPer .
    Hope this helps to you.
    Regards,
    Nikhil

  • Item category copying incorrectly at Invoice

    Dear Experts,
    I have custom item category ZTAN for my Z order type.
    For eg, i have an order for Material 1, 100 PCS. Sales order picks item category correctly. But in delivery i hav batch split. Hence Line item 10 -Material 1- 100 pcs, consists of three batches, B1-50 Pcs, B2-30 pcs, B3- 20 pcs.
    When i do invoice
    Line item 10 - 0.00 qty Item category ZTAN
                    11 - 50 Pcs, Material 1, Batch B1, Item category TAN
                    12 - 30 pcs Material 1 Batch B2, Item category TAN
                     13- 20 Pcs Materail 1 Batch B3, Item category TAN
    TAN is not defined anywhere in copy control and item category determination too. But system is considering item category TAN at billing. Is this a standard functionality or somewhere i went wrong?
    Please advise
    Thanks & regards,
    Deepu Pillai

    Hello Deepu,
    Yes, the solution suggested by Reazuddin above is the perfect way to solve your error.
    Even I faced the same issue couple of years back & learnt it the hard-way...
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • Different Item Category and  single invoice.

    Hi Experts,
    A customer has 2 materials one is third party mat(TAS),Second one is normal mat(TAN)..These both items entered in one sales order and his requirement is he wanted in single invoice with out splitting? How can we do this?
    Is it possible then how.of not then why not?
    Regards
    Rohit

    Rohit,
    Very Interesting scenario, it can be made possible.
    But first let me tell you both the process, to convince my solution.
    a. TAS item category is used in third party scenario. wherein delivery will happen from third party vendor. Invoicing will be addressed to us by the vendor using which we will invoice the customer.
    This is order relavent Billing process.
    b. TAN item category is used in standard process wherein delivery and invoicing takes place. This is delivery relvant billing process
    Both are totally different, but if you insist you please contact your ABAPER to get a customised invoice.
    Regards
    Sathya

  • Add Item category in Transaction variant  on document splitting config

    Hi guru
         In configuration Document splitting I add Item category 04000-cash account  in Transaction variant  0300-vendor invoice
    I can save it but i recheck item category 04000 disapper from trasaction variant , How I can add it .
    Thank you very much.

    Hi,
    Cash Account 04000 is not required to be assigned to Vendor Invoice 0300 or Customer Invoice 0200 rather it should be assigned to Business Transactions 0000, 0400, 0500, 1000 and 1010.
    Regards,
    Sanjay

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

  • Split Charging for PO-Framework Order with Item category B- Blank Item

    Hi,
    how can i make the system split the qty percentage/charging  for Framework Order ,Charge to Project and Item Category of B- Blank item during PO creation/change. This functionality is behaving normal for  a standard PO charge to P and item category is standard.
    we are using ecc6 and we dont use any material master..
    Thanks in advance..
    She

    Hi,
    This can be controlled through account assignment category,
    In SPRO > Materials Management > Purchasing > Account Assignment > Maintain Account Assignment Categories > Double click on account asignment category > Fill the field distribution according to your requirement.
    During PO creation, in item details, account assignment tab, you can give the split.
    Regards,
    Prabu

  • Problem in Supplier Invoice - Item Category

    Hello all,
    When trying to create an Invoice, the system returns the following error:
    [Item category 40100 not allowed in accounting transaction 0300/0001]
    Where/How can I solve this problem?
    Kind Regards,
    Miguel

    Hi ,
    Please check wherther that item category is relavant for billing in VOV7.
    If its blank there you won't be able to generate any billing doc..
    Thanks,
    AMOD

Maybe you are looking for