Posting Tax Amount in BAPI_ACC_DOCUMENT_POST (Tcode FB60 - Vendor Invoice)

Where do I need to populate the Tax amount in BAPI_ACC_DOCUMENT_POST inorder to create Vendor Invoice (Non PO) - FB60.
I have populated Tax information GL A/c, Condition key, Account key, Tax Code in u2018ACCOUNTTAXu2019 table and Tax amount $7 in 'CURRENCYAMOUNT' table but got below errors:
u2018Balance in transaction currencyu2019 - when we have $-107in Vendor line, $100 in GL line & $7 in Tax line. (It showing difference $7).
The tax amount must not be greater than the tax baseu2019 - When we have $-107 in Vendor line, $107 in GL line & $7 in Tax line.
Here is the code, please check and suggest me:
Header Details:
it_documentheader-obj_type   = u2018BKPFFu2019.
it_documentheader-doc_date   = u201811/08/2011u2019.
it_documentheader-pstng_date = u201811/08/2011u2019.
it_documentheader-comp_code  = u20180001u2019.
it_documentheader-ref_doc_no = u2018TESTQ108u2019.
it_documentheader-doc_type   = u2018KRu2019.
it_documentheader-obj_key    = u2018$u2019.
it_documentheader-username   = sy-uname.
it_documentheader-bus_act    = u2018RFBUu2019.
it_documentheader-fisc_year  = u20182011u2019.
Vendor Line u2013 Accounts Payable
lv_item_no  = 1.
it_accountpayable-itemno_acc = u20181u2019.
it_accountpayable-vendor_no  = u20187800988u2019.
it_accountpayable-comp_code  = u20180001u2019.
it_accountpayable-pmnttrms   = u2018DUBPu2019.
it_accountpayable-tax_code   = u2018I1u2019.
it_accountpayable-taxjurcode = u2018000003749u2019.
it_accountpayable-item_text = u2018Test123u2019.
Populate currency amount for account payable data
it_currencyamount-itemno_acc = u20181u2019.
it_currencyamount-curr_type  = '00'.
it_currencyamount-currency   = u2018USDu2019.
it_currencyamount-amt_doccur = -107.
it_currencyamount-amt_base = 100.
Append it_currencyamount.
G/L Account data
it_accountgl-acct_type  = u2018Su2019.                         " GL
it_accountgl-itemno_acc = u20182u2019.
it_accountgl-gl_account = u2018623000u2019.
it_accountgl-item_text  = u2018Test123u2019.
it_accountgl-costcenter = u20181099u2019.
it_accountgl-profit_ctr = u20181u2019.
it_accountgl-comp_code  = u20180001u2019.
it_accountgl-tax_code   = u2018I1u2019.
it_accountgl-taxjurcode = u2018000003749u2019.
Append it_accountgl.
it_currencyamount-itemno_acc = u20182u2019.
it_currencyamount-curr_type  = '00'.
it_currencyamount-currency   = u2018USDu2019.
it_currencyamount-amt_doccur = 100.
Append it_currencyamount.
Tax Line Details:
it_accounttax-itemno_acc = '3'.
it_accounttax-gl_account = '0000210000'. 
it_accounttax-acct_key = 'NVV'.
it_accounttax-cond_key = 'XP1I'.
it_accounttax-tax_code   = 'I1'.
Append it_accounttax.
it_currencyamount-itemno_acc = '3'.
it_currencyamount-curr_type  = '00'.
it_currencyamount-currency   = u2018USDu2019.
it_currencyamount-amt_doccur = 7.
it_currencyamount-amt_base = 100.
Append it_currencyamount.

