Calulate Withholding tax with Bapi

Hi Guys,
has anyone used BAPI_ACC_DOCUMENT_POST to post a vendor invoice and calculate withholding tax automatically.
Urgently needed.
Regards,
Tarun Bahal

Hi,
I've a problem related to idoc acc_document3.
I don't have the extended WT, only the "simple" one.
How can I post a document with WT but with a different base amount?
I.e. the invoice is for 15000 and I have a base amount of 10000.
Please help

Similar Messages

  • Calculate withholding tax with bapi

    Hi Guys,
    has anyone used BAPI_ACC_DOCUMENT_POST to post a vendor invoice and calculate withholding tax automatically.
    Urgently needed.
    Regards,
    Tarun Bahal

    Tarun,
    Just refer:
    Urgent : Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"
    Amit.

  • Adjusting Withholding tax with MIRO

    For FI transactions like FB10 and FB60, the base amount can be adjusted during posting and after posting.  With MIRO however, I canu2019t find a way to adjust during posting or after posting. Is this possible with MIRO?
    Thanks,
    Rich

    Hi,
    If you set the withholding tax code for your vendor in vendor master .....................
    Then the withholding tax code will be defaulted in MIRO , check in header level  there you can adjust the taxes......................
    Hope this may help you.............

  • WithHold Tax with Decimals

    Hi,
    Is it possible to calculate the Withold Tax with value in Decimal places? i.e., If the base amount is 11111 and the withold tax % is 3 then the WT amount is 333.33 wherein SAP calculates it as 333 only. We had recently implemented B1 in Thailand and the requirement is that, the withold tax should be calculated with exact decimals and not rounded off.
    When I checked the Withold tax definition, there are only 2 options for rounding off, either to a lower amount or to a higher amount and there's no option to keep it as it is.
    Anybody has any solution?
    sriram

    Hi Adele,
    It has nothing to do with the decimal places.
    In the withold tax configuration, there are 2 types of rounding off methods available
    "commercial values" or "truncated AU" and you need to select any one of them.  commercial values setting, makes it to the next higher numeric and truncated au rounds it off to a lower value.
    There is a possibility that, at the time of carrying out the A/R or A/P transaction, the calculation can be done manually and we can enter the amount with decimals and SAP takes it as it is.  But when calculates it on it's own, then it doesn't.  That's why I wanted to know, whether anybody else is having this problem and whether they have any solution in place?
    sriram

  • Urgent : Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"

    Hey Guys,
    I am not able to Post Withholding Tax in BAPI "BAPI_ACC_DOCUMENT_POST".
    Can anybody please tell me the alternative ???
    How can i post With holding TAX info with accounting document...is there any other function module to do the same ???
    It's very urgent...only 3 days are left for Project to be Live.
    Please help me ...
    Thanks in advance

    Hi
    Hope it will help you.
    <REMOVED BY MODERATOR>
    BAPI_ACC_GL_POSTING_CHECK
    CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
    EXPORTING
    documentheader = w_documentheader
    TABLES
    accountgl = it_accountgl
    currencyamount = it_currencyamount
    return = it_return.
    Populate the corresponding tables with the data you have.
    For the Date do convert it.
    PERFORM convert_date USING it_header-bldat
    CHANGING w_documentheader-doc_date.
    w_documentheader-comp_code = 'z998'
    w_documentheader-doc_type = 'SA'
    "and fill the respective tables this way .
    <b>
    BAPI_ACC_GL_POSTING_POST
    </b>
    call function 'BAPI_ACC_GL_POSTING_POST'
    exporting
    documentheader = doc_header
    IMPORTING
    OBJ_TYPE = l_objtype
    * OBJ_KEY =
    * OBJ_SYS =
    tables
    accountgl = t_accountgl
    currencyamount = t_curramt
    return = t_return
    * EXTENSION1 =
    Edited by: Alvaro Tejada Galindo on Mar 5, 2008 10:18 AM

  • Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"

    Hey Guys,
    I am not able to Post Withholding Tax in BAPI "BAPI_ACC_DOCUMENT_POST".
    Can anybody please tell me the alternative ???
    How can i post With holding TAX info with accounting document...is there any other function module to do the same ???
    It's very urgent...only 3 days are left for Project to be Live.
    Please help me ...
    Thanks in advance 
    Edited by: Sachin Sawant on Jan 23, 2008 11:32 AM
    Edited by: Alvaro Tejada Galindo on Mar 5, 2008 6:02 PM

    Hi sachin,
    we also facing the same problem. we tried by passing to table accounttax.getting message documnet posted with key.but  couldn't find the entry in table with that key.are the tables bkpf & bseg where it stores in case of account tax also?
    cau send example code which you have tried and succes post with tax item and so flag was set.
    Its so urgent for us.Please help us.
    Thanks in advance.
    salini

  • F-04 Withholding tax calculation

    Dear All,
    In Tcode F-04 (Transfer Posting with clearing) i am using Posting key "31" for Vendor Credit AMount.
    Here, I am not able to calculate automatic withholding tax amount
    Withholding tax data is already maintained in the vendor's master data.
    Withholding tax calculation is possible with other Tcode like FB60...
    but  With F-04 it's not calculating.
    How to calulate withholding tax amount.
    It it something configuration problem .
    Pl suggest me some solution.
    Regards
    Swati

    For E.g
    My Client wants the system to calculate  Withholding Tax on purchase of Air Ticket from his Agent
    Travel expenses                                               xxxxx
    Vendor  - Air travel agent                                              xxxx
    Note 2 : WHT collected by the vendors on purchase of the air ticket and recorded as an asset for onwards claim from Tax Authority.
    The system simulates the following accounting entry: (Payment)
    Vendor                                                                                XXXXXX
                   WHT Asset**                                                                  XXXXXX
                   Bank                                                                               XXXXXX       
    In This Case this entry is not Correct . It should be
    Vendor                                                                                XXXXXX
                    WHT Asset                                                                                XXXXXX
                    Bank                                                                                XXXXXX 
    Hope you got my requirement
    Edited by: MAZ on Sep 27, 2010 3:18 PM
    Edited by: MAZ on Sep 27, 2010 3:56 PM

  • BAPI_ACC_INVOICE_RECEIPT_POST withholding tax

    Hi Experts,
    I'm using the BAPI BAPI_ACC_INVOICE_RECEIPT_POST to post an vendor invoice. It is working fine with the normal posting. But when we post with withholding tax base, its not successful.
    I have mapped the Withholding tax code, Business place and Section code to the correct parameters of bapi. Then inside the bapi I have supplied the withholding tax base  to IT_ACCCR-QSSHB.
    But I'm getting the message Balance in Transaction currency. But I'm sure that I'm passing the currencies correctly.
    Please help me with the proper method of posting.
    Thanks in Advance.
    Edited by: Nivash S on Aug 24, 2010 12:32 PM

    I got this working, so I will answer my own post with an explanation of the solution, in case it benefits anyone else.
    There are numerous posts in the forum about calculating Extended Withholding Tax through a BAPI, and the solutions given tend to suggest that BAPI_ACC_DOCUMENT_POST will not work with EWT, but BAPI_ACC_INVOICE_RECEIPT_POST will work if you activate the user exit EXIT_SAPLACC4_001.
    In investigating this, I found the following OSS notes most helpful:
    OSS Note 306504 - Collective note: BAPIs for the AC Interface
    OSS Note 556311 - BAPI in the extended withholding tax
    OSS Note 487722 - Using EXTENSION1 for accounting BAPIs
    Note 556311 explains how to implement extended withholding tax with BAPI_ACC_INVOICE_POST, by implementing a user exit that processes the EXTENSION1 parameter, and it provides sample EWT logic for that user exit.  However, note 487722 explains how to implement Business Transaction Event RWBAPI01, to process the EXTENSION1 table from BAPI_ACC_DOCUMENT_POST.
    By implementing the user exit logic from note 556311, in the BTE described in note 487722, the extended withholding tax was calculated correctly from BAPI_ACC_DOCUMENT_POST.

  • Withholding tax amount in fbl1n report

    hi,
    In  FBL1N report When the posting is coming from FB60 or manual invoice, the withholding tax amount will appear in the column but when the posting came from MIRO, withholding tax amount figures appear as zero values even there is a posting in the withholding tax account.

    Hi,
    Refer
    SAP Note 363309 - Extended withholding tax with line item display.
    Thanks
    Aravind

  • Create withholding tax data subsequently for reconciled and open items in c

    Hi All,
    Mine is a US co code and I have a  vendor for which invoice and payment documents are posted. After posting the invoice i found that the vendor is subjected to classic withholding tax which i did not calculate when posting invoice, making payments.
    Now i have changed the vendor master data with relevant withholding tax details.
    I know the program RFWT0020 allows us to create withholding tax data subsequently for reconciled and open items in cases where vendors or customers become liable for withholding tax with a tax rate of 0 %.
    It is not working out for me.
    Can any body help me on this.
    Thanks in advance.

    Dear all,
    by se38 --> report documentation, You can read carefully the following:
    The auxiliary program makes it possible to convert both classic and extended withholding tax data. However, with classic withholding tax, ONLY VENDOR data can be converted.
    In addition, the program enables the withholding tax code to be changed for reconciled and open items with existing withholding tax data. For this, the tax rate of the existing withholding tax data as well as the tax rate of the new withholding tax code must be 0%. The new withholding tax codes are taken from the customer or vendor master data. In the case of extended withholding tax, the withholding tax code is only changed if the related withholding tax categories are the same.  The withholding tax base amount is not changed by this procedure.
    Recreating or changing the withholding tax data requires that the program first be executed for INVOICES and then executed for PAYMENTS in a subsequent step.
    I hope this helps You.
    Mauri

  • How to deactivate withholding tax base amount field

    Dear Experts,
    My in client is using the extended withholding tax with setting Define Formulas for calculating withholding tax, my client feel that the tax base amount field is open and user may accidentally input the wrong amount there thus can anyone tell me how to deactivate this tax base amount field?
    thank you

    Dear,
    Go into Withholding tax type under SPRO>Financial Accounting Global Settings>Withholding Tax>Extended Withholding Tax>Calculation>Withholding Tax Type.
    While maintaining the Withholding Tax type you have selected "W/tax base manual" under the control data. Just don't select that option then your requirement will be met.
    There are other options also like Manual W/tax amt. which you might want to go for.
    Regards,
    Chintan Joshi.

  • Withholding tax don't appear to the user

    Hi all on SCN,
    I have a new problem. It was created to a Company Code a Withholding Tax, with all needed configuration.
    It works properly on Development environment, generating the values correctly, but don't works on pre-production or production, even its transport request was moved with all configuration to these environments without errors.
    I'm starting to be crazy, because I checked all config on three environment, and its equal on all environments..
    Does someone has a tip to me?
    Thanks a lot!

    Hi Sankar,
    What I'm stating is that the Vendor has the entry on the tab Withholding tax accounting, but when he uses F-43 transaction, select the Vendor and goes to the next screen, apper to him the Withholding tax buttom.
    By clicking in this buttom it will apper the apllicable Withholding taxes, but one of the four registered to the Vendor don't appear.
    All config to the WT were done correctly, and its available and applicable to teh Vendor, but is not acting on it.
    Could you help me, please?
    Thanks in advanced for your answer!
    Paulo Rosa

  • Withholding Tax not populated using BAPI

    Hello
    We are using BAPI to post invoices instead of FB60 but noticed a difference in the withholding tax data.
    Using FB60 when we provide a N1, the tax code shows up as starand the withholding tax exempt is populated along with the  withholding tax code from the vendor master.
    When we try to do the same using the BAPI providing it with N1, it does not populate the withholding tax exempt and withholding tax code fields
    We are using classing withholding tax.
    why the BAPI is behaving differently than FB60 and not picking up the standard configuration
    This is priority as we are in Production and invoices which dont have these withholding  tax information are not getting picked up for payment.
    Thanks

    Solved myself...using the ACCOUNTPAYABLE-W_TAX_CODE field to populate the tax code which is stored on the Vendor Master

  • Post document with BAPI_ACC_DOCUMENT_POST with withholding taxes

    Hi everyone!
    I have to post some documents that I got from an Excel file. At first, they were G/L documents, so I only filled the table parameter ACCOUNTL of BAPI_ACC_DOCUMENT_POST to set the "account data" (without using ACCOUNTRECEIVABLE, ACCOUNTPAYABLE, ACCOUNTTAX or ACCOUNTWT).
    After a few, another Posting Keys were allowed in the lines of the documents obtained from the excel file, so the documents can be G/L documents, receipts, etc.But, I still put every account data in ACCOUNTGL, and the created documents were right (at least nobody complained about them :P ).
    No, 3 fields have been added in the excel file:
    - QSSHB: Withholding Tax Base Amount
    - QSFBT: Withholding Tax-Exempt Amount (in Document Currency)
    - QSSKZ: Withholding Tax Code
    As I understood, this BAPI is ready to allow withholding taxes, and I suppose I should have to fill this fields that I receive into some tables that are used as parameters in the BAPI. For example,
    ACCOUNTWT-WT_CODE = Withholding Tax Code
    ACCOUNTWT-BAS_AMT_LC = Withholding Tax Base Amount (Local Currency)
    I think I should use this table (I don't know where I could "put" the other one). My question is, can I do that without using tables ACCOUNTRECEIVABLE and ACCOUNTPAYABLE? My feeling is that is not completely right not to use these tables if the documents are vendor or customer documents... If that's possible.. is it right to put the 2 fields that I have used in the last example (*) to fill that? Where I should put the third field??
    I hope I have explained myself clearly, thanks in advance,
    Victor

    Dear Sreeraj,
    The situations would be multiple, but to be precise I'll provide you one scenario where this BAPI would be failing to do the posting. The scenario is like this:
    1. If you consider GL posting using F-02 by changing any of the reference fields XREF1, or XREF2, the BAPI has to consider the varying screens of each of the line items which internally depends on Transaction Variants of different screens of the Document, which the BAPI will fail to do so.
    2. Also, if there is a Taxation to be done for each Item, still it should consider the above scenario and fill the WITH tables accordingly.
    Hope this helps,
    Regards,
    -Wahid Hussain.

  • Problem with MRM_INVOICE_CREATE,Debit Notes and Withholding Tax Information

    Hi!
    I have a problem with MF MRM_INVOICE_CREATE.
    We use this MF to create a Debit Note. The problem is that the Debit Note is created without the withholding tax information.
    I send the info in this parameter: i_rbkpv-h_rbws.
    Do you have any idea? I couldn't find any information about this. I tried an alternative solution using a batch-input but we had some problems with user permitions (this MF is called from a Z RFC that is called from an ASP application).
    Thanks in advance!
    Bettina

    Hey, thanks.
    I send your solution to the person who was trying to solve this problem.
    For sure will solve the problem because, in a previous version, we were using the bapi you told me. For some unknown reason, they changed for the MRM_INVOICE_CREATE.
    Thanks a lot!

Maybe you are looking for

  • Import Letter of credit

    hi all,        i would like to know whether import cycle is mapped into SAP or not, if so        then how much it is present in SAP and how do we process the same ?        along with that whether mode of payement - letter of credit in import proces i

  • Purple screen - cannot play downloaded films on my mac

    I rented a movie from the iTunes store, but when I pushed play, I only see a purple and green screen with lines that flash. I can hear audio, but can't see anything. It doesn't help to play the video in Quick Time either. I get the same problem. I ha

  • Can you re-order images in a folder?

    This should be simple, but I can't figure it out. If I import a folder of images and rate them, I then want to re-order them also. But I don't seem to be able to drag and drop the thumbnails to a new position. Is there a trick to this? I've tried it

  • Open error 5 on permission verify

    Is there a repair for this?

  • Select path with same swatch and apply a new swatch

    I am trying to write a script that will select a line based on a swatch name, apply a new swatch, set the stroke, dash and miter of the line...and then create a new layer, change then name of the layer, and then move the selected items to the newly c