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.

Similar Messages

  • Calculate Withholding taxes for VEndor Invoices using ABAP program.

    Hi All,
    I have to upload Vendor Invoices using FB60/Fb01 tcodes. I am able to post the Invoices using FB01/Fb60
    but I have to calculate extended withholding taxes also using this program for the Invoices.
    Is it possible to upload vendor Invoices and calculate withholding taxes using Program?
    If yes,
    Does anyone has any idea how do you calculate extended withholding taxes using any BAPI's?
    I have used these two BAPI's
    BAPI_ACC_DOCUMENT_POST
    BAPI_acc_invoice_receipt_post
    they are working fine but without withholding tax.
    This is a requirement for country India.
    Regards,
    Sushil

    Hi,
    Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
    For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
    Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
    Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
    If the key of Table2 is vendor no & vendor type, then do a read table for the key.
    The logic in pseudo-code:
    Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
         extract the vendor types in to itab Table1New.
         Select the vendor & types from Table2 by using the for all entries option (better performance).
         loop at Table1New
              check in Table2:
                   if the unique key is vendor no: check all fields for the vendor type from Table1New
                   if the unique key combo is vendor no & type: check by using a read table.
              If not found => add entry to Table2
         endloop.
    endselect Table1 (when using package size)
    I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
    Good luck!
    Best regards,
    Zhou

  • Withholding tax Amount not being displayed in the Invoice while posting a Parked Document

    Hi,
    I have created a parked document for the Vendor who has the Witholding tax code w9 - 15% . I created Parked Document using FBV1 and then tried posting the same using FBV0.Somehow I am not getting the Withholding tax Amount in the FI Document created. However the W/Tax Base Amount and the W/ Base LC are being displayed correctly.
    Say if the Line item Amount is 1,000$ then both the amounts mentioned above in the Additional tab "Withholding tax Data" are being displayed as 1,000 usd but the W/Tax Amount is 0,00 USD.
    2. Also We have the PI and the Interface is written to post the Parked document while the xml file. There is a Method Execute_Asynchronous which has two BDCs one  for FBV2 ( Change Parked Document ) followed by the Post Parked Document FBV0. Hence When I try to post the Parked Document using the SPROXY Interface which has two BDCs Viz FBV2 & FBV0 I still get the Invoice with the Same Amounts and at times with additional 2 zeros added to it in the Additionsal Tax Data Screen.
    I am not sure what is the reason for this. Can anybody help  me sort out this Issue.
    Can there be any Config issues. Please let me know what all config Settings we need to do to sort out this Issue.
    Also let me know why the 2 Zeros are getting added to the Base Amount e.g if the Vendor Line item is 12,000 USD it shows as 12,00000.00 in the Withholding tax Data  Tab in the Invoice.
    Regards,
    Deepak.

    Dear Praveen,
    please check into IMG if You defined the WT type You are using for Your Comapny code:
    IMG --> Assign Withholding Tax Types to Company Codes
    I hope this helps.
    Mauri

  • Vendor Open items upload- Withholding tax liable tick

    Hi all
    I have uploaded the Vendor open items. At the time of upload, Withholding tax was activated at the co code level. However, the liable to TDS tick was not checked. Now when I activate the liable tick and go to F-53 to pay the open items, I get an error of Items not activated due to Inconsistent Withholding tax. How do i resolve this error. I think there is a program which we need to execute to correct this. Can any1 help me with the program name?
    Thxs in advance
    Hrishi

    RFWT0010 is a programme to run for Open items adjustment.
    Let me know the result.
    thanks
    prabhakar

  • Withholding tax not able to view in FBL1N - Vendor Line Item report

    Dear All,
    The VI documents are posted in different vendors. The Tax code has been duly selected and tax was deducted at the time of posting the entry. When we generate the list of vendor line items using standard report FBL1N, we observe that only some of the VI documents in the output show the withholding tax amount in the respective column whereas in some of the VI documents, the withholding tax amount is appearing as zero even though the tax line item is available in the document (same can be seen in FB03).
    Please let us know the possible cause for the same.
    Regards,
    Anand.Inguva

    Dear,
    by FBL1N is not possible to check the Extended WT            
    information due to the technical reasons explained into the note               
    number 363309.                                                                               
    Furthermore please be aware that by the report RFKQST00 and          
    RFIDYYWT You can have all the WT details.                                      
    I hope this helps You.
    Mauri

  • How to clear line items with withholding tax manually

    hi Experts,
    i posted a vendor invoice with withholding tax and i made payment as well but not through f-58.
    now i wanted to clear these two through f-44 but it gives the message withholding tax information ignored and didnt display the invoice as open item.
    how do i clear both the trasactions
    regards
    suresh

    hi Praisty,
    thanks for the reply
    i have a second opinion on your statement that no matter whatever tcode you use for payment it will clear the open item. Even in F-58, if u make partial payment it will not clear you open item. But i didnt use f-58 as i said earlier.
    i used FBV1 for parking the document through which i entered the payment details...ofcourse it doesnt have the option for clearing the open items, cheque printing and it will not update your cheque register. i posted the parked document through FBV0. for all practical purposes, this is my payment document but it didnt clear my open item, in order to clear it i now used f-44.
    regards
    suresh

  • Withholding tax line items are not post

    Hi,
    I was configured all the steps for extended withholding tax up to Assign withholding tax to vendor master data
    and the i am used to post an vendor invoice
    given all required feild and press enrer and display the withhoding tax codes screen here also press enter button ....  i entered all required field and go to simulation this posting i am getting only 2 line items
    like for eg: --- Inventory Debit ,   Vendor Credit  only
    here my problem is i am not getting the all with holding tax line items
    please hepl
    Sree

    Dear Sree,
    if You defined the WT type at the payment time, the WT line items will be created at the payment time and not during the invoice posting.
    Please check.
    Mauri

  • Withholding Tax Calculation Error for Vendor Down Payment Clearing:Oct '09

    Hi,
    We are trying to incorporate the new Withholding Tax Structure w.e.f. 01-Oct-09.
    There were 3 scenarios possible:
    a. Invoice = Down Payment
    b. Invoice < Down Payment
    c. Invoice > Down Payment
    While 1 & 2 were taken care of effectively, the third scenario did not work as expected. The scenario is as follows:
    1. Down Payment (Date : 30/09/09)
    Amt : Rs. 40000/-;
    Withholding Tax @ 15% : Rs. 6000/- (40000 * 15%)
    Surcharge @ 10% : Rs. 600/- (6000 * 10%)
    Edu Cess @ 2% : Rs. 132 (Rs. 6600*2%)
    Higher Edu Cess @ 1% : Rs. 66 (Rs. 6600*2%)
    2. Invoice (Date : 02/09/09) - As per new TDS Rates
    Amt : Rs. 50000/-
    Withholding Tax @ 10% : Rs. 5000/- (50000 * 10%)
    Surcharge : NIL
    Edu Cess : NIL
    Higher Edu Cess : NIL
    3. DPC (Date : 02/09/09) - Reversal of TDS calculated in Down Payment (Step 1) above.
    Issue:
    While making J1INCHLN, amount is adjusted as Rs. -1000/- (hence zero) not payable.
    Also, the Surcharge, Edu Cess & Higher Edu Cess are also getting reversed in DPC.
    As suggested by SAP Note No. 1372734 - Handling of downpayment clearing scenarios after budget '09, the scenario does not seem to work.
    Actual payable should be worked out as under:
    Invoice : Rs. 50,000/-
    DP : Rs. 40,000/-
    Bal : Rs. 10,000/-
    TDS @ 10% : Rs. 1,000/-
    All TDS Challans, Certificates & Returns must reflect Rs. 1000/- in the Challan.
    Require assistance.
    Regards,
    Kapil Tilwani

    Hi Kapil,
    The following needs to be taken care of  -
    The message controls settings as the note suggests must be set as W.
    When entering the details the logic is Vendor Debit amount is Tax amount + 1
    The Vendor credit line, the tax code has to be assigned with the advance amount (amount for which the challan has been created) as the tax base amount and the tax amount will be the extra liability that needs to be created.
    In your example -
    The tax amount will be - 2000 ( the debit at the time of downpayment clearing should have been 4000 instead of 6000)
    Tax base amount -  40000 (Challan for this amount has already been made at the time of downpayment made)
    The vendor Debit - 2001 (2000 + 1)
    The vendor credit - 1
    Note - Tax amount and base amount has to be made manually in the withholding Tax tab for the credit entry.
    Please revert for any clarification.
    Thanks and Regards,
    Anit

  • Payment order are not defined for extended withholding  tax

    Hi Gurus,
    Would you please help me with the message below. It appears on F110 when I try to pay a vendor open item with extended withholding tax:
    Message FZ626 -Payment orders are not defined for extended withholding tax
    In my company payment orders are created in F110 for accounts payable, as we use another ERP system (Baan) to perform the local accounts payments, and now I've just activated Extended withholding tax functionality With accumulation (necessary in Brazil) but I get this error.
    Is it not possible to user payment order with extended withholding tax + accumulation? I find it hard to believe...
    I've tried to unflag the payment order only for the payment method I'm using in FBZP t.code, but then no payment order were created but instead a payment document were posted with the withholding tax accumulation, but this is not the way we are working, and nothing is sent to Baan
    any help is welcome

    The payment method "Y" the option "payment order only" was marked?
    For a withholding tax type with accumulation in a company code with extended withholding tax payment
    methods that create only payment orders can´t be used. Payment orders can only be created only if there are
    no tax types with accumulation involved in the paid items of the payment run.
    The functionality extended withholding tax works fine for Brazil
    however, you can´t use the payment order with this functionality.
    Please, review your customizing for payment method 'Y" in transaction
    FBZP.
    Best regards,
    Leonardo Vedovelli
    FI Support Engineer
    SAP Active Global Support

  • Withholding Tax by Line Item (not by vendor)

    Hi,
    Thereu2019s been more than 1 occasion where clients request for withholding tax at line items (purchase equipment and service in 1 invoice. Equipment no withholding tax but service has withholding tax).  However, as far as I know, the withholding tax is applicable by vendor and not by line item of the vendor. Is there any workaround on this?
    Regards,
    Cheah

    If i understand correctly, you have prepared PO for material plus service, service attracts WHT
    you could prepare two different vendors - one for material, one for service - even though the vendor is same, and maintain WHT only in service vendor.
    under PO there is condition types for service, there you can enter this second vendor who is providing service.
    i think this way you issue should get resolved.
    Pl share how to finally got thru it.
    Thanks
    Sanjay

  • In vendor line item not showing withholding tax amount and withholding base

    Hi Gurus,
              When i am using T,code FBL1n for details clear item,in line item doesn't showing withholding tax amount and withholding base amount for some vendors when i am using FB03 there showing tax amount and base amount,in option is there.plz help me,its very urgent.
    Thanks & regards,
    Dharma.

    Im not sure but may be its because in the config. of 1099 Withholding tax we usually say that the with holding is to be posted only after payment of the open items.
    So, lets try this. Look at if the documents which are showing withhld tax in FBL1N if they are paid or not.
    this would give us some help or hopefully the answer..
    regards

  • Report RFWT0010 to update withholding tax in open items

    Hi gurus!
    I'm facing a problem with report RFWT0010 after modifying withholding tax information in the vendor master record.
    If I delete a complete line (Withholding Tax Type, W/Tax Code, Liable and so on) when I run report RFWT0010 open items are pulled and updated correctly.
    However, if I have a scenario in which I only need to modify the Withholding Tax Code (leaving WIthholding Tax Type and Liable Flag like they were before) when I run report RFWT0010 no open items are pulled.
    Can anyone indicate me if RFWT0010 is meant only for withholding tax type changes?? or is it a program error??
    Thanks!
    Federico

    Withholding tax is not supported by SAP here...

  • Multiple vendor line items during IR with different withholding tax status

    Business scenario:  During IR, several vendor line items are being processed, some are stock materials, others are service materials (using material group).  Only the service materials are subject to withholding tax.
    Problem:  Since the withholding tax type/code is maintained at the company code level of the vendor master, it is not possible to select only the service materials as subject to withholding tax.
    Has anyone encountered this problem before?  if yes, please advise solution adopted. 
    Thanks.

    I think through condition type / condition record, you can reduce the amount payable to the vendor and post it to another GL account. But if you do not update the amount in the W/tax  base and w/tax amount, you will not be able to use standard reports of w/tax. May be condition types can be used to do the calculation of w/tax amount and w/tax base amount. Build the logic in the interfcae of e-invoice and SAP to update W/tax fields in vendor invoice.

  • In fbl1n report for document type RE  withholding tax amount is not showing

    in fbl1n report for document type RE  withholding tax amount is not showing
    in sap note 363309 determines
    Solution
    Remove the field which contains the withholding tax information (field BSEG-QSSHB) from your display
    variant.
    If you want to display the withholding tax information, double-click on the document number and
    subsequently choose 'Withholding tax'.
    my doubt is we remove the field BSEG-QSSHB in layout how can show the withholding tax amount in FBLIN report
    how to remove from the layout
    please clarefy
    bhayyapu   

    Hi,
    If you want to check amounts of withholding tax for the vendors, you have some options to view it. You can access the WITH_ITEM, LFC1 tables by SE16. You have too the S_P00_07000134 report. This report is developed for the Colombia but I already used for the another country with the ABAP development for this country.
    Also you can use table join BSIK and WITH_ITEM by SQVI for the open items and BSAK and WITH_ITEM for cleared items. It is more simple and fast.
    JPA

  • Withholding taxes not updated when program run in background

    Hi,
    in a z1 report i do:
      SUBMIT z2
      VIA JOB lc_jobname
       NUMBER v_jobcount
         WITH p_fecha  = p_fecha                               
         WITH p_file   = v_file_in
         WITH p_e_file = p_efile 
         WITH p_client = p_client
         WITH p_test   = p_test  
          AND RETURN.
    within this z2 report i do:
              PERFORM mrm_invoice_create_call(saplmrm_bapi)     USING     s_rbkpv
                                                           tab_frseg[]
                                                           tab_co[]
                                                           tab_ma[]
                                                           c_rbstat_posted
                                                           space
                                                 CHANGING  invoicedocnumber
                                                           fiscalyear
                                                           return[]
                                                           f_subrc.
              IF test IS INITIAL.
                COMMIT WORK AND WAIT.
              ELSE.
                ROLLBACK WORK.
              ENDIF.
    the question is that if i run z1 report online there is no problem but if
    i run z1 report in background, withholding taxes are not calculated.
    After debugging this is what i´ve found out:
    1.- in PERFORM mrm_invoice_create_call(saplmrm_bapi) there is a call to fm FI_WT_POST IN UPDATE TASK
    2.- in FI_WT_POST table WITH_ITEM is updated
    i guess this could be due to a delay in updating the table so i´m considering doing a WAIT UP TO X SECONDS.
    why is it working in online mode but not in background mode?
    any idea?
    Best regards.

    Hi,
    in case someone is interested this is how i solved the question:
    i had badi MRM_WT_SPLIT_UPDAT implemented.
    in this badi implementation i had this code (among other checks too):
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7'.
    this code avoided the background job case.
    It seems that In a background job sy-tcode is empty.
    so i just needed to add this:
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7' OR  sy-batch = 'X'.
    and then withholding taxes reappeared again.
    (so sad, so true... one day of debugging,  sigh)
    Best regards.
    Edited by: Pablo Casamayor on Feb 2, 2012 4:53 PM