Hi
See this [post|BAPI_ACC_DOCUMENT_POST and partial non deductible VAT;. It's related with Note 487064 - Direct posting to tax account with AC BAPIs.
I hope this helps you
Regards
Eduardo

Similar Messages

  • BAPI for post Tax Amount

    Hi,
    Please tell me BAPI for post Tax Amount.
    Which tcode use for Post tax code, is it FB01 or FB60.
    Regards
    Jana

    Hi,
    Use BAPI_ACC_DOCUMENT_POST
    TCodes
    FB41    Post Tax Payable
    FB05    Post with Clearing
    FB01    Post Document
    Edited by: Neenu Jose on Nov 18, 2008 1:15 PM
    Edited by: Neenu Jose on Nov 18, 2008 1:16 PM
    Edited by: Neenu Jose on Nov 18, 2008 1:17 PM
    Edited by: Neenu Jose on Nov 18, 2008 1:18 PM

  • FB60 vendor invoice

    FB60 vendor invoice
    Transaction : posting a vendor invoice and offsetting entry is a G/L expense account
    When i enter equal amounts (invoice amount and g/l amount) i am getting an error saying balance not zero
    But i varied the amount it is letting me post
    ex 5300 as invoice amount and 5000 as g/l amount
    Why is this so?
    Points promised
    Prashanth

    Hi,
    WHT has 2 types – a. Accrual basis  b. Payment Basis
    Path: IMG – FA-Fin GS – WHT-Extended WHT
    1.     Basic Settings
    a.     Check WHT countries: Check ur country
    b.     Calculation
    i.     Withholding tax type – Define WHT type for invoice posting: Give ur country, tax type, Base Amt – Select Gross amount à Save
    ii.     WHT Type – Define WHT for payment posting – Similar to 1bi
    iii.     WHT Code  - Country, WHT type, Base Amoutn: 100%, Post Indicator: 1: Std posting, Calculate: WHT Rate: Give ur tax rate.  Similarly do for payment posting
    c.     Define formula for calculating WHT-Give basic details and enter other details by double clicking ‘Formula for calculating WHT’.  Do for both Accrual and payment
    d.     Company code – Assign WHT to cocode – Do for both payment and accrual
    e.     Activate Extended WHT
    2.     Posting: Accoutns for WHT – Define accouts for WHT – Give chart of acct – Select WHT code and Type.  Give the type and code of both accrual n opayment
    3.     IMG-Logistics General – Tax on Goods movement – India – basic settings – Maintain Cocd settings – Give first month and save
    4.     Attach the WHT to Vendor Master (FK02 – change; FKO1 –Create) – Select WHT; Tax type: Either payment/accrual; Select Liable and save
    5.     Try posting entry thru F-43 and enter the WHT. Document àSimulate
    The above is the configuration for Extended WT
    Regards,
    Sridevi
    <b>* Pls. assign points, if useful</b>

  • Mandatory fields for creation of FB60(vendor invoice),and FK01(cost center)

    Hi all,
    can u plz send me the mandatory fields(along with discription) for creation of FB60(vendor invoice),and FK01(cost center).
    thank u,
    Srinivas Reddy.

    The FK01 is the transaction used to create a Vendor.
    The mandatory fields are:
    a. NAME1: For Name
    b. SORT1: For CUIT number.
    c. SORT2: For alternative CUIT number.
    d. CITY1: For city.
    e. STCD1: Tax Number.
    f. Others depending the case.
    For FB60 (Vendor invoice) the mandatory fields are:
    a. ACCNT: Number of Vendor Account.
    b. BLDAT: Date.
    c. XBLNR: Reference Number.
    d. WRBTR: Invoice Amount.
    e. HKONT: G/L Account Number.
    f. WRBTR: Invoice Amount. The same as d but in the item.
    g.MWSKZ: Tax Type. Depending the case.
    h. KOSTL: Cost Center. Depending the case but is highly probable that the field were mandatory.
    i. Others. Depending the case.
    I have given to you the most probably fields that are mandatory for those transactions.
    Your Sincerely
    Leonardo Lopez
    FI Consultant

  • 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

  • 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.

  • Standard workflow for FB60 vendor invoice

    Dear experts,
    I am looking for a standard workflow for transaction FB60. Is that WS00400012(BO: BSEG)?
    I just wonder if I could check the link between a transaction and business object.
    In SWO1, BSEG is noted as "Accounting document line item". So i am not sure if it is for Vendor Invoice.

    There are several standard workflows for vendor invoices.  WS00400012 is for release of payment. If that is what you are looking for, it is fine. But go to the customizing to find more information about both the release for payment solution and the release for posting solution from SAP. Can't recall the customizing path now, but it is in Financial Accounting, I think the path is Accunts Receivable and Payable, then Business Transactions, and there you will at least find the Release for Payment part of it. The customizing screens are partly common, but the help available for the customizing nodes is most likely specific for each solution. I have never set up release for posting, so I don't know it.

  • BAPI for FV60 tcode parking (Vendor Invoic)

    Hi All,
    I want to park Vendor invoice through FV60 tcode using BAPI
    I got one BAPI (BAPI_INCOMINGINVOICE_PARK), which is doing for incoming invoice i.e. MIR7 only. but it is not suitable for FV60.
    Please help me in finding BAPI for Vendor Invoic (FV60) parking.
    Thanks,
    Ramanjaneyulu Reddy

    Hi. I know it is very late, but I was looking for an answer to this on SDN today and found your post amongst others, but could not find a solution so had to have a look through SAP in more detail.
    I have managed to get a finance invoice to park just like FV60 using function module PRELIMINARY_POSTING_FB01.
    To find the right data to pass the easiest way is to park an invoice manually in FV60, then call function PRELIMINARY_POSTING_DOC_READ and get the data for the parked invoice.
    Then just populate all the same fields in PRELIMINARY_POSTING_FB01 apart from the document number and it should work fine.
    I hope this was of some help.
    Regards,
    Dave.

  • Disable auto-calculation of tax amount by Autoinvoices to import AR Invoice

    Hi all,
    I am using ra_interface_lines_all to do AR Invoices conversion to Oracle R12. My legacy invoices data contains tax amount and some of the invoices do not have any tax. Autoinvoice auto-calculated tax information during import even for those invoices that have no tax.
    I checked my AR interface record and made sure none of the tax-related columns (e.g. tax_code, tax_amount, etc) are populated. I also checked the AR transaction source for conversion and make sure tax-calculation flag is not set.
    Basically I need to set the tax amounts manually instead of letting the system to derive it. Some suggested to set tax_exempt_flag to "E". I tried but Autoinvoice complained that I need to have tax reason and besides I have many invoices that have tax amounts.
    Any suggestions on disable the auto-calculation of tax?
    Thanks! Mike

    Hi Mike,
    U r using transaction types to generate your distributions, right?
    Try to insert distribution info for each of your invoices in the table ra_interface_distributions_all, specifying REC, REV and TAX (tax where applicable) lines.
    Hope this will solve your prob.
    Vik

  • Tax Combinatiom. Tax rate, tax Amount in the PLD of sales Invoice

    Hello guys,
    This i seached in previous forum and got partial result
    Plz help me ragrding this
    for my query plz scroll down
    To accomplish this, you will have to create a new repetitive area (Repetitive Area1)and create the following 7 hidden fields in this new Repetitive Area1:
    Field_1 > Type = Text > Value = 1 {VAT. For BED, value = -90} (you can find this value from OSTT table, numerator field)
    Field_2 > Type = DB > Table = Sales Tax Authorities; Column = Numerator
    Field_3 > Type = Formula > Value = Field_1==Field_2 (from step 1 & 2)
    Field_4 > Type = DB > Table = AR Invoice Tax Amt Per Doc; Column = Tax Rate {this is required to display the tax rate in the document footer. For Eg. 4% for VAT@4%. If you just want to display the tax amount, do not create this field} - Link this to Field_3
    Field_5 > Type = DB > Table = AR Invoice Tax Amt Per Doc; Column = Tax Amount - Link this to Field_3
    Field_6 > Type = Formula > Value = Field_3*Field_4
    Field_7 > Type = Formula > Value = Field_3*Field_5
    Now in Repetitive Area Footer1 (i.e. the footer of the new repetitive area), create the following fields (visible):
    To display the Tax Rate: Field_8 > Type = Formula > Value = ColSum(Field_6)
    To display the Tax Amount: Field_9 > Type = Formula > Value = ColSum(Field_7)
    NOTE: You cannot display the tax name with this method. So to do that, you will have to create a Text field with the tax name in the repetitive area footer1, link it to Field_8 and then next to it, create Field_8 & Field_9 to display the relevant values
    I did exaclty the same way and i am getting result too
    But it is working for only 1 item , for 2nd the result is getting added up 4 times
    ex : for item1 10000 base value
    excise at 8% = 800
    when i select 2nd item total value becomes suppose 20,000
    excise at 8% becomes =3200
    which sholud be 1600
    Plz suggest
    i am in serious trouble

    Hi Manish,
    you have to mke the formula using the ostt and inv4 for invoice pld. table .
    Every taxcode has a unique nota fiscal id .Use that in ur PLD .
    Ex:
    First insert a repetitive area.
    Suppose Hcess id is 70 in ostt.
    1. Make a text field in repetive area and give 70 to it .
    2. make a db field and fetch nota id from ostt.
    3. make a formula field and Compare text field and db field .
    4. link the text field and db field with formula field .
    5. make a db field and fetch taxamount from inv4.
    6. link this filed also to formula field
    7 . make a new formula field and multiple the amount field and previous formula field .
    8. make a new formula field in repetitive area footer and do copulmn sum of last formula field which have the result of multiplication. This is what we have done. Hope it helps.
    Thanks,
    Joseph

  • FB60 - Vendor Invoice Creation Information to be extracted in BW

    Hi Experts,
    I have typical requirement where in I have to create a BW report. In the report the information are coming from FB60 transaction.
    The fields in FB60 are pointing to a structure INVFO. I am not able to find out the base tables, after creating an entry in FB60, the entries goes inti which table?
    I have to build a generic datasource to meet this requirement.
    Please suggest me how to procee ahead.
    Regards,

    Considering if you already have all of your financial data ( fi documents) in BW, you can do a query on the ods which has this info at the document level and then filter on the document type if you want to have a list of just the vendor invoices.
    The datasource used for transporting all of fi is 0FI_GL_4.
    Hope that helps
    Nandita

  • How to show Tax Amount bifurcation separately in A/R Invoice PLD

    Hi
        If total tax amount is 2412. BED is 1599 , Cess is 31 , HSCess is 15 , Vat 765.
        I want to show separately Bed , Sum of Cess+HSCess, Vat.
       Pls Help
    Thanks in Advance

    Hi,
    You may check this thread first:
    Sub: Tax Combinatiom. Tax rate, tax Amount in the print lay out design of t
    Thanks,
    Gordon

  • Business Object for FB60 Vendor Invoice?

    Hi all,
    Which is the business object for tcode FB60?
    Regards,
    Arpita

    Hi Arpita,
    You should use SWO2 - BO explorer.
    Regards,
    Suwandi

  • Additonal service tax amount to be paid to vendor

    HI All,
    The scenario is like this :-
    We have prepared a Service Purchase Order for which service entry sheet, invoice verification and payment has been processed in the system with service tax @ 2.06% in june 2008.
    But due to change in the service tax rate, the vendor has made an additional demand of service tax @ 4.12% on the SES process earlier. Hence we have to pay him a difference amount of service tax.
    Can anyone suggest how to process this in MM.
    Thanks in advance.

    HI, i think 2 possible ways are there.
    1. Post the difference amount to service tax G/L Dr & vendor CR throgh FI JV posting and do vendor payment. or
    2. create Credit memo for privious miro and Cancel the Previous service entry sheet and do the fresh SES & MIRO after changing the values in PO.
    Subrahmanyam

  • Amount WRBTR in TCode FB60

    Hi all,
    i am working on BDC for Transaction Code FB60
    Can anyone help me in BDC for this transaction.
    I have amount field name say wrbtr in the structure INVFO, it has the type CURR.
    But It_BDCDATA has field Fval of the type c with length 132.
    so it will not append the value of amount from the flat file.
    If I take the value into the variable of the type string.
    Then I will be able to append the value in it_bdcdata but....................
    when transaction will run then it will give the error that amount should defined in a particular format of __,__,__.__
    i think Conversion routine should be used but i am not sure................
    can anyone of you help me in it
    thanks
    ekta

    U dont need a conversion exit - the following line will do -
    DATA : L_CHAR_AMT type char15.
    WRITE : P_WRBTR TO L_CHAR_AMT.
    This piece of code will do the conversion ( with comma dor etc ).
    Hope it solves ur prob.

Maybe you are looking for

  • Problem in J1IJ if material transfer from one storage location to another

    Hi,      We have one problem  we have one material WMBMOTOR   while purchasing material we have taken excise duty thorugh J1Ig and while GR loocation was STCK   after that I have transfer the material to another location SDLV  with MB1B movement type

  • Problem regarding Duplicate Material Codes in SAP

    Dear Xperts, In our manufacturing plant,we are not using Split Valuation for same materials procured either from the domestic or from the imported Vendor.Even they are not using the same for the materials received through free of cost or through prop

  • I have iPhoto 2.0 but software update won't update to 2.0.1.

    Hello, As in my title I have iPhoto from my Panther install, and it wasn't updated with my Tiger upgrade so it is still at 2.0.  I have run Software Update until it says there are no updates left but I see that iPhoto is still 2.0.  Why is this and w

  • Installed Realplayer now iTunes won't open

    I wan't to know how to uninstall Realplayer on Power G5. When I try to open iTunes only Realplayer comes up and I don't like it anyway. I tried putting it in the trash as suggested but did no good. HELP please.

  • Copies of layout

    hi! i need to define a layout with four copies which means that when printing the layout it will print 4 copies . how do i do it? best regards yifat