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

Similar Messages

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

  • 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

  • Splitting Invoice Storage Location Wise

    Dear Gurus,
    plz help i have the following problem :
    when creating invoice using TCode VF01 with reference to delivery document it should get split if the storage location in delivery are different . Consequently each invoice that generated shall have a unique number .
    Regards,
    Rohit

    Hi,
    You will need help from a functional consultant to do this.
    But let me try to explain what you need to do from technical point of view :
    1. You can write a routine for this in the transaction VOFM :
    If you run transaction VOFM, and Go to Data Transfers --> Billing documents, and take a look at the first routine routine number 1 which says Inv.split (sample). Create a new routine starting with 9 ( 901 perhaps ) , copy the code from that routine and add one more field to the structure ZUK ( storage location) and move the storage location from the order item to this structure's corresponding field. Move structure ZUK to vbrk-zukri field.
    This will create a unique key for the invoice split criteria for every storage location.
    2. Include the routine in the program RV60BNNN.
    3. Now you will need help from a functional consultant to do the rest.
    Also refer to this link for details about transaction [VOFM|http://saptechsolutions.com/pdf/InsideVOFM.pdf]
    regards,
    Advait

  • Split invoice

    Hello,
    Is there any standard routine to split invoices based on diffrent payement terms in line item. Tried with standardData VBRK/VBRP - 006 in VTFL but that does not check the payment terms which is mentioned inside the code.
    Please help
    Reagards,
    Nitesh

    Dear,
    May be it will help you. Please go via this link,
       [Is it possible to split invoice Item category wise?;
       [Split invoice Item category wise;
       [Invoice split;
    Regards,
    Sandip

  • Item category 04000 is missing (obligatory in accounting transaction 1000/0

    Hi Friends,
    I got the following error msg while I am trying to post the customer invoice:
    Item category 04000 is missing (obligatory in accounting transaction 1000/0001)
    Message no. GLT2002
    Diagnosis
    The online document splitting is active in your system. Here, each document is assigned to a accounting transaction variant and each document row to an item category.
    You determine for each business transaction variant which item categories can or must be posted here.
    The following error occurred for the document you entered:
    Item category 04000 could not be derived from a document line item. This item category is however defined as obligatory in accounting transaction 1000, variant 0001.
    System Response
    The document cannot be posted.
    Procedure
    Check the document entered, the derivation of the business transaction variant, the derivation of the item category, and the assignment of the item categories to the business transaction variant.
    What could be reason?   Can any one guide me!
    Thanks in advance.
    Regards,
    GB

    Hi
    The reason you receive error item category 04000 is missing is due to the fact that none of your line items contain a GL account which is assigned to item category 04000
    Check the document type you are using to post the customer invoice.  Normally the transaction 1000/0001 is associated with payment document types.
    See the customizing of your business transaction variant. (SPRO -> Financial accounting new -> document splitting -> Extended document splitting -> Define Business transaction variants 1000 -> Choose Accounting transaction variant 0001.  You will see that the item category 04000 is a required field, this meands that when posting document you must have at least one iem item that is item category 04000.  If in your example you have no line item with this value you will receive this error.
    The 'required' flag set in the business transaction variant is set by default and cannot be changed by the user.
    Use an alternative document type for a customer invoice posting for example document type DR is assigned  0200/0001, this does not have item category 04000 as a required field.
    with kind regards
    Cora

  • Updating the Item category in a Free of Charge order

    Hi all,
    I am currently working in a requirment on Free of Charge orders.
    Existing scenrio is : In Free of Charge orders, if there is a BOM material is associated in the sub item, then the particular product's item category is not editable, so we can't alter it manually. SAP Note : 796926 says there are restrictions for usage of free of charge transaction types when the sub item involved is BOM.
    Requirement: To make this item category editable in this scenario.
    So we are currently looking for an option to make an enhancement to SAP standard program for this.  I tried to debug standard modules from the point where we open an order. But not able to find any significant place which deals with disabling this item category.
    Any suggestions on the SAP CRM program which deals with this will be very helpful.  Thanks in advance.

    hi
    Once the BOM is created it is not possible to change the item category,either you have to delete the material and re-enter the material with different item category
    regards
    thyagarajan

  • Change item category of BOM component

    Hi,
    Our user wanted to change the item category for BOM components through transaction IB12 using LSMW.Wanted to confirm whether it is possible to change item categoryof BOM component from "N" to "L" through LSMW.What exactly will be effected because of this change?And the steps to change the item category from "N" to "L" for the list of BOM component using LSMW.
    Request your valuable thoughts.
    Thank you in advance,
    Regards,
    Rubina Rahman

    Hi Rubina,
    N is non stock item
    L is stock item
    You have to make sure why the business warants to chnage the item category.
    To answer the question:
    It is possible to chnage the item category from "N" to "L" through LSMW (Provided depends on the number of components used in a BOM. If the number of items exceeds to multiple screen, then you have to think of developing BDC)
    The effect will be: with item category "N" if the material is used in the order, based on the configuration the system shall automatically trigger the purchase requisition. With item category "L" it is assumed as stock is available and taken care by MRP program.
    Suppose if it is material BOM:
              A. Use T.code: CS02 in LSMW recording
              B.  Provide information like Material number, Plant, BOM usage
              C. In the item level change the item category from N to L
              D. Save the recording
              E. I hope you know the remaining LSMW process steps
    Cheers,
    Raj

  • Change item category in a PO

    Hi experts,
    I'm would like to change the item category (from L to empty or vice versa) while creating a PO in reference to a PR (the PR has been created through a project, CJ20N).
    But I'm always getting the error message "Requisition has different doc. type NB and item cat. >L<u201D.
    I had a look to "Spro/Material Management/Purchasing/Purchase Requisition/Define document types" but I couldn't solve the problem.
    Could you give some advises?
    Thanjs

    Hi,  you are probably right that I mixed account assignment category and item category, not the first time that I mix these two indicators.
    In old PO transactions is not possible to change the item category, but with the new transactions like ME21N  it is possible.
    Please have a look into OSS Note 26027 - Converting PReq into purchase order: Dialog indic.
    Maybe you have the same wrong entry in the customizing table as described in this note.

  • Not able to select Item category in KE27

    Dear Experts,
    I created a characteristic Item Category and I derivate this field through a user exit. When I tried to run KE27 excluding by Item category (some materials from specific item categories must not be revaluated), the system generates error KG018, not allowing me to put the item category in the selection.
    Item categories doesnt show up in match code as its derived by a user exit.
    Question: How can I make it possible to select the item category information in KE27?
    Is it possible to derive to CO-PA direct from VBRP?
    Is the error because I derive it from user-exit?
    Kind Regards
    Mayumi Blak

    I found the answer myself!
    I have to create the options for the characteristics in KES1.
    KR
    Mayumi Blak

  • Item Category Completion rule and Copy Control for contract reference

    Hi
    We are creating sales document wrt contract. The item category completion rule for item category WVN is C i.e. item is completed after target quantity is fully referenced.
    We dont want to change this but we want that even if the target quantity is fully referenced one particular type of sales document should still be allowed to be created with reference to this contract.
    Please guide how can I achieve this.
    Thank You
    Brajendra Shrivastava

    Hi
    Is it possible to remove the item category completion rule and then restrict one particular document type or item category for only one time reference . In other words to apply completion rule at document type or tiem category level.

  • Bom massive change of item category

    dear
    can you suggest a valid tool for a massive change of item category.
    I need to change the item category of many bom component.
    The old value is L , the new value is N.
    In transaction CS02 is very difficult to change the item category of a component.
    Thanks.

    Hi,
    It is not possible to change the Item Category. You would need to delete the line & re-create back with the new item category.
    You may use CEWB as suggested above, or you may go for a Z program.
    Regards,
    Vivek

  • Item category field in sale order screen to be greyed out

    Dear Friends
                        While creating sale order I have a requirement to make item category field to be uneditable i.e greyed out .
    How can I do that ?
    Regards
    Mahesh.

    Hi,
    Once there is any subsequent document to sales order item catagory field is going to be grayed out, till that time u can change ur item category. OR if u do nlt maintain manual item categories in the item category determination  to ur sales document type it is not possible to change the item category other than the one u specified in the determination.
    Regs,
    Ravi Duggirala

  • 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

  • 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

Maybe you are looking for

  • Make to order---subcontracting

    Dear Expert, Please help me on below scenario. I raised special sales order through MTO process. After that i run MRP. In this Process, one Subcontracting Process comes throgh Production Planning. I have converted PR to Subcontract PO. The Account as

  • Quicktime Will Not Load?

    I have the latest Quicktime player, I have windows vista ultimate. When I click on the quicktime player on my desktop, the player just says loading and just stays like that??.. I wait,wait and wait, but nothing happens?? Can someone please help me. R

  • First name last name sort order-how to correct on iphone

    hello all. i have mobile me (hate that name) set correctly with the sort order of first name first in my extensive contacts list and the same in my address book on my main mac, yet my new iphone stubbornly refuses to order the contacts correctly, ins

  • Bad Quality Macbook !

    I've had my Macbook since August 2006, and it's "falling Apart". The DVD/CD drive isn't working anymore, the screen is flickering, and plastic is peeling off the very bottom of the computer along the edge ! It's already had a logic board replaced und

  • Why do I have sound only in one headphone, stereo and docking station?

    Why do I have sound only coming out of one side of headphone, car, stereo and docking station when playing itunes?