Maybe you are looking for

  • Portrait display resolution issue since upgrading to Mountain Lion

    Hello. I'm running a Mac Mini 2011 with the 2.5 GHz i5 and Radeon HD 6630m graphics. I run two monitors, one via HDMI and via the Mini DisplayPort to VGA adaptor. The HDMI connection runs landscape, the VGA portrait. Since updating from Lion to Mount

  • Editing quick time movie clips with sound

    We are editing together some quick time movie clips but we can't get the sound to come up. Is there something we are doing wrong? Can you split the voice from the visual when you bring these clips into Final Cut?

  • Folder containing the installation package 'iTunes.msi' in the box below???

    Trying to update itunes on pcXP,new iPhone 5s. I keep getting the error:' the feature you are trying to use is on a network resource that is unavailable Click OK to try again, or enter an alternate path to a folder containing the installation package

  • How to make data of responsabilitys in read only for users

    hi everyone i need help to find a way to make all datas in the E-Business suite application in read only. i try to attach the diffirents responsabilitys with options profiles but i cant make this process work if anyone please know any way to help to

  • Error: ELM does not work from UI

    Hello guru´s, hard to explain this briefly, but here it goes. We´re trying to upload an ELM from UI, and it doesn´t work. But the thing is, if you just SAVE from UI (not launch), and then you go to CRMD_MKTLIST and you flag required fields, it works.