Invoice calculation

Hi frnds,
             i hav to do some calculations for invoice quantity.
Units still to be invoiceIf not history (not matching records of EKPO in EKBE)
INVOI_QTY = order_quantity = EKPO-MENGEIf there is history:INVOI_QTY =
Order_quantity – sum_of_IR + sum_of_IR_reversal, wheresum_of_IR =
     sum_of_GR = sum of EKEB-BPMNG when history is a GR credit (IR:
EKEB-VGABE =2 & Credit  EKEB-SHKZG = S)sum_of_IR_reversal = sum of
EKEB-BPMNG when history is a GR debit (IR: EKEB-VGABE =2 & Debit: EKEB-
SHKZG = S)
i know one function module me_calculate_history.
but unable to do the calculations.
can any one hlp me using this function module for invoice quantity.
thnking u all.
regards,
karan

Any help my dear frnds.
regards,
karan

Similar Messages

  • Error in invoice calculation scheme

    Hi dears
    I have two calculation schemes ZXXX3 and ZXXX31. The second one was created as a copy of ZXXX3, nothing was changed in it.
    I assign the new scheme ZXXX31 to my sales area, create sales order and then create invoice via vf01 for this order without problem.
    Then I assign the old scheme ZXXX3 to the same sales area instead ZXXX31, create sales order and try to create an invoice. But I can't save it because is shows me an error "interface RW: document data header are inconsistent for updating"
    ECC6.0 system
    I have equal sales area, customer, material, data and so on. I have difference only in scheme name. The condition exclusion rules are the same for both schemes.

    Hi, Phanikumar
    I check these schemes in the test system, there fore I can take the same customer / material / quantity / organization data and so on. The pricing procedure is the same in sales order and in invoice.
    The invoice is hitting RW because the accounting  document is created with reference to invoice, e.g.
    Account determination is definited in calculation scheme by accounting key ERL:
    The condintions ZPR1 and ZR02 are in different exclusion groups
    and these excluding groups are assugned to both calculation schemes.
    I've found that if I delete ZR02 condition from ZXXX3 cheme it begins to work. But ZXXX31 works with this condition properly. The scemes were created as copy of each other.

  • Reg  A/R invoice calculation

    Hi
    Document total is not tallying with clients
    clients calculation:
      Amount                                                 12000
      P & F charges                  2%                    240
                                                                   12240
      Excise duty                    8.24%                1008.58
                                                                   13248.58
      VAT                                12.5%               1656.07
                                                                  14904.65
        Rounding                                                      .35
                                                                  14905.00
          SAP B1 calculation                                                                               
    12000
                Excise duty                     8%                        960
                                                      2%                          19.2
                                                      1%                            9.6
                                                                          12988.8
                 VAT                               12.5%                1623.6
                                                                          14612.4
                  Freight                          2%                          240
                                                                           14852.4
       how to tally document total  with clients calculation
    Edited by: raj kumar on Apr 18, 2009 8:13 AM

    hi,
    Adjust frieght amount to (14612.4*0.02) = 292.248
    292.248 + 14612.4 = 14904.608.
    Jeyakanthan

  • Difference between factory excise invoice and Depot Excise Invoice

    Hi
    Is there any difference in invoice calculation part in excise invoice through Factory sales and excise invoice through depot sales?I know the processes but not sure about the excise calulation in these.

    Hello,
    From the point of view of Customer, there is no difference, because he can claim Excise Credit to the extent he has received in your Excise Invoice (factory or Depot).
    From your point of view, as far as Excise Calculation is concerned, there is one basic difference. In Factory Sales you can create new Excise Liability (Say you have received Excise Credit from Vendor as Rs. 100 but you can pass Rs. 120 to Customer by paying the difference to Excise authorities).
    While in Depot Sales you cannot create additional Excise liability & only pass the Excise Credit that you have received from source (Factory In this case).
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Dunning In SAP

    Hi Expert,
    I need your help in Dunning issue. Customer raised issue that he want dunning letter need to be print on last level of dunning, but he also want dunning should happen in all the level(In my case there are 4 dunning levels & customer want all the 4 level need to be done but Dunning letter need to be print on higest level only. i.e. 4th level). He want only dunning letter @ higest level with 4th level dunning text.
    Please see the below details:
    At the moment we have following settings in F150 transaction
    if i print directly i will have 3 diffrent Dunning letters for the same customer, instead of ONE which should contain all overdue invoices calculated on highest Dunning level.
    With another words, SAP should escaladate and print the highest level of Dunning.
    Can you please guide me how I can work on this issu?
    Thanks,
    Regards,
    Kapil

    Hello,
    You can use BTE 00001040 to determine the printer/printer options to be used based on dunning level by changing the structure C_ITCPO in the FM.
    It will help you to know which letters should be send out and which ones should not. For example, you can leave levels 1 to 3 in the spool and print level 4 on a physical printer.
    Regards

  • Tax behaving differently

    I have 2 subtransactions (MXP1 and MXP2) that are both under main transaction 0100.  In billing document document, I can see that the base amount and tax code are correct for both subtransactions.
    Both subtransactions have the same GL account, CO Acct assignment and tax code in posting area R001.
    The problem is in invoicing.  Invoicing calculated tax for both and provided additional 2 line items for the tax calculation but only line item for tax on MXP1 has a flag "Consider Items in Bill Sum Total" = "X". 
    Why is line item for tax amount on MXP2 not flagged?  Why is there a difference?

    I checked the billing schema and its the same for both.

  • CKMM  Change Material Price Determination

    Hello all,
    Under what conditions or scenarios CKMM (Change material price determination) is used in Material Ledger/Actual Costing
    Thanks

    Nasir,
    I presume that you are aware of the two price controls prevailing in Product Costing. (1) Standard Price S is constant price without considering usage or invoices; Material stock valued at the same price over an extended period; Price variances are posted to price difference accounts; not affecting the standard price. (2) Moving Average Price V is the price that changes in consequence of usage and entry of invoices; Calculated by dividing the value of material by the quantity in stock; Automatically recalculated based on activity.
    Thru' CKMM transaction, you can inter-switch material from one price control to another. However, as I have been observing clients dont move from one price control to another just like that. In my many years of SAP experience, I have moved so far only one material from V to S.
    Even within Standard Price S, the standard price can be adjusted from single / multilevel pricing to transaction based pricing. CKMM transaction can also be used for making that kind of change.
    Thanks.

  • How to add an address book field into a Numbers spreadsheet?

    In Pages, I can add an address book field so I can drag & drop a contact from my address book into the actual document without having to type out the address, city, state, zip etc.
    Is this possible in Numbers? I use spreadsheets to create invoices and I really miss the drag and drop features that I have gotten used to in Pages.
    Any help would be greatly appreciated!

    Hello,
    It seems that all the same Functions are available for calculations in a table within Pages as in Numbers. Perhaps you could keep working in Pages and do your invoice calculations there.
    Highlight the table cell into which you want to place a calculation and select Insert - Function from the Command Menu.
    Jerry

  • Tax not calculating for parked invoices

    Hi
    We are using external tax system to determine taxes in SAP.  When an invoice in MIRO is posted normally, the external tax system is called and tax is getting updated.  Whereas, when the invoice is parked for future posting, tax is not being calculated.
    Please help.

    Hi Nikitha
    I am able to park the document with tax.  The problem is when I return to the parked document, I cannot see the tax in the field i.e., it shows 0.00 and therefore the system does not allow me to post the document.

  • Dunning (Want to add interest calculation on unpaid invoices (open items)

    We have a requirement in dunning program. we would like to add interest calculation on unpaid invoices (open items) to our dunning letters. This interest should be not posted, but calculated only for information purposes. At this moment we can calculate interest only on cleared items.
    anyone has any idea about this ? what possibilities are there in SAP for this requirement?
    Thanks,
    Naveen

    Hello Vimal ,
    I want to understand we have setting in Dunning FBMP and OB42. if i will set the interest in OB42 and Select the interest indicator in FBMP.! the interest will be calculated for open items and no posting will be done in customer A/c?
    Will you please elobrate about the setting that will be required to do the setting as per the requirement.
    Thanks,
    Naveen
    Edited by: Naveen.Rana on May 26, 2011 9:22 AM

  • Exchange Rate calculation mismatch in Sales Order Invoice and Cancelled Invoice

    Hi,
    In Sales Invoice, Exchange Rate is maintained as 7.75132
    Invoice Amount is 72000 USD. So the Amount calculated should be 558095.04.
    But in Accounting Document the Amount is posted as 558095.15 for the GL Sales Account.
    In Cancelled Sales Invoice, Amount posted is  558095.04 in GL Sales Account which is correct.
    Please help me understand why there is difference in both the Amount even when the Exchange Rate is same.
    Regards,
    Debashri Dutta

    Hi Ankur,
    Thanks for your reply.But our problem is sales order,exchange rates are defined with M type in OB08 as u have said.However when the periods are different for order entry and invoice generation we are facing the following problem.Orders are at old exchange rates and excise invoice is getting generated at current exchange rate.This is resulting in value difference between commercial invoice and excise invoice.
    Please help.
    Regards,
    Praveen

  • Excise Duty is not calculating in Export Excise Invoice

    Hi Experts,
    Please help me out to resolve below scnerio:
    When Client is creating a domestic Excise Invoice by Tcode J1IIN, then BED, Cess & HSCess is calculating properly.  But in case of Export Excise Invoice by J1IIN only BED calculation is displaying, Cess & HSCess value is not coming. Kindly guide me how can i resolve this issue. Also explain me the exact process of Export Invoice with Excise configuration.
    Regards
    Mahendra Mhatre

    Hi Mahendra,
    I understand that while you are trying to post an Export invoice, you need to print excise invoice which is a legal requirement.  But, in SAP the same should not be posted in any of the excise tables.  I think there should be a small settings from SD side to restrict generating any accounting documents for the Export Excise Invoice.  Can you please speak to the SD consultant.
    Hope this helps.
    Vikas.

  • Excise Duties is not Calculating in Excise Invoice

    Hi Experts,
               I am doing CIN configuration, i did all configuration settings, I did classify condition types also, but i am not getting Excise duties is not calculating in to Excise INVOICE, please help me with solution
    Thanks
    SESHU

    Please try to develop the habit of updating the forum properly so that it will be helpful to all.  The comment what you have added is not going to solve the problem.
    thanks
    G. Lakshmipathi

  • Excise Invoice:difference in duty calculation while calculating ECS& SECS

    Hi All,
    There is a difference in duty calculations in excise Invoice, (1) which is generated automatically while creating billing doc manually ) &  (2) generating billing doc & excise invoice in PRG.In PRG Billing doc is getting generated by BAPI 'BAPI_BILLINGDOC_CREATEMULTIPLE" and Excise invoice by BDC for t-code J1IIN.
    What is the difference?
    While calculating ECS duty & SECS duty , AED amt should be excluded. Accordingly billing document pricing procedure was set and was working properly in both the above cases(1),(2).
    But standard Excise Invoice tax procedure TAXINN,which is assgined for  Excise Invoice there is difference in calculations manually & by PRG using BDC
    Thanks in advance
    Rayudu

    Hi Mahendra,
    I understand that while you are trying to post an Export invoice, you need to print excise invoice which is a legal requirement.  But, in SAP the same should not be posted in any of the excise tables.  I think there should be a small settings from SD side to restrict generating any accounting documents for the Export Excise Invoice.  Can you please speak to the SD consultant.
    Hope this helps.
    Vikas.

  • BED is not calculating values after enter Excise Invoice number in MIGO

    Hi,
    We are doing a process of MB01 --> J1IEX --> MIGO.
    At the time of J1IEX, we entered the Excise Invoice number and date. After that when we change the quantity, then BED is automatically change.
    But at the time of MIGO, when we enter the Excise Invoice number, then BED is not calculating as calculated in J1IEX earlier.
    This was working fine before apply the Patch. I think this is due to Patch because in our Development system still working fine but we have apply the Patch in Quality Server..there this problem comes..
    Please guide what should be configuration changes has been done after apply the patch.
    Applied Patch is: - SAPKH60015 & SAPKH60016..
    Plz guide..

    hi
    i think your doing something wrong
    i think first when u did j1iex then in MIGo u have to go for ONLY REFER INVOICE option
    better you go for other process
    DO GR for required quantity say 5 out of 10 without excise
    then do J1iex  with reference to GR number
    regards
    kunal
    Edited by: Kunal Ingale on Jul 28, 2010 9:15 AM

Maybe you are looking for

  • IPad2 freezing (not OS5 related, I promise!)

    Hi, I'm having some troubles with my ipad2.  I, at some point, pretty much filled it up in terms of space.  That might have something to do with my issue. When I plug it in to sync/update, itunes just freezes.  It sees the device, but any attempt to

  • Safari won't run in 32-bit mode?

    Hi, until yesterday I was able to run Safari in 32-bit and some applications/utilities such as LiveDictionary and WebSnapper could run in this manner. Suddenly this morning the above mentioned applications don't work any more and I think the problem

  • HTML Snippet as a hyperlink

    Is there a way to make an HTML a hyperlink? Such as a Java banner that would link to one of my own pages. The option isn't available on the inspector.

  • My imac doesn't seem to have textedit

    why don't my imc have textedit ? i got the imac on early 2012

  • TS3276 hotmail smtp outgoing server not working

    I have been unable to send emails from my Mail account as it continues to say SMTP server is offline.  Has only been happening in the last 2 weeks.  Any advice???