A/P Invoice Tax amount by tax code wise

Hi All
How do we get  a report for purchase tax amount per tax code based on A/P Invoice?
I have used OPCH and PCH4 tables to query but the number of rows are repeated in the report even when a tax code having a combination?
Please help me
thanks
SV Reddy

Hi SV.....
Try this.....
SELECT T0.[DocNum], T0.[DocDate], T0.NumAtCard As 'Bill No.', T0.[CardName], T1.[Dscription],
T1.[Quantity], T1.Price As 'Rate', T1.[LineTotal] As 'Value', T0.[DocTotal] As 'Total Value',
(ISNULL((SELECT SUM(T2.QUANTITY) FROM rpc1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetQTY,
(ISNULL((SELECT SUM(T2.LineTotal) FROM RPC1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetValue,
(isnull((SELECT SUM((case when upper(t4.STACode) like 'BED%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ExciseDuty,
     (isnull((SELECT SUM((case when upper(t4.STACode) like 'eCess%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ECess,
     (isnull((SELECT SUM((case when upper(t4.STACode) like 'hes%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) HEdCess, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'VAT12.5',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT4, (isnull((SELECT SUM((case when upper(t4.STACode)
like 'VAT%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT2, (isnull((SELECT SUM((case when upper(t4.STACode)
like 'CST%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST2',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST4', T2.TransCat As 'Form No.'  FROM OPCH T0 
INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH12 T2 ON T0.DocEntry = T2.DocEntry WHERE (T0.[DocDate]>='[%0]' and T0.[DocDate]<='[%1]')
Group By T0.[DocNum], T0.[DocDate], T0.NumAtCard , T0.[CardName], T1.[Dscription],
T1.[Quantity], T1.Price , T1.[LineTotal], T0.[DocTotal]
Regards,
Rahul

Similar Messages

  • Do you know what function is to get input-tax amount by tax code on PO?

    Hi
    created PO with tax code mwskz.
    could you tell me what is function to get input-tax amount by tax code on Purchase Order?
    thanks & Best Regards;
    V

    CALCULATE_TAX_ITEM

  • Thru MEB4 the Tax amount and Tax percenatage not trigger in Background Job

    Hi,
              When I am executing the T.Code- MEB4 (Rebate Settlement) thru Foreground the Vendor Rebate Amount and Tax are showing.
                                      When I am executing in Background job the Tax amount and Tax Percentage are not triggering (Only the Rebate amount only showing) after execution of Background job in when viewing the job display.
                       Background Job Name: RWMBON01.
       Please suggest.

    Shankar,
    Thanks for reply.
    If I don't put amount in the basic data tab( MIRO) then it does not allow to "simulate" or "Post". But here I can simulate and Post
    I check every thing in WHT Config but I could't found the solution.
    I want to tell another thing, we recently went to patch upgrade from Version 4.7 E  SP 22   to 4.7 E  SP30.
    My question, Is the pacth upgrade affects in anyway???
    If any suitable answer appreciatable.
    Thanks once again for your reply.

  • Posting tax amount without tax code

    Hi all,
    I have one condition Diff which i made condition category as taxes (As per client requirement they want to post rounding amount as taxes to G/L) But when i m posting the invoice to account system is showing the error " Tax Code invalid in Tax procedure"
    where i want to post this amount as tax to G/L without any tax code.
    Pls suggest me how can i achieve this
    Regards
    Shambhu

    Hi...
    Maintain Account Key ( ERS)  for that Condition Type in your pricing procedure.Then create one new G/L account for this 'DIFF'. Now goto VKOA here assign the G/L with relavant combinations.
    Regards
    Jyohti.

  • Different No Range for invoice document no(MIRO) - company code wise.

    Dear All,
    Hi.
    at present we have just one company code in the server.
    now we are getting second company code in the same server, for this new coopany code. business needs seperate no range for invoice document no (MIRO)
    so please guide me how i can configure in the system
    Thanks
    h shah

    Hi,
    However, after testing in SAP internal system, I am afraid that your      
    request is not possible.        
    From the sap-Documentation ("Maintain Number Assignments for Accounting Documents")    :                              
    "Because document number assignment in Materials Management is not             
    company code-specific......   "                                                
    Best regards
    Erika

  • Tax Code and Tax Amount Fields are not appearing

    Hi to all,
    While making Downpayment Request (F-47) Tax Code and Tax Amount Fields are not appearing in the screen.
    for more clarity...
    suppose PO is 1150 include all taxes ( Amount 1000+ Tax Amount 150)
    as per agreement with vendor we need to raise DR for 1150 and based on DR we will make downpayment to vendor (F-48)
    But in F-47 screen Tax Code and Tax Amount fields are not appearing.
    Could any body help me on this??
    Thanks in Advance
    Regards,
    Schilukuri

    why you are looking for tax code field, pay gross amount as per PO, same amount will update in PO history as well as Vendor account.
    Even if you find the tax code field and check the tax code check box, system will not calculate tax  at the time of down payment or down payment request.
    Please remember that by default standard SAP provides the tax code field in f-47 or F-48.

  • How to enter condition wise tax amount manually in MIR7 & MIRO?

    We have a PO with a tax code entered in it.
    but while parking invoice in MIR7, we want to enter condition wise tax amount manully which is different than calculated tax amount through tax code and subsequently we want the same manual tax amount to be displayed in MIRO also
    I tried to enter amount for each condition in 'Detail' screen of 'Tax' tab in MIR7,
    but at the time of simulating, amount calculated as per tax code is only shown and not the amount entered by me
    'Calculate Tax' checkbox is not selectd in this case.
    Can anybody tell me how to enter condition wise tax amount manully in MIR7 & MIRO and post an accounting entry with this manually entered tax amount?

    Hi,
    i checked their is no unplanned delivery cost and in FV13 tax is 12.5%. In FTXP No Tax Percent rates.
    Regards
    Mahesh

  • FB60 - Two line items for tax amount (Posting Key - 50)

    Hi,
    I am facing some issue in FB60 invoice posting. For the same vendor(say V1) I am posting 2 different invoices for 100 USD - the <u>company code, G/L, CostCenter & Tax Jursdiction code are different</u> in both the cases. Once I do FB60 and got to document overview screen this is what I see...
    <b>Case1</b> - in the document overview screen I see a Posting key(PK) 31(invoice amount), PK50(tax amount) & PK40(total amount)...which is fine.
    <b>Case2</b> - in second case the document overview shows two line items for PK50(credit - tax amount) and tax amount is different.
    Two questions...
    1) Why there are two tax items (PK50 items) - is that dependent on tax rule or vendor or company code?
    2)My client says the tax amount should be same in both cases - but I am wondering how can it be, when tax codes are different in both the cases? Where can I check how these tax values are getting calculated.
    Any adivse/hints will be greatly appreciated/rewarded.
    Thanks
    Kiran

    AKu
      I got the same scenario also
      this second document display because of material price change u can double click that document

  • Tolerance for Tax Amount difference

    Dear All,
    In certain cases the tax amount given in the invoice is different from the tax calculated by the system.
    Please help me, where to make the configuration so as to accept a difference of 0.05 INR between the calculated tax amount and the tax amount in the invoice. (It will be of immense help if given with the IMG path too).
    As an example:
    Base Amount: 100, Tax Rate: 5%
    Now calculated tax amount is 5
    But tax amount in the invoice has come as 5.04.
    Please advise.
    Regards
    B.Mohanty

    Hi Umesh,
    Thank you very much for your kind and quick response.
    Yes, I have tried that option of correcting the tax amount. But am getting an message
    "The system checks the tax amounts for each code on document level. However, the amounts entered deviate more from the amounts calculated (using the percentage rates defined in tax code) than is allowed considering rounding errors".
    Can you please advise what does this rounding errors mean.
    Regards
    B.Mohanty

  • Tax amount different to expense/revenue account assignment - correct

    Hi All,
    While posting a vendor invoice we are getting error message "Tax amount different to expense/revenue account assignment - correct".
    Message no. FF796
    Diagnosis
    You have entered a manual tax amount in the first vendor or customer line.
    This tax amount has a different debit/credit indicator to the expense or revenue items relevant for tax that you entered. The tax would therefore be displayed as negative.
    The tax entry for the vendor or customer items is posted internally with the reverse debit/credit indicator to that of the vendor customer item itself.
    System Response
    The system does not permit the posting of the document in this way.
    Procedure
    Delete the tax amounts and tax codes from the vendor or customer item and enter the tax data on the tax screen.
    In the Enjoy transaction FB60/FB0, you can use the function "Propose Net" to determine the correct debit/credit for tax from the expense items.
    Can anyone please tell what settings are causing this error and

    The requirement is simple now and hope I may get some answes .
    My issue is the Sales order on free sample we want to charge the expense account insteadof  Customer account  and is happening . We are not clear from where the Exp Gl account is picked .
    The TAX Gl accounts in OB40 or VKOA configuration does not show  the exp GL account( which is substituted instaed of Customer invoice during billing.)
    It is not clear from where the GL account is flowing, We are using taxware. Before approaching Taxware thought to get opinion  from experts,
    Regards,

  • From which table i will get PO tax amont and tax code name.

    HI all
    I"m giving date to develop one Z report.Where i will get the PO tax amonut(not condition amount).i need total TAX amount and TAX code..from where i can get these two??
    plz help me
    thanks
    ramesh reddy

    Hi
    for excise check table J_1IEXCHDR for header
    J_1IEXCDTL for item excise
    The Table name used to find the Tax Values are
    KOMV: Pricing Communications-Condition Record
    KONV: Conditions (Transaction Data)
    From the above tables you can refer the fields below.
    KAWRT
    KBETR
    Fetch the corresponding records based on the field
    KNTYP
    Search net you will get many threads on this

  • Wrong Calculation of Tax Amount

    Hi to All,
    While making Down Payment Request (F-47) with reference capital PO, system is showing a warning message as below:
    Tax entered incorrect (code FU, amount      45,766.25), correct      36,882.24 INR
    Message no. FF707
    Diagnosis
    The system checks the tax amounts for each code on document level. However, the amounts entered deviate more from the amount calculated (using the percentage rates defined in the tax code) than is allowed considering rounding errors.
    Procedure
    If this message is a warning message, you can confirm that your entry is correct by pressing "Continue".
    If this message is an error message, you should correct the tax amounts or the base amounts, depending on how your tax code is defined.
    For more clarity: whatever the tax code is in PO same tax code giving in F-47. But in both scenarios system calculating differently.
    what could be the reason? Please guide me?
    Regards,
    Schilukuri

    Hi SDNer,
    Thanks for your reply.
    As you said, In PO system does not calculate tax based on the tax code,it will calculate based on the pricing procedure.
    Now my doubt is whatever the tax amount is showing in PO that we need to enter in to F-47,But here system is showing
    (Tax entered incorrect (code FU, amount      45,766.25), correct      36,882.24 INR).
    Now what should I do? Please help me on this..
    Regards,
    Schilukuri

  • S_ALR_87012357 / S_ALR_87012356-Wrong reporting of tax amounts on the tax reports.

    Hi,
    S_ALR_87012357 / S_ALR_87012356
    Tax amount for tax codes V9, VP and VT are calculated and
    displayed correctly in FI reporting but they are reported at a higher amount in
    the tax reports run by transactions S_ALR_87012357 / S_ALR_87012356.
    Since its a standard report , I would expect there would  be a way of correcting this wrong tax amount showing this report .
    Is there any SAP note regarding this error ?
    Appreciate your help and advise..
    Kind Regards
    Thiru

    Hi Srikanth ,
    As you mentioned it is showing the difference ...
    Please find attached screenshot ...
    Is there a way to correct this ? since its creating an issue& confusing from Finance/Accounting point of view...
    Kind regards
    Siva..

  • How to calculate tax amount

    Hi,
    I am working in driver program of service sheet entry SF. i want calculate Tax Amount of every line item of service entry sheet number.
      tax code, net value, total value  mention in line item but tax amount not.
    then How to calculate tax amount according tax code...............?

    Hi,
    Try with the below function module.
    CALCULATE_TAX_FROM_NET_AMOUNT
    Jshree

  • Withholding tax amount display in vendor master data

    Hi All,
       When i executining the Vendor line item Display (FBL1N), i want to see the  Withholding tax amount, withholding tax base amount. I changed the layout for display, i can't able to see withholding tax amount for Doc type RE.
    Thanks & Regards
    SUNITHA.P

    HI
    try this... define screen layout per activity (Vendors)... there in company code data u have to make wht code details as req entry... path SPRO>IMG>Financial accounting>ARAP>Vendor accounts>Master data>define screen layout per activity (Vendors)
    hope this helps u
    if it helps u pls give points

Maybe you are looking for