Tax total breakup in A/R Invoice udf

Hello all,
I am trying to print the tax total in the PLD of the Tax Invoice. I have created udf in the invoice and added the following code as formatted search.
SELECT T1.[Taxsum] FROM OINV T0 inner join INV4 T1
WHERE T0.[Docentry] = T1.[Docentry] and T1.[staTtype] = -90
and T0.[Docnum] = $[OINV.DocNum]
The above code is for VAT. this returns correct value for 1 item, but when there r more than 1 items, it gives me a choice to select the vat amount for the individual items. I need to sum up all the vat amounts and enter the summed amount into the field. How do I use the Sum function to correctly reflect the total vat amount of the whole invoice instead of giving me individual amounts?
I use a similar code for the tax percent. but that has the same problem as well.
scorp

Hi Gordon,
I was going through previous threads and I came up with a query suggested by K Shreyas
Formula for tax break up in PLD documents
Suppose you want the total Excise Amount for the document in A/R Invoice
attach this query as a formatted search
SELECT sum(taxsum), t0.docnum as "Doc Num" FROM OINV T0, INV4 T1
WHERE T0.Docentry = T1.Docentry and T1.statype =-90
and t0.docnum =$http://OINV.DocNum group by t0.docnum
I modified the above query as in the first post to give me a single value successfully, but when I try the sum function it doesn't work. I thought I was not using the correct syntax and hence my question. The client needs the total sum of the Taxsum column for each of the percentages to be mentioned in the invoice generated.
scorp

