Query on Withholding Tax

Hi Expert,
I'm using the following query to inquire on withholding tax.
SELECT T0.[DocDate], T0.[TransId], T0.[CardName], T0.[LicTradNum] as 'TIN', T0.[WTApplied], T0.[WTSum], T0.[WTSum]-T0.[WTApplied] as 'Tax Due' FROM OPCH  T0 WHERE T0.[DocDate] >=[%0] and  T0.[DocDate] <=[%1] and   T0.[WTSum] > 0 ORDER BY T0.[CardName]
I have setup different withholding tax rate depending on the payment however I want to include in the query the withholding tax rate.
How can I include the tax rate on the query.
Thanks,
Arlmi2000

Hi Hendry
Thanks for your reply. I tried your query but there was a syntax error in your query.
1). [Microsoft][SQL Native Client][SQL Server]Incorrect syntax near '0'. 2). [Microsoft][SQL Native Client][SQL Server]Statement 'Service Contracts' (OCTR) (s) could not be prepared.
But I was able to get an Idea on what table I need to include in my query.
Below is the query I develop and it already include the tax rate. 
SELECT T0.[DocDate], T0.[TransId], T0.[CardName], T0.[LicTradNum] as 'TIN', T1.[Rate], T0.[WTApplied], T0.[WTSum], T0.[WTSum]-T0.[WTApplied] as 'Tax Due' FROM OPCH  T0 INNER JOIN PCH5 T1 ON T0.DocEntry = T1.AbsEntry WHERE T0.[DocDate] >=[%0] and  T0.[DocDate] <=[%1] and   T0.[WTSum] > 0 ORDER BY T0.[CardName]
However, I still facing problem, How can I exclude in the result  the documents with previously applied Credit Memo?
Thanks,
Arlmi2000

