Group consolidate invoice line items

Hi all,
If I have multiple sales orders but all with the same characteristics at item level (material, currency etc.), and if I consilidate the sales orders during billing, will I also get a single invoice line item?  or will I get one invoice item per sales order item?
Trying to avoid maxing out on the AR items.
regards
Tim

Hi Tim,
You will get invoice with as many items as you have in all sales order billing billed in that invoice. During posting to FI in general you will have one FI document line per item/GL account (determined from VKOA based on Customer Account Assignment Group, Material Account Assignment Group and accounting key assigned to condition type in pricing procedure) combination. You can limit number of G/L lines by applying posting aggregation for FI-SD interface. Youc an define the fields, which are not relevant for FI document and the fields will be cleared resulting in aggregation of the G/L lines on G/L account/posting sign (debit credit). Please be aware that the field you clear for aggregation will not appear in the line items in FI, so cannot be used as characteristics of the postings in the G/L.
Regards,
Marcin

Similar Messages

  • Insert/Update/Delete Non-PO Invoice Line Item via FM/BAPI?

    Does anyone know of a way to insert/update/delete an Invoice Line item (Non-PO Accounting Invoice - Transaction FB60 or FV60) using a BAPI or Function Module (or set of function modules) using ABAP? I have been trying to find some code to accomplish this and am stuck on a couple of issues.
    I have found PRELIMINARY_POSTING_FB01 and PP_CHANGE_DOCUMENT_ENJ but both seem to submit the details to background processes. This is an issue because it gives the user a success message after execution but later delivers the error to Workflow. This is for an interfacing program so the results should be as real time as possible.
    Has anyone accomplished this via FM or BAPI and if so would you mind sharing your experiences?
    Thank you very much,
    Andy

    SG- Thank you for the reply.
    I have been playing with BAPI_INCOMINGINVOICE_PARK and I'm not sure if it is doing exactly what we want, but it is something that I have considered in the past. I plan on looking into BAPI_ACC_INVOICE_RECEIPT_POST this morning, hopefully that will provide some more for us.
    If possible I'd like to avoid BDC sessions because this program could hypothetically interface with multiple SAP systems with different configurations.
    I will check into those FM's and thank you very much.

  • Invoice line items report from DSO compared to Infocube (in HANA)

    Hi Folks,
    As you know Invoice line items are very granular level information. We are facing performance issues on reports based on the Infocubes to display this information. We are migrating to HANA and looking for options to improve the performance. One of the option we are looking at is instead of Infocube can we we report directly on the DSO. I would like to know whether it will help and its Pro & Con's. Please help.
    Thanks,
    B

    Hi B,
    Reading data from a DSO instead of an InfoCube will not improve reporting performance. The benefit in getting rid of the cube is that you have less loading to do.  You still need cubes for planning and inventory scenarios.
    You do not need a composite provider to report from DSOs in BW. Once you've migrated to HANA you use DSOs just as you would today, and you can report from a multiprovider. Yes, you can use a composite provider, but it is not necessary.
    If your report is slow today, you need to find out where it is slow.  HANA could provide a huge benefit as soon as you migrate, or it might not help much.  It depends on the scenario. OSS 1681396 is a good place to start.
    If the DB time is long, and you're not using BWA today, you can expect big benefits when you migrate to HANA.
    If the OLAP time is long, you might see big benefits when you migrate, as the OLAP engine during query execution is pushing more to HANA.
    If the frontend time is long, migrating to a different database isn't likely to change that, you'd need to address that separately.
    Finally, an important point to remember is that once you've migrated you open up additional possibilities for improvement that are not available to you in BW-on-non-HANA.  For example, you might be able to rewrite queries as HANA models.  I did some performance tests on this in a very simple case of exception aggregation.

  • Relation between Invoice Line items and Accounting Line item

    Dear All,
    My requirement is to print all the invoice documents and it's tax values like cenvat, Ecess, BED and VAT.
    I have to fetch these tax details from BSEG table .
    I' am getting Invoice number ( RBKP-BELNR ) from BKPF-AWTKEY .
    Can any one please tell me how to relate the Invoice line items and Accounting document line items..
    Any BAPI or FM is there to retrieve these data.
    Please do needful in this regard.

    Hi,
    from table bseg - field Koart
    K = Vendor
    D = Customer
    S = G/L account here tax lines identify with buzid = T
    or take table bset for taxes
    Andreas

  • Payment to be done according to invoice line item

    Dear SAP Friends,
    I require a small clarification on Payment. Please see the below screnario.
    1. I have a invoice for 10000 USD, Which includes 3 lines in the details.
           a. Water Charge - 3000
           b. Electricity Charge - 5000
           c. Rent Charge  -        2000.
    2. Now i receive a payment of 8000.
        Will it possible to match the invoice line item to receive the payments of 2 individual lines for 5000 and 2000.
        When i checked with our FI consultant , i saw that payment is done with respect to the whole invoice , not the individual detail line.
    Can anyone please provide some information on this.
    Thanks
    Kunaseelan.

    Hi
    Payment will be done with respect to Invoice only but not based on the Individual Line Items.
    you can do by partial or Residual Payments.
    Regards
    Venkat

  • Post non PO invoice line items using INVOIC01 and FM IDOC_INPUT_INVOIC_MRM

    hello there SAP folks,
    Have an interesting question for all of you. We currently have a partner through whom we use the IDOC_INPUT_INVOIC_MRM Function module to pass invoices. Now there are multiple line items some times [multi E1EDP01 / E1EDP02] segments which all refer to the same PO but to different line items on the PO. Now all that is well.
    For one particular partner we now have the following requirement. We are going to have the same condition as above, with the added condition that there are going to be some invoice line items with no reference to a PO. the reason is that the vendor is going to calculate the different taxes and send them to us. so when we post the invoice :
    we will now have
    31 Vendor
    40 GR/IR
    40 Tax 1
    40 Tax 2
    50 Tax 3 offset
    instead of
    31 vendor
    40 GR/IR
    to deal with the new situation I tried adding having the following
    first E1EDP02 is going to refer to the PO using qualifier 001, but second E1EDP02 [for tax] s not going to have a qualifier 001. When I do that i get a missing belnr (001) and zeile (001) error.the exact error message is the following
    Required field BELNR(001) is missing in segment E1EDP02
    Required field ZEILE(001) is missing in segment E1EDP02
    Message no. FD070
    Now to bypass that, I added the 001 qualifier for the second E1EDP02 [tax part] and now the error that I get is either the PO is duplicated or if i put some dummy PO number, then it says PO cannot be found.
    =======
    so the question is how is it possible to post  4 items in the idoc , with one being a PO reference and 3 non PO reference using INVOIC01 and IDOC_INPUT_INVOIC_MRM
    I also have to add that it is possible to add a non PO items to the MM invoice in MIRO by entering the additional tax lines using the g/l account tab next to the PO reference tab.

    nvm.
    Edited by: D N on Dec 16, 2008 2:10 PM

  • During F110  run-How to pick profit centre from the Pur.Invoice line item ?

    Could anyone please help me with a solution to this problem.
    Purchase invoice line items have got profit centre recorded from Material master.
    While doing the auto payment run F110, for foreign currency invoices, the exchange rate diff
    is posted to a - realised exch rate diff gl a/c.
    But there is no cost object attached.
    Business wants the system to pick the profit centre from the purchase invoice line item
    and put it in the line item record of the exch rate diff account.
    Can I do it using OKB9 ? Could someone please explain how to do it.
    Thanks

    Hi,
    With standard SAP this is not possible.may be you have to develop some custom program.
    with my experiance,we always post to defualt cost center.
    hope this helps you.
    Thanks,
    Rau

  • Grouping of SC line items to single PO

    Hi,
    We are facing an issue with grouping of SC line items to one single PO as per the details given below.
    The requirement is if the SC has 10 line items as below
    5 line items with no source of supply                - 5 PO's
    3 line items with preferred vendor (82000000)    - 1 PO
    2 line items with preferred vendor (82000001)   - 1 PO
    In the first case 5 PO's has to be created. This is standard no issues.
    In the second case system has to group 3 line items to 1 PO.
    In the third case system has to group 2 line items to 1 PO.
    We have tried the BADI BBP_LOCAL_GROUP_PO and it doesn't help for the second & third case of our requirement.
    We tried using the Document change badi to convert the Prefferred vendor to vendor and could not do that.
    We also tried the FS BBP_SC_TRANSFER_GROUPED, but it doesn't cater to our requirement.
    Any help would be highly appreaciated.

    Here is a sample code that convert preferred vendor into fixed vendor.
    You can easily change it to your requirement )
    method IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE .
    Constants : c_vendor type BBP_PDS_PARTNER-PARTNER_FCT
    value '00000019',
    c_preferred_vend type BBP_PDS_PARTNER-PARTNER_FCT
    value '00000039'.
    Data : ls_partner type BBP_PDS_PARTNER.
    *Read Table it_partner into ls_partner With key PARTNER_FCT = c_vendor.
    *If sy-subrc NE 0.
    Loop at it_partner into ls_partner
    where PARTNER_FCT Eq c_preferred_vend.
    Move c_vendor To Ls_partner-PARTNER_FCT.
    Modify it_partner from ls_partner index sy-tabix.
    Endloop.
    *Endif.
    et_partner[] = it_partner[].
    ET_ORGDATA[] = IT_ORGDATA[].
    ET_ITEM[] = IT_ITEM[].
    ES_HEADER = IS_HEADER.
    ET_ACCOUNT[] = IT_ACCOUNT[].
    *break ybo
    *IT_PARTNER
    *ET_PARTNER[]
    endmethod.

  • Order To Cash - AR Invoice Line Item description change

    Hi,
    I have a requirement of concatenating some value to the Invoice line - Item description in the AR Invoice created thought Auto Invoicing.
    Please could anyone tell me the best way of doing it.
    Thanks & Regards,
    Genoo

    Hi Luko,
    Thanks for your response.
    I noticed that Item Description is not a free text field in Sales Order Line..
    My requirement is that I have a value which needs to be concatenated to Item Description, when we interface the Order to Receivables through Auto Invoice program.
    Any possible ways please?
    Thanks,
    Genoo

  • Sorting Invoice line items after they've been summed

    Hi,
    I'm working on a template for the out-of-box invoice using the XML it generates. The body of the document contains the line items, and I've successfully been able to print and sum (net amount and tax) these line items by Item Description and Unit Price using the following code:
    <?for-each@section:G_INVOICE?>
    <?for-each-group:G_LINE_TOTAL;./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE']?>
    <?for-each-group:current-group();./LIST_G_LINES/G_LINES/LINE_UNIT_SELLING_PRICE[../LINE_TYPE='LINE']?>
    <?./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE']?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_QTY_INVOICED[../LINE_TYPE='LINE'])?>
    <?./LIST_G_LINES/G_LINES/LINE_UNIT_SELLING_PRICE[../LINE_TYPE='LINE']?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_ITEM_AMOUNT[../LINE_TYPE='LINE'])?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_EXTENDED_AMOUNT[../LINE_TYPE='TAX'])?>
    What I need to do now is also SORT the summed line items by Item Description and Unit Price, but everything I've tried is giving me errors.
    One thing I've tried is adding the SORT command to the element that is printing the Item Description as in the following:
    <?sort:./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE'];'ascending';data-type='text'?>
    I've also tried adding a separate field to do the sorting, but I'm getting different errors then.
    Thanks in advance for any suggestions.

    Thanks! This helped to some extent.
    Adding the sort for the LINE_ITEM_DESCRIPTION after the for-each-group for it worked to sort the lines by item description, but when I added the sort command for the LINE_UNIT_SELLING_PRICE within its for-each-group, I get the following error:
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:593)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:390)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:208)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1019)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:972)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:211)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1577)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:952)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Caused by: java.util.EmptyStackException
         at java.util.Stack.peek(Unknown Source)
         at java.util.Stack.pop(Unknown Source)
         at oracle.xdo.parser.v2.XSLTContext.popCurrentGroupingKey(XSLTContext.java:905)
         at oracle.xdo.parser.v2.XSLForEachGroup.processGroups(XSLForEachGroup.java:468)
         at oracle.xdo.parser.v2.XSLForEachGroup.process01(XSLForEachGroup.java:282)
         at oracle.xdo.parser.v2.XSLForEachGroup.process(XSLForEachGroup.java:210)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:94)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEachGroup.processGroups(XSLForEachGroup.java:465)
         at oracle.xdo.parser.v2.XSLForEachGroup.process01(XSLForEachGroup.java:282)
         at oracle.xdo.parser.v2.XSLForEachGroup.process(XSLForEachGroup.java:210)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:94)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:142)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:508)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more
    I would appreciate to know what is wrong with this and, also, how to interpret these errors.....is there any sort of error code manual?

  • In A/P Invoice line items is not showing.............

    Hi All,
                There is an A/P Invoice, with no line Items. But the Document Total is Rs. 100000/-  When I check the Base Document there are 10 Line Items in GR(PO). Surprised to see this..............How is it possible. And when i open A/P Invoice base document icon also unable mode. Please do the needfull.
    Arbaaz,

    Hi Arbaaz !
    As you told that you have tracked the base document with the help of users , that this particular GRPO is the base document of that invoice . Now have you checked the target document of that particular GRPO . Is this drag you to the invoice or this is also freezed ?
    If the Target document icon is also freezed this means that your invoice is not at all linked to any GRPO , the invoice is made independently somehow ..
    Thanks
    Ashish

  • Error 'Enter GL Account' while posting and invoice line item in MIRO

    Hello Gurus,
    I am facing a rather wierd issue.
    While posting a PO invoice in Tcode MIRO, its asking to enter the GL account in line items. Everytime I am entering the GL account and pressing the enter key, it wipes off the GL account clean and gives the same error 'Enter GL account'.
    It seems like this error is happening at the very first line item of the invoice. System is able to accept the GL account in 2,3,4th lines. If I delete the first line item, whatever is the first line item in that screen adapts the issue.
    Any help would be great as I have no clue what to do.
    Thanks

    Hello Priyadarshini,
    could you inform the error message number and it complete long text?
    Regards,
    Mateus Grings

  • Reference document number field on Invoice line item

    Can anyone please tell me , where in customization , do i define what should get copied in the reference document number field on the line item of an invoice.
    Currently in our system, credit memo request number is getting populated for a credit memo.
    Thank you for your help in advance.

    Hi,
    If you are talking about line item level, then it is called Allocation Number. At the header level, it is called Reference number.
    This is controlled using the copy control for billing - at the header level control.
    The reference number & allocation number once maintained in the configuration, will show up in the Accounting doc - header level & item level, respectively.
    For example - if the customer payment always refers to his PO number, then it really helps to use the allocation number for the accounting doc line items - which helps in clearing incoming payment faster. In this case, the reference number could be our delivery number. This is one of the examples for using both Ref & allocation #'s.
    Hope, this helps!
    S. Siva

  • Invoice line items

    hi all,
    iam getting sales document number from vbak on the basis of it iam getting invoice number from vbfa.now i want to get header data from vbrk & lineitem data from vbrp.
    tables:vbak.
    types: begin of it1,
           vbeln type vbak-vbeln,
           vkbur type vbak-vkbur,
           zinv type vbfa-vbeln,
          netwr type vbrk-netwr,
          fkdat type vbrk-fkdat,
          arktx type vbrp-arktx,
          fkimg type vbrp-fkimg,
          znetwr type vbrp-netwr,
          matnr type vbrp-matnr,
          vbtyp_n type vbfa-vbtyp_n,
          posnr type vbrp-posnr,
           vrkme type vbrp-vrkme,
           zcount type i,
           end of it1.
    data: itab type standard table of it1 with header line.
    data:itab2 type standard table of it1 with header line.
    data: v11 type vbak-vbeln,
          v12 type vbak-vkbur,
          v10 type vbfa-vbeln,
          v13 type vbfa-vbtyp_n.
    data l_tabix type sy-tabix.
    parameters : zkunnr type vbak-kunnr,
                 vkbur type vbak-vkbur.
    DATA: v1 type vbrk-netwr,
          v2 type vbrk-fkdat,
          v3 type vbrp-arktx,
          v4 type vbrp-matnr,
          v5 type vbrp-fkimg,
          v6 TYPE vbrp-netwr,
          V7 TYPE VBRP-POSNR,
          v8 type vbrp-vrkme.
    data vposnr type vbrp-posnr.
    data count type i.
    select vbeln vkbur  from vbak into corresponding fields of table itab where kunnr = zkunnr.
    append itab.
    loop at itab .
    l_tabix = sy-tabix.
    select vbeln vbtyp_n into (v10 ,v13) from vbfa where vbelv = itab-vbeln and vbtyp_n = 'M'.
    itab-zinv = v10.
    itab-vbtyp_n = v13.
    modify itab index l_tabix.
    ENDSELECT.
    endloop.
    loop at itab.
    delete itab where vbtyp_n <> 'M'.
    endloop.
    I have the invoice number & the sales document number in itab ,for every invoice number i need the header data from vbrk & item data from vbrp in itab can anyone tell me how to achieve this?
    rgds.
    points wuld be awarded.

    hi,
    You can pass VBELN form VBFA to VBELN of VBRK and get the required data from VBRK, after that pass VBELN of VBRK to VBELN of VBRP and get the required line item data.
    Hope thihs solve your problem.,
    Regards,
    Bharat.
    Reward points if helpful.

  • Invoice line items - inconsistant data returned from RV_BILLING_PRINT_VIEW

    Hi there,
    We are using a modified version of SAP standard Print Program RVADIN01 for our invoices, for many years now.
    Everything works fine 99.9% of the time. Every now and again though, there is issue with the invoice, the root of which is data brought back from RV_BILLING_PRINT_VIEW .
    From debugging the latest issue, I can see that the standard FM RV_BILLING_PRINT_VIEW, which is bringing back data for line items, is not filling all the data in certain cases.
    For example, yesterday we had an invoice with 10 line items - this FM brought back full data for 9 line items, but the first was missing data in fields such as LAND_WE, SPRAS_WE etc. This then lead to a problem with text being read from T604T for that line.
    I've checked that data being sent to RV_BILLING_PRINT_VIEW, and it looks correct.
    I've checked and been assured that Master data is maintained correctly etc.
    Does anyone have any thoughts on this or experience of something similar?
    Thanks,
    David

    Hi Vijaymadhur,
    Thanks for your response - I checked again in VF03, and the Ship-to is maintained for this line.
    Infact, the second invoice line is almost identical to the first (except for quantity) and the FM brings back the correct ship-to etc. for that line.
    Thanks,
    David

Maybe you are looking for