Similar Messages

  • Bifurcation of tax in PLD of A/P Invoice

    Hi Experts,
    Please tell me how to Bifurcate tax in PLD of A/P Invoice.
    regards,
    RRKumar,
    SAP B1 Beginner

    Hi RP,
    Check Tax breakup document for step by step guide at
    https://websmp201.sap-ag.de/~sapdownload/011000358700004326202006E/HowToTaxBreakup_2004_2B_IN.pdf link.
    Want to display TAX Code in PLD dynamically thread
    Thanks,
    Neetu
    Edited by: Neetu Dhami on Jun 14, 2011 11:02 AM

  • Tax calculation on sales order and invoice is different

    2007A, SP0, PL49
    The tax on a sales order does not match the tax on the linked delivery and invoice by 1 cent. We take payment based on the sales order amount as the delivery and invoice are done after the fact. Why is the tax calculated differently on the delivery/invoice? We would want it to always match.
    Item price = $111.04. Taxcode rate 13% has combination of 5% GST + 8% ONTAX.
    On Sales Order, ONTAX = $8.88
    On Delivery/Invoice, ONTAX = $8.89
    Can someone please explain the difference? Is rounding/tax calcualtion controlled by system settings per document?

    Something must be wrong with your Sales Order tax.  The actual tax would be 8.8832.  Round up to 8.89 is correct.  Do you have any SP, FMS or add-on been used?
    Thanks,
    Gordon

  • TDS TAX AMOUNT  IS NOT MACHING WITH INVOICE WTAX AMOUNTu2019

    Dear All,
    I am Facing Following Problem in TDS
    While creating an A/P Invoice after putting row level information when user click on u2018ADDu2019 button u201CWithholding Tax Tableu201D opens for deduction of TDS amount. When user selects u201CWithholding Tax Codeu201D in u201CWithholding Tax Tableu201D to deduct TDS amount for an invoice system shows WTax amount as per rate of deduction. But when user click on u2018OKu2019 to u201CWithholding Tax Tableu201D window, WTax Amount will comes as zero on A/P Invoice window.
    Then when again user will go to u201CWithholding Tax Tableu201D and manually put the value of WTax Amount system reflects it on A/P Invoice window.
    In case when we set approval procedure to A/P Invoice, this invoice goes for an approval. After coming back as approved invoice when originator of invoice going to u2018ADDu2019 the same document system shows an error as u2018TDS TAX AMOUNT  IS NOT MACHING WITH INVOICE WTAX AMOUNTu2019
    please reply me ASAP
    Thanks & Regards,
    Swapnil

    hi
    try this
    We need to follow  the following steps
    u2022     Open the BP master for which TDS needs to be deducted go to the accounting tab followed by tax option and then  click on the checkbox subject to withholding tax
    u2022     Click on the option WTAX codes Allowed and select the TDS Category
    u2022     On the previous window click the check box pertaining the checkbox  u201CTDS OVERLOOKu201D
    Regards,
    Manish

  • Posting taxes and revenue account seperately in invoice

    Dear Team,
    As per our client requirement, they want to post taxes immediately at the time of invoice creation. However, they want the revenue recognition after some time/days of invoice creation. This is requirement of revenue recognition for aerospace industries.
    Could you please suggest any possible configuration/development.
    Thanks and regards,
    Suhas

    it applies to only few materials on a sales order as items
        and with only 1 specific item category
    This should have been posted in sales forum.
    Better go with a new pricing procedure with new sales / billing document types based on which, the requirement can be met. Hope, you know the basic SD configurations like assigning pricing procedure to document type etc., based on which, system will trigger the required pricing procedure when you create a sale order.
    thanks
    G. Lakshmipathi

  • Tax breakup in A/R INVOICE PLD

    hi to all,
                  i am using sap b1 2005b pl 40 but i  am trying to make pld of a/r invoice in which i want tax breakup like excise duty,education cess ,higher education cess....and sales tax.but i dont know. how to set.so pls send me detail procedure its very urgent......
    Regrads......

    hi vishal,
    Pl refer below document for tax break up in PLD.
    How to show Tax Break-up in document printing (India) 2004.2.pdf
    Use below link
    https://websmp201.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000680297&_SCENARIO=01100035870000000183&_ADDINC=011000358700002837782005E&
    login using s-user id & password.
    Jeyakanthan

  • Rounding of document total in draft A/R Invoice

    Hi All,
    I am creating document draft of A/R invoice through user defined screen (DI API). after creating the draft document, when I see the actual draft document through document draft report in SAP, the document total has the difference of 0.1. where should the rounding be changed in system? document and system currency is INR. there is no rounding given in currency setup. i have not given any rounding in document also.
    the values in user defined draft are :
    total before discount : 19144.8
    discount % = 40
    total after discount : 11486.88
    tax (12.5 % for all items in the document )
    tax = 1435.86  (12.5% of total after discount)
    rounding = 0.00
    doctotal : 12922.74
    when it is saved, the system draft document shows following value:
    total before discount : 19144.8
    discount % = 40
    total after discount : 11486.88
    tax = 1435.85  (12.5% of total after discount)
    rounding = 0.00
    doctotal : 12922.73
    if you check, the value is different in tax field. system has calculated tax on 11486.8. whereas, I have calculated tax on 11486.88. and this only gives the difference of 0.1 in doctotal. now, anybody can guide on why this is so?
    thanks and regards,
    Binita
    Edited by: Binita  Joshi on Oct 8, 2009 11:05 AM

    Hi Dwarak.....
    Run time total sum is not possible throgh FMS else you would have to to SDK work. But if you want it to be displayed then you can display it into the simple PLD. Whenever your client requires he will fill the AR invoice details and just click on the print preview. This way you can solve the purpose.......
    Regards,
    Rahul

  • Query that show total discount on A/R Invoice

    Dear all,
    I would like to have query that show summary of each invoice number that show 'Total of discount'  ( 'Total of discount' = total of discount in line item + discount of total invoice ). Data that I would like to show on this query is as follow :
    Invoice No, Invoice Date, Customer Code, Total before discount, 'Total of discount',  Total Amount, Vat amount
    Please kindly suggest the way to get this data.
    Thanks you in advanced.
    Angnam

    Hi Angnam K,
    Try This one...hope this will serve your purpose.
    SELECT  DocEntry, DocNum,   CardCode, CardName, DocDate, [Total Before Discount] , [Totaldiscount]+  [OinvDiscount] as [Total of discount], VatSum [Total Tax]      FROM (
    SELECT T0.DocEntry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], SUM(T1.[LineTotal])[Total Before Discount],
    SUM(T1.[PriceBefDi] * T1.Quantity *T1.[DiscPrcnt])/100 as [Totaldiscount]
    ,Case When T0.[DiscPrcnt] <> 0 Then  (SUM(T1.[LineTotal])/ T0.[DiscPrcnt]) Else 0 end [OinvDiscount] ,T0.VatSum
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    Group By T0.DocEntry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DiscSum] ,T0.[DiscPrcnt],T0.VatSum )Sales
    thanks,
    Kumar
    Edited by: itskumaramit on Jul 13, 2011 12:43 PM

  • TAX code error in ar Auto Invoice Import

    Hi All,
    I am getting error in Auto Invoice Import program
    Unable to find a default tax code for this transaction.
    ==========================================
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 1 of 4
    Request Id: 936978
    Batch Source: HANSENS
    Transaction Flexfield:
    Transaction Type:
    Bill To Customer Number: to
    Bill To Customer Name: to
    GL Date: to
    Ship Date: to
    Transaction Number: to
    Sales Order Number: to
    Transaction Date: to
    Ship To Cust Number: to
    Ship To Cust Name: to
    Interface Lines:
    Selected: 2
    Successfully Processed: 0
    Rejected: 2
    Interface Salesreps:
    Selected: 0
    Successfully Processed: 0
    Rejected: 0
    Interface Distributions:
    Selected: 0
    Successfully Processed: 0
    Rejected: 0
    Transactions Created:
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 2 of 4
    Request Id: 936978
    Grand Totals:
    Number of Number of Number of Number of
    Class Transactions Lines Sales Credits Distributions Invoice Amount
    0.00
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 3 of 4
    Request Id: 936978
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 4 of 4
    Request Id: 936978
    Summary of Receipts Processed :
    Taiwan AutoInvoice Validation Report Date: 22-JUL-2009 12:33
    Page: 1 of 3
    Auto Invoice Request Id 936978
    Batch Source: HANSENS
    Transaction Flexfield: HANSENS: BT5830000575.1
    Type Bill to Customer Name Item Description Currency Amount
    Invoice Merrill xx Pierce, xxr & Smith Inc Audio TWD 167.00
    Errors: 1) Unable to find a default tax code for this transaction.
    Transaction Flexfield: HANSENS: BT5830000575.2
    Type Bill to Customer Name Item Description Currency Amount
    Invoice Merrill xx Pierce, xx & Smith Inc VAT TWD 8.00
    Errors: 1) Unable to find a default tax code for this transaction.
    Summary of Transactions Rejected:
    Currency Number of Number of Number of
    Code Lines Sales Credits Distributions Invoice Currency Amount
    TWD 2 0 0 175.00
    Summary of Transactions with Errors:
    Currency Number of Number of Number of
    Code Lines Sales Credits Distributions Invoice Currency Amount
    TWD 2 0 0 175.00
    BT Taiwan AutoInvoice Validation Report Date: 22-JUL-2009 12:33
    Page: 2 of 3
    Auto Invoice Request Id 936978
    Batch Source: HANSENS
    BT Taiwan AutoInvoice Exception Report Date: 22-JUL-2009 12:33
    Page: 3 of 3
    Auto Invoice Request Id 936978
    Batch Source: HANSENS
    ==========================================
    I have checked in Memo Lines all exists.
    Please suggest.
    Thanks in advance,
    Ajit
    Edited by: Ajit Raut on Jul 21, 2009 7:39 PM

    Hi Ajit
    Please Check if TAX is enabled in Transaction Type.
    regards
    raghu

  • Billing Plan / Sales Output tax to be deducted at final invoice

    Hello Folks,
    The scenario is related to construction industry where client billing is triggered via milestone/billing plan. the scenario example is lets say the price is 100USD. After applying 16% tax, the net value will be 116USD.
    Now, there are total 3 invoices send to client.
    2 invoice are commercial invoice (without sales tax) and third and last is sales tax invoice which includes total tax value from sales order.
    1st Invoice 40% of price : 40 USD (Commericla invoice W/o Tax) - 1st of July
    2nd Invoice 60% of price: 60 USD (Commericla invoice W/o Tax) - 1st of August
    3rd invoice 16% of Price: 16 USD (Sales Tax invoice) - Final Invoice - 1st of August
    Would like to know your opinions to map this process requirement in SAP.
    **By the way we are using SAP IS-ECO.
    Thanks.

    I would suggest, this can be achieved with diff pricing procedure & billing doc type.
    1st Invoice 40% of price : 40 USD (Commericla invoice W/o Tax) - 1st of July
    2nd Invoice 60% of price: 60 USD (Commericla invoice W/o Tax) - 1st of August
    Say, the above have diiferent billing doc type with diff doc pricing procedure the sales order and determine pricing accordingly.
    Here, don't allow system to determine tax, say, don't have tax condition in pricing
    3rd invoice 16% of Price: 16 USD (Sales Tax invoice) - Final Invoice - 1st of August
    here also diiferent billing doc type with diff doc pricing procedure other used in sales order & above billing doc type and determine pricing accordingly. Thus allow system to determine tax, say, have tax condition in pricing.
    Regards
    JP

  • Tax being calculated during Parking of Invoice

    Hello Gurus!
         I have a problem with the parking of invoice using a specific Tax code in our dev. environment. I could not save the document due to an error message "Check not successful due to document balance". I created three line items (shown below), one is for the vendor and the other two are for the GL Account:
    1. Post. Key = 40; Vendor = 100000; Amount - 50,000.0000
    2. Post. Key = 31; GL Account = 600-24-00; Amount = 20,000.000; Tax code = "IC" (12%)
    3. Post. Key = 31; GL Account = 600-24-00; Amount = 20,000.000; Tax code = "IE" (Tax excempt)
    After creating these line items, I noticed that the document already computed for the tax amount for line item# 2 which shouldn't be the case. Thus, giving the total Debit and credit amount a balance of 2400 as shown below:
    D - 52,400.000        C - 50,000.00       Balance - 2,400.000
    As far as I know, the document will only compute for tax amounts as soon as this document is posted.
    How is this possble?
    Need your expert advice on this matter.
    Thanks!
    Jeffrey

    Hi Jefferey,
    As you are specifying a tax code in line#2, system calculates tax.
    Normally when we post with tax,
    on Line 40:
    1. We manually enter tax amount in tax field
    2. or we use a self assessable tax code(Like U1) and check Calculate tax. System then calculates tax as per the rate.
    on Line 31:
    We only specify the tax code by which system calculates tax.
    I suppose you are not trying to enter tax amount or tax code on line 31.
    Assign points if useful
    Thanks, Ashok

  • Tax Line in R12 in Quick Invoices Screen

    Hi Friends,
    Actually, am facing some problems relating to eB Tax architecture of R12.
    In R12, I am trying to create one invoice through Quick Invoices screen.
    The invoice contains.. 2 Lines.
    1. Item Line.
    2. Tax Line. I have entered all the information related to Tax (Tax Regime, Tax, Tax Status, Tax Rate Name).
    I saved the invoice and ran the Payables Open interface import program.
    It is getting rejected during import process with the following error.
    "The invoice cannot contain Tax Lines as tax calculation will be done for the invoice".
    Kindly help me with this issue.
    Regards,
    Ajit

    Hi Suhasar,
    Thanks for your response. But the main thihng, i would like to know is:
    In 11i, we used to create a new line of type TAX and work.
    Doesn't the same thing work in R12?
    If not, then why are we allowed to create a line of type, "Tax" in R12?
    What could be the reason for providing it but the same thing does not work out while importing, which works very well in 11i?
    I am quite confused about this. It would be great, if you could help out with this.
    Thanks in advance.
    Regards,
    Ajit

  • Regarding Error in Tax Codes after Creation of Excise Invoice.

    Dear All,
    We are using TAXINN Procedure,I have maintained condition records and given the correct tax codes in them for Basic Excise Duty,Secondary Cess and Higher Secondary Cess on the table 357,however after checking the accounting document which is created post creation of excise invoice the wrong tax codes are getting picked up however when i create my commercial invoice and check the tax codes the correct tax codes are coming,please advice what needs to be done to rectify this error.
    Best Regards
    Atul Keshav

    This query is now resolved

  • Error in Tax Code after Creation of Excise Invoice

    Dear All,
    We are using TAXINN Procedure,I have maintained condition records and given the correct tax codes in them for Basic Excise Duty,Secondary Cess and Higher Secondary Cess on the table 357,however after checking the accounting document which is created post creation of excise invoice the wrong tax codes are getting picked up however when i create my commercial invoice and check the tax codes the correct tax codes are coming,please advice what needs to be done to rectify this error.
    Best Regards
    Atul Keshav

    Hi
      If you are using TAXINN procedure, check apart from VK11 check you have maintained TAX CODE for excise condition types. Example FTXP or VK19 (using application as TX). Also check whether you are using UTXJ condition type. If you are using UTXJ condition type then please remove it.
       For TAXINN you need not have UTXJ condition type.
    Regards
    MBS

  • Warning/Error Message for Tax Code Mismatch between PO and Invoice

    Hi Experts
    Is there any SAP standard warning/ error message thrown when the User changes the tax code in the invoice which does not match the default tax code of the PO? The client would like to identify a 'tax code variance'.
    If no, is there anyway we can configure this? I have checked in OMRM and OBA5 and could not find any relevant message types for the above requirement.
    Any inputs would be helpful.
    Regards

    Hi,
    Can you maintain the validation for your requirement, when user change the tax code system give  warning or error message automatically.
    Edited by: Lavanya.ch on Dec 15, 2011 8:15 AM

Maybe you are looking for