Similar Messages

  • Query related to withhold tax

    Hi  Freinds,
    This is mamatha i have a query related to withhold tax .what is diff b/w business place and section code.what is importance of section code.
    Regards
    S Mamatha
    Please, search SDN

    For India, witholding tax, you need to create the business place and section code with the same id.
    Section code is additional field provided by sap for tds related processig, reports etc.
    Regards,
    SDNer

  • Unable to Change Withholding Tax Base Amount while creating Service AP Invoice through DI API?

    Dear All,
    I am trying to create Service AP Invoice through DI API.
    If I post the document without changing SAPPurchaseInvoice.WithholdingTaxData.TaxableAmount the dount ocument is created in SAP without any problem.
    But if I change amount in above field then DI API throws error Unbalanced Transaction.
    If I post same document in SAP with changed base amount it got posted in SAP without any Issue.
    Where I am doing wrong?
    please guide.
    Using:
    SAP B1 version 9 Patch Level 11
    Location : India.
    Thanks.

    Hi ,
    maybe you can find solution to these note 1812344
    1846344  - Overview Note for SAP Business One 8.82 PL12
    Symptom
    This SAP Note contains collective information related to upgrades to SAP Business One 8.82 Patch Level 12 (B1 8.82 PL12) from previous SAP Business One releases.
    In order to receive information about delivered patches via email or RSS, please use the upper right subscription options on http://service.sap.com/~sapidp/011000358700001458732008E
    Solution
    Patch installation options:
    SAP Business One 8.82 PL12 can be installed directly on previous patches of SAP Business One 8.82
    You can upgrade your SAP Business One to 8.82PL12 from all patches of the following versions:8.81; 8.8; 2007 A SP01; 2007 A SP00; 2007 B SP00; 2005 A SP01; 2005 B
    Patch content:
    SAP Business One 8.82 PL12 includes all corrections from previous patches for releases 8.82, 8.81, 8.8, 2007, and 2005.
    For details about the contained corrections, please see the SAP Notes listed in the References section.
    Notes: SAP Business One 8.82 PL12 contains B1if version 1.17.5
    Patch download:
    Open http://service.sap.com/sbo-swcenter -> SAP Business One Products -> Updates -> SAP Business One 8.8 -> SAP BUSINESS ONE 8.82 -> Comprised Software Component Versions -> SAP BUSINESS ONE 8.82 -> Win32 -> Downloads tab
    Header Data
    Released On
    02.05.2013 02:34:18  
    Release Status
    Released for Customer  
    Component
    SBO-BC-UPG Upgrade  
    Priority
      Recommendations/additional info  
    Category
      Upgrade information  
    References
    This document refers to:
      SAP Business One Notes
    1482452
    IN_Wrong tax amount was created for some items in the invoice with Excisable BOM item involves
    1650289
    Printing Inventory Posting List for huge amount of data
    1678528
    Withholding amount in the first row is zeroed.
    1754529
    Error Message When Running Pick and Pack Manager
    1756263
    Open Items List shuts down on out of memory
    1757641
    Year-end closing
    1757690
    SEPA File Formats - New Pain Versions
    1757898
    Incoming Bank File Format
    1757904
    Outgoing Bank File Format
    1762860
    Incorrect weight calculation when Automatic Availability Check is on
    1770690
    Pro Forma Invoice
    1776948
    Calendar columns are wrong when working with Group View
    1780460
    OINM column description is not translated
    1780486
    UI_System crash when you set extreme value of double type to DataTable column
    1788256
    Incorrect User-Defined Field displayed in a Stock Transfer Request
    1788372
    ZH: 'Unacceptable Field' when export document to word
    1788818
    RU loc: No freight in the Tax Invoice layout
    1790404
    Cash Flow Inconsistency when Canceling Payment
    1791295
    B1info property of UI API AddonsInstaller object returns NULL value
    1791416
    Adding a new item to BoM is slow
    1794111
    Text is overlapping in specific localization
    1795595
    Change log for item group shows current system date in all the "Created" fields
    1797292
    Queries in alerts should support more query results
    1800055
    B1if_ Line break issue in inbound retrieval using JDBC
    1802580
    Add Journal Voucher to General Ledger report
    1803586
    Not realized payment is exported via Payment Engine using 'SAPBPDEOPBT_DTAUS' file format
    1803751
    Period indicator of document series can be changed although it has been used
    1804340
    LOC_BR_Cannot update Nota Fiscal Model
    1805554
    G/L Account displayed in a wrong position when unticking the checkbox "Account with Balance of Zero"
    1806576
    Payment Cannot Be Reconciled Internally
    1807611
    Cannot update UDF in Distribution Rule used in transactions
    1807654
    Serial No./Batch inconsistency by canceled Inventory Transfer
    1808694
    BR: Business Partner Code cannot be updated with CNPJ CPF error
    1809398
    CR_Cannot Display Related Multi-Value Parameters
    1809758
    Arrow key not work for Batch/Serial Number Transactions Report
    1810099
    Tax Amount is Recalculated Even if Tax Code Is Not Changed
    1811270
    Upgrade fails on Serial And Batches object with error code -10
    1811846
    Cannot run Exchange Rate Differences when multi branch is activated
    1812344
    Withholding Tax Amount Is Not Updated in Payment Once Witholding Tax Code Is Changed in Document through DI API
    1812740
    DI:"Operation Code" show wrong value when add "A/P Tax Invoice" based on "A/P Invoice"
    1813029
    US_Vendor address on 1099 Summary by Form/Box Report is not updated according to the latest Invoice
    1813835
    Wrong amounts of Goods Return in Open Item List
    1814207
    Preliminary page prints setting does not keep after upgrade
    1814860
    Value "Zero" cannot be imported to "Minimum Inventory Level" field via Excel file
    1815535
    RFQ: Web front end not displayed in supplier language
    1815810
    GT: Adding Incoming Payment for Some Cash Flow Relevant Accounts Fails
    1816191
    BR:System Crashes While Working with Tax Code Determination Window
    1816611
    CR_Crystal Report Displayed Incorrectly Afte

  • Delete Withholding tax info in cleared document

    We recently made the change from classic to extended withholding tax. I've been able to successfully run RFWT0010 and RFWT0020 when the withholding tax in a vendor master record was changed. However, we have several vendors the were marked as 1099 vendors (non employee compensation) that really are not subject to withholding tax. I've removed the withholding tax data in the vendor master record, but the documents still contain the withholding tax information, even after I've run both RFWT0010 and RFWT0020.  I've opened up those fields to be changed in document settings already. Is it not possible to delete or remove withholding tax from the document unless I do it manually through FB02?

    We had the same problem. There is no SAP delivered tool like RFWT0010 and RFWT0020 that will work to delete withholding tax data from cleared documents.  However you can create a CATT script for transaction FB09 which will work to do this. I used SE16n to gather the needed information which is document number, Line item number and fiscal year. I uploaded the relevant vendor numbers into the query screen for table WITH_ITEM
    I chose the relevant fiscal years, tax type FE, tax code not equal to blank, base amount not equal to zero,  i chose to display all those plus line item number document number, vendor number,  We only have one company code so that was not relevant for me.
    I then copied that list into my Catt global variant spreadsheet and away I went. I would worn you about reversal documents you might want to exclude those.  I would create a Variant for these selections as well
    Good luck
    Also if it doesn't really matter what the historical line items say. I had the users simply exclude those vendors from 1099 selection criteria

  • Extended Withholding Tax - Localization Brazil - Withholding Customer

    We have the Withholding Tax on receipt of customers.
    The register settings in the client is correct.
    We are having problems in receiving compensation therefore is not accounting the Withholding Tax , but was attributed to the accounting codes and categories of taxes.
    Is there a setting for withholding tax for Customer.
    Best regards
    Ana Cláudia Fernandes

    Hello,
    plz post your query in correct forum ERP Financials.

  • RFWT0010 withholding tax type and tax code change in vendor master problem

    Hi
    Due to some reasons I need to change the withholding tax type and tax code in vendor master.
    When i am running the report RFWT010,After changing the tax type and tax code in vendor master...the list contains no items. eventhough there are 14 line items for the vendor that are required to be adjusted with new tax type.
    Please suggest how to solve this query.
    regards
    yesap.fico

    Any inputs?

  • Withholding tax settings

    Hello Friends,
    With respect to withholding tax settings i have a query.
    In the IMG menu there is withholding tax setting available under Financial Accounting >Financial Accounting Global Settings and also availalbe under Financial Accounting >Accounts Receivable and Accounts Payable>Business Transactions>Incoming Invoices/Credit Memos>Carry Out and Check Settings for Withholding Tax.
    Can any one please tell what is the difference between these two.
    The helptext at the nodeCarry Out and Check Settings for Withholding Tax says
    You can make new settings for withholding tax here, or check existing settings:
    If you have already made settings for withholding tax in the "Financial Accounting Global Settings" Implementation Guide, you can check that those settings are correct here.
    If you have not yet made any settings, you can do so here.
    As per the above point 1 in the help text what ever setting we do in "Financial Accounting Global Settings" should be availalbe here for viewing or editing. But this is not the case.
    Is it that the settings in "Financial Accounting Global Settings" and "Accounts Receivable and Accounts Payable"
    are for different purposes ? If yes where.
    thanks & regards

    Hi Mauri,
    Thanks for the reply that in deed helped me in understanding.
    Can it be said that in the earlier versions where classic withholding tax was only available the customization settings options were availabe in both these nodes, wherein these settings can be done from anywhere.
    But in case of extended withholding tax all the cusotmizations will be done at one place i.e., in Financial Accounting Global Settings.
    Thanks

  • Need a sample of Withholding Tax Report

    Hi,
    Can anyone send me a sample of SAP Business One's Withholding Tax Report as my current database do not hold any data on it. If possible, can I have it in PDF format?
    PS: I am currently using 2007B
    Thanks,
    Gavin
    Edited by: Tan Gavin on Jan 5, 2009 9:42 AM

    Hi Gavin,
    There is no standard report for withholding Tax.you can develop one by Query generator or through XL Reporter or through Crystal Reports. you just need to know which are the tables that store the value you need and the conditions you want to mention. to know the table name you can go to View->check System Information. at the bottom you will know the Table name as well as field name.
    regards
    Shreyas

  • Withholding tax(urgent)

    Dear all,
    With regard to withholding tax, if the government changes the rate of percentage in the tax code, how should we configure it? What should we do our previous percentage which we have already configured? What is the step? Please tell.
    Regards,
    A. Anandarajan.

    Dear Anandarajan,
    Your point is valid. Whenever new rates come out vide Budget for the year, we need to change the percentage rate maintained in the Withholding Tax Codes.
    The process is simple.
    Go to Define Withholding Codes in IMG. Enter the Code for which rate has been changed. Maintain the new rate in With/tax rate Box under Calculation Tab.
    This will take effect immediately.So you need to keep in mind the date from which the new rate has come into effect.So it is advisable to change the rate from that date in mind.
    Our old % will no longer be available.
    Pl check & revert back if query persists.
    Govind

  • Reprinting of extended withholding tax certificate

    hi all,
    i am at client site and we are configuring the for extended withholding tax here from classical.my focused problem is when i go for tc-J1INREP for reprinting the certificate the error message show no certificate available.
    kindly provide some solutions as well as steps required for it.
    thanks & regards
    nitin

    Dear Nitin
    Kindly give correct TDS certificate number i.e. whole original 10 digit number and original certificate date alongwith other details.
    Hope this will resolve your query.
    Best Regards
    Mukesh Mokashi

  • When to activate Extended Withholding Tax

    Hi,
    We are implementing SAP ECC 6.0 at one of client. It's a first time implementation. My query is when should we activate the Extended Withholding Tax option? Is there any pre-requisites like the mater data should be first migrated to SAP or anything else that should be completed before activating the Extended Withholding Tax? Or we can activate it at any stage?
    Actually we are doing Unit Testing and if I don't activate the Extended Withholding Tax then while creating Vendor Master Data we don't get WHT tab.
    Please advice.
    Thanks,
    Sanjay

    HI,
    1. Yes if you are not activate the EWT then withholding tax tab will not available in system.
    2. If it is new implementation please activate the EWT at any time.
    3. previously there is two methods a.classic wt and 2.  extended wt.
        in your case forget about classic wt.
    4. Once you are activate then please maintaint the tax type and tax code in vendor master
    I hope above info will resolve your issue else please revert back to me.
    Regards
    MadhuM
    http://wiki.sdn.sap.com/wiki/x/UgTpCw  (RUPEE WORD FORMAT)

  • Qatar withholding tax

    Hi folks,
    I have a query regarding Qatar Withholding tax. In Qatar, withholding taxes are applicable at the time of invoice or payment?
    For example, in India, the laws says tax should be deducted at the credit book entry or payment. So, withholding tax gets calcualted at advance payment as well as invoice .
    Extra tax is reversed in downpayment clearing in f-54 transaction for India company codes.
    Is it same in Qatar?
    Thanks in advance.
    Nishant

    Hi
    FI Global (New)>Withholding Tax>Extended Witholding Tax>C.Code>Assign Withholding Tax Types to C.Code
    ensure here that respective withholding tax type which is assigned to company code under vendor data -- with/tax agent is ticked and validity period from and to are properly entered or not. Also ensure that vendor master contains withholding tax codes.
    The new tax regime will see foreign investors pay only 10% tax from the current 35% whereas the oil and gas sector will continue to have a minimum tax of 35%.
    u201CBanks operating in the domestic market will benefit from the reduced 10% rate and there the government has introduced a level playing field for banks operating in the domestic market and the QFC.
    E&Y Qatar highlighted that the law retained a 35% tax rate for the oil and gas sector with the lowest rates being applicable for other sectors.
    The new tax law has introduced the final 5% withholding tax on royalties and technical fees and 7% on interest, commissions, intermediary fees and board remunerations.
    Regards
    arul

  • Vendor with a WITHHOLDING tax

    Hi,
    Can you guys tell me how to find a vendor who has a WITHHOLDING tax in table level or any other way.
    regards,
    Prabhu

    Hi,
    You can query table LFBW or run report F.40 and select "withholding tax'.
    Cheers !

  • MM Condition type to withholding tax mapping

    Hi Folks,
    I have a query regarding MM and WHT configuration. Can we assign MM condition type to Withholding tax type or WHT Tax type-code combination so that at the time of posting a service based invoice we can identify the service category?
    Thanks in advance!
    Regards,
    Nishant

    I will take an example to make you guys understand the requirement :-
    Let say there is a vendor V1 who has assigned tax type/codes as T1/ T1 and T2/T2 in vendor master. If an invoice is posted through MIRO t-code, WHT tab(in MIRO screen) will have both T1/ T1 and T2/T2 and if tax codes are not removed manually, two tax lines will be created in the document. Our requirement is, based on condition type in tax procedure, automatically system should remove one tax code so that only one tax line will be created.
    Hope, now it is more clear to you guys.
    Thanks,
    Nishant

  • Subject to withholding tax disabled

    Good morning,
    when inserting a new business partner master data the flag " subjecy to
    withholding tax" is active (on state YES) but 95% of customer are not
    subjet to withholding tax. This behaviour means an extra work for the
    user when he adds a new customer master data and the possibility to make
    some mistakes.
    Is it possible to set by default "subject to withholding tax" in state "NO" ?
    Thank you in advance.
    Marco

    HI marco,
    Also detick withholding tax in inventory tab of general settings.
    You can also below query to find customers with
    withholding tax.
    SELECT T0.[CardCode], T0.[CardName], T0.[WTLiable] FROM OCRD T0 WHERE T0.[WTLiable] ='Y' AND
    T0.[CardType] = 'C' ORDER BY T0.[CardCode]
    In Business Partner >Accounting Tab> Tax Tab-->
    Detick Subject to With Holding Tax if not required.
    Hope above answers helps you.
    Jeyakanthan

Maybe you are looking for