Tax issues in BAPI_ACC_DOCUMENT_POST

Hi Friends,
We have a requirement wherein, the incoming invoice details for the AP Interface have a single Customer Line and multiple G/L lines (with G/L amounts EXCLUSIVE of tax). For eg: If the amount at Customer Line is +6700, the sum of the amounts of G/L lines willl be   -6000. Currently, we are calculating the tax for each of the G/L lines based on the Tax Code and Tax Jurisdiction. For this, we are using the Function Module - CALCULATE_TAX_FROM_NET_AMOUNT and populating the BAPI tax lines as shown herein:
Calculate tax from the base amount using FM
  CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
    EXPORTING
      i_bukrs           = lv_bukrs
      i_mwskz         = lv_mwskz
      i_txjcd            = gv_txjcd
      i_waers          = lv_waers
      i_wrbtr            = lv_wrbtr
    IMPORTING
      e_fwast         = lv_taxded
    TABLES
      t_mwdat        = lt_mwdat
    EXCEPTIONS
      bukrs_not_found   = 1
      country_not_found = 2
      mwskz_not_defined = 3
      mwskz_not_valid   = 4
      ktosl_not_found   = 5
      kalsm_not_found   = 6
      parameter_error   = 7
      knumh_not_found   = 8
      kschl_not_found   = 9
      unknown_error     = 10
      account_not_found = 11
      txjcd_not_valid   = 12
      OTHERS            = 13.
  IF sy-subrc EQ 0.
LOOP AT lt_mwdat INTO ls_mwdat WHERE wmwst IS NOT INITIAL.
  Increment the Line Item Number
    gv_no_item = gv_no_item + 1.
  Populate the tax table
    ls_bapitax-itemno_acc       = gv_no_item.
    ls_bapitax-gl_account       = ls_mwdat-hkont.
    ls_bapitax-acct_key         = ls_mwdat-ktosl.
    ls_bapitax-tax_code         = lv_mwskz.
    ls_bapitax-taxjurcode       = ls_mwdat-txjcd.
    ls_bapitax-taxjurcode_deep  = ls_mwdat-txjcd_deep.
    ls_bapitax-taxjurcode_level = ls_mwdat-txjlv.
    ls_bapitax-tax_rate         = ls_mwdat-msatz.          
    ls_bapitax-itemno_tax       = gv_no_item - 1.          
    ls_bapitax-tax_date         = sy-datum.               
    ls_bapitax-cond_key        = ls_mwdat-kschl.         
    APPEND ls_bapitax TO ct_bapitax.
    CLEAR ls_bapitax.
    Populate the currency table
    ls_curr-itemno_acc = gv_no_item.
    ls_curr-amt_doccur = ls_mwdat-wmwst.  " Net amount after tax
    ls_curr-amt_base   = lv_wrbtr.        
    ls_curr-tax_amt = ls_mwdat-wmwst.
    ls_curr-currency   = ls_head-waers.   " Currency is at header
    APPEND ls_curr TO ct_currency.
    CLEAR ls_curr.
  ENDLOOP.
ENDIF.
However, this approach is not working as, the tax amount is now getting split into multiple lines. This split is happening against the different Profit Centres populated in the G/L lines. This happens ONLY in the 'General Ledger View' of the transaction FB03.
It would be great if anyone could suggest what the problem is herein.
Thanks in advance!!
Anju.

Hi Anju ,
i dont see any probs in this ? , yes it will creates multiple lines based on the Profit centres that too  in GL view only , as per my knowledge its SAP standard ? so whats the issue ? , what ur functional ppls are saying ?
Regards
Prabhu

Similar Messages

  • Tax issue in US - very urgent. !!

    Dear All,
    Someone from SAP told me that :
    "In US localisation the tax is depending
    only on the delivery and good receipt location.The tax code will apply for all the item depending on the Business partner ship to address in case of a delivery and on the location of warehouse in case of goods
    receipt"
    However, when i ask the end user from US, he told me that in one invoice, there are items which have GST, while other items on that invoice have PST + GST. Under this situation, the tax setting cannot be "generic" based on the ship-to-address. So, could anyone share with me:
    1, How to deal with this tax issue on one invoice?
    2, what's the general practice in US in the tax area?
    Million thanks

    Have a look at this thread:
    /thread/117232 [original link is broken]

  • 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

  • BC Major Tax Issue - Retail, Wholesale, Manual orders

    Hello,
    I'm hoping someone might be able to shed some light on a tax issue with BC as I'm really loosing faith with Business Catalyst over this issue!!!
    We sell retail, wholesale and do manual orders.
    We sell retail where the price needs to be including tax.
    We sell Wholesale where the price needs to be excluding tax.
    As there is no tag that will show retail price including tax and wholesale price excluding tax we were told to use {tag_totalprice} on the products page to show pricing.
    To get our website to work we were told to install {tag_shippingoptions,true,,} on the shopping cart.
    We were told to have tax on retail products as GST
    We were then told to make tax Not applicable on wholesale products so that the tax wouldn't be included in the price but assigned with the {tag_shippingoptions,true,,}  on the shopping cart.
    This was all working fine until a wholesale customer rang to change their order and do another order.
    if you change a manual wholesale order then it REMOVES the tax!
    if a wholesale customer rings up to do an order and we can't see their password - we need to do it as a manual order as we can't login as them. Hence again no tax.
    Really dissapointed in BC over this - does anyone have any solutions?
    Would love any help

  • Income tax issue for mid month joinees

    Issue 2:
    For New (mid month) joinee at the first month gross salary is calculated based on the earned salary amount *12 months (or no. of remaining months for financial yr end), but in my client income tax deducted based on the actual salary (not earned salary) from the first month onwards.
    For example :
    Employee X,
    Joined date 15.08.2011,
    Actual salary = 1,00,000 INR.  Earned salary for 15 days = 50,000 INR.
    While Start Payroll for the period 5th (August) 2011. The WT /416 Gross salary = 4,00,000 (50000*8). Based on this gross salary income tax calculated, But I want to calculated the gross at first month (august 2011) based on follows,
    Gross salary : August month earned salary = 50,000 + Actual salary per month =1,00,000*7 =7,00,000.
    Gross salary = 7,50,000 INR.
    Please give me some solution
    Thanks and regards
    Mohan .V

    Hi Param Dayal,
    New issues rise Now....
    For New (mid month) joinee at the first month Exemption U/S 10 is calculated based on the Conveyance Allowance amount *12 months (or no. of remaining months for financial yr end), but in my client income tax Exemption U/S 10 based on the actual salary (not earned salary) from the first month onwards.
    For example :
    Employee X,
    Joined date 15.08.2011,
    Conveyance Allowance = 800 INR. Earned Conveyance Allowance for 15 days = 400 INR.
    While Start Payroll for the period 5th (August) 2011. The WT /130 Exemption U/S 10 = 3,200 (400*8). Based on this Conveyance Allowance The Exemption U/S 10 calculated, But I want to calculated the Exemption U/S 10 at first month (august 2011) based on follows,
    August month earned Conveyance Allowance = 400 INR + Actual Conveyance Allowance per month =800*7 =5,600.
    Exemption U/S 10 = 6,000 INR.
    Please give me some solution
    Thanks and regards
    Mohan .V
    Edited by: mohantamilan on Sep 26, 2011 2:52 PM

  • Calculation of Tax Issue from FB60 (Tax Code Issue)

    Dear All,
    Normally when we purchase or received any services we post following entry.
    INVOICE VALUE IS 1000
    Purchase Ac Dr   1000
       To Vendor                   900
       T o Tax                         100
    But our requirement is that
    Purchase Ac Dr   1100
       To Vendor                  1000
       T o Tax                          100
    System should add cost of TAX  in purchase instead of reduction form vendor balance as we have to give 1000 RS to vendor.
    Can we create TAX code in this manner.
    This is not even possible form function available in Edit Option in FB60 (Calculate tax on Net Amount)
    Not even from TDS (Withholding tax)
    WE CANu2019T SUGGEST POSTING JV IN THAT CASE.
    Regards,
    Bittu

    Apologized for that Atif.
    Withholding Tax Type does not control Vendor line item.
    My issue is that system should not reduce value enter in vendor  amount field.
    System usually reduce amount which is payable to vendor
    Please see my example once again. I also mention that it is not working from Withholding Tax nor form Tax code(FTXP)
    Edit option in FB60 is also not useful in this case.
    Regards,

  • /616 WT & Income tax issue

    Dear all,
    I face a serious problem: some PFs have income tax = 0 (their salary is taxable) while others are double.
    I checked PC_PAYRESULT and saw that error come from WT /616:
    At period 01.2011, in section 89, some wage types are calculated wrong
    In-Year for Payroll --- --- --- ---  For-Year for Payroll --- --- --- - Wage type- --- --- -- Amount
    2011--- --- --- --- --- --- --- --- --- - 2010- --- --- -- -
    --- --- --- -  /6I2- --- --- ---  ---    29,377.00-
    2011--- --- --- --- --- --- --- --- --- -   2010- --- --- --- --- --- --- --- -  /616- --- --- --- ---  365,713.00-
    2011--- --- --- --- --- --- --- --- --- -   2010- --- --- --- --- --- --- --- -  /650- --- --- --- ---   5,973.00-
    I don't know why they come with a huge amount like this , but it causes wrong taxes and many problems for payroll in year 2011.
    I checked many topics, but still can't resolve.
    Add. gross salary in RT Table.
    /616 Add gross salary Issue
    Please help.
    1. Why were these WT calculated with a huge Rs?
    2. How can I fix this (Payroll already has ran for 5 months ago)

    Hi,
    the error is in which system.(PRD/QLY)
    according to the first thread you have gone through check the control record dates and change it to 2010 xx period and try once.
    if it is not giving any error then you can easily capture the solution why is it calculating so .
    change the control record dates to 2010 and try..
    or check the IT-0008 records are there any salary changes in past(salary Increased)
    we have model wage types
    M89G--/616
    M89I--/6I2
    M89T--/650  copy using this model wage types and balance the amount by giving in IT-0015 (deduction amount) and try...
    hope this helps you 
    let us know the result...
    Regards,
    mohammed

  • Professional Tax issue for Maharastra Employees in case of Separation

    Please provide your inputs on below Professional Tax requirements.
    An employee separated on the month of Feb 2014.His total gorss earnings is includes claim.
    Basic                               |     39,833.34
    Allow (Flexi)                    |        400.00
    Superannuation Allow     |      5,975.00
    Claim                               |    201,666.00
    Balance Flexi Pay           |     75,016.67
    The employee also having some Negative arrears in the same month (FEB 2014) as Lop data is maintained for the month of Dec.2013, Jan 2013.
    And below is arrear amount.
    Basic Arrears                       39,833.33-
    Allow (Flexi) Arr                         400.00-
    Superannuation Allow Arr |      5,975.00-
    Balance Flexi Pay Arrear  |     75,016.67-
    However system is now generating Professional Tax while running payroll for Feb 2014 & my client is telling that Professional Tax should not be deducted as Gross salary is 0 for Feb 2014. The employee below belongs to Maharashtra P tax circle.
    Please let me know what should we do in such case..
    Reagrds,
    SAP HCM Professional

    Professional Tax is not based on Earnings
    Professional Tax will deduct every month No matter , An employee salary is Zero
    Check backend Configuration There is deduction Carry Farward Change the configuration You would able to resolve your issue.

  • Income tax issue-URGENT

    Dear Guru,
    I have run the payroll of April 08 with old income tax slab Now,
    Before running the May 08 payroll  if I apply the new income tax slab and all budget changes 2008-2009 then, will the system calculate the taxes according to the new budget changes?
    Will the income tax be calculated from the month of April 08 or May onwards ?
    Please Advised  
    Regards
    MHPO

    Dear Santosh thanks,
    But what about the old slab April 08 income tax deduction amount is adjused to may 08 to mar 09??
    1  I have  run the payroll  of  april 08 with old income tax
    2 Then we update new budget changes may 08 month
    3 Then we run the may08 payroll
    my question is, the income tax be calculated from the month of April 08 or May onwards ?
    if the system is calculated income tax from  april 08 so what about the old slab April 08 income tax deduction amount is adjused to may 08 to mar 09??
    very serious issue
    Please Advised
    MHPO

  • Tax issue in Return order

    Hey All,
    Am using Vertex system to calculate taxes. I have billed a customer and let's say taxes are  250$. when i return that item by creating a return order against billing(with reference) using VA01, the taxes charged to customer are applied when we create a return order.
    The issue here is when i am creating a return order using bapi BAPI_CUSTOMERRETURN_CREATE, basically i need to pass all the values reading from billing document. I thought Billing pricing date would take care in return tax redertermination but it's not.
    Does any one know what is the field which determines to recalculate taxes on return order compared to Billing?
    Thanks in Advance.
    Edited by: Priya_S09 on Nov 4, 2011 11:05 PM

    You may consider Service Rendered Date
    G. Lakshmipathi

  • Tax Issue

    I have a issue with the tax condition value being different at billing document level and order level. There is a difference of 1-2 cents observed for eg if one of the tax say XR2 is $5.13 at order level , at billing level it is $ 5.12 . ( no rounding issue since tax % is 1).
    Taxware is used for tax calculation and interacts with SAP.
    Amit.

    not proper solution provided.

  • Tax Issue - Partial Invoice needs to be Taxed

    I am having a issue where currently 100% of the invoice is taxed based on the jurisdiction code u2013 we only want to tax 20% of the invoice to be Taxed.  See examples below;
    Currently today;
    Gross Invoice u2013                                                                 $1000.00
    Tax rate(based on jurisdiction code)  6%=$60.00 ($1000*6%)
    <b>Requirement:</b>
    Gross Invoice-                                                                   $1000.00
    20% of Invoice is taxed                                                  $ 200.00
    Tax rate(based on Norcross jurisdiction code)6%= $12.00 ($200*6%)
    Any Suggestion will be helpful. Thanks in Advance.

    Hi,
    Create one more condition type for Norcross in your tax procedure and assign calculation base as the other condition type (with 20%) to this newly created condition.
    now create a new tax code specifying 20% for same as previous condition and 6% for new condition type.
    Regards,
    Sayujya

  • Tax issue in third party order related intercompany billing

    Hi,
    I have one isseu related to tax determination in third party order related billing document.
    Ordering sales organization : Germany
    Delivering sales organization: France
    In billing document the Delivering country: FR (France)
    Receiving Country: DE (Germany)
    The tax condtion type: MWAS, Application of that condition type: TX.
    Sytem is picking the A1 tax code from country FR and through tax procedure TAXEUR.
    But the actually client requirement is system should pick upt he tax code from country DE (Germany). I.e., system need to pick up from receiving country.
    I tried through SD tax condition records, it is not working.
    I maintained the tax rate through VK11, like
    Departure country (FR) - Destination country (DE)  - Cust.taxclassi - material tax classi - Tax code (XT), the XT is belongs to France, When i maintained this system is not picking the tax amount from FTXP.
    Please let me to come out from this issue.
    Regards
    Lakshmikanth

    Thanks to all

  • No need to calc the tax by using BAPI_ACC_DOCUMENT_POST

    Hi
    i am using BAPI_ACC_DOCUMENT_POST to upload the transaction data.
    here no need to calc the TAX since i have the tax field in my file.
    i checked the SDN links but those are not serving  problem.
    Pls give some snippet to slove my problem.
    Thanks in advance.
    Regards,
    Sri

    ya i am passing string to Extension from BAPI.
    Then i wrote like this
    READ TABLE C_EXTENSION INDEX 1.
    IF C_EXTENSION-FIELD1 = 'BAPI CALL'.
      LOOP AT C_ACCIT.
        c_ACCIT-MWSKZ = 'ST'.
        MODIFY C_ACCIT.
    how to pass the tax field.
    i am checking with this code but while deburging i can see it not taking my Gfunciton module.
    Thank you very much for you replies Vinod.
    Sri
    Edited by: srikanthn on Apr 19, 2010 6:19 PM

  • F_53 Withholding tax Issue(not india)

    Hi,
    While processing the payment through t-code f-53, isystem is not calculating tax according to tax code assigned i-e XX. It should deduct tax Rs. 406 but deducting Rs. 6015. This is the only error I have found while processing the payment of the vendors.
    and  what is mean by per year,starting with mnth in withholding type config in accumulation type tab?
    Regards
    Venki

    HI ALL,
    Please look Issue detail below,(its not Indian TDS)
    PO gross value is 11600(as per WHT settings  its cal gross value)
    MOGO and MIRO have done correctly, when at the time of payment entry is:
    Invoice gross value= 11500
    WHT code per        =3.5%
    Vendor a/c  A/c Dr   11600
                  To bank a/c                 11194
                  To Tds                          406
    its not coming above values. its has given wrong value:
              Vendor a/c     11500
                          TO  bank a/c    5485
                          TO TDS  a/c    6015
    Please help this
    Regards,
    Venkat
    Edited by: KVenki on Dec 8, 2011 9:26 AM

Maybe you are looking for

  • How can I delete my old app store account from update on my IMac

    How can I delete my old app store account from update on my IMac

  • IPhone music no longer plays in car

    I have an iPhone 3GS with iOS4. For some reason (not sure if is since the most recent software update) music will no longer play via my Alpine car system (has connector cable). It displays a message saying the accessory is not compatible, but it alwa

  • Substitution of Profit center at the time of goods issue for consumption

    Dear All, We have a requirement of changing the profit center at goods issue level i.e. when goods is issued for consumption, it will pick the profit center maintained at Sales order level instead of picking Profit center maintained in Finished Goods

  • Can't Edit or Delete SMTP servers on iPad Mini on iOS 7.0.2

    On an iPad Mini, when I sent outgoing mail in my gmail account, the messages are sent but they don't show up in my Sent Items when I log in to gmail from a browser on my desktop. I have gone into the outgoing mail server section on the account and I

  • Bug or Limitiation by Design

    First let me start by saying that I am using a WRT54G v5 and I know that this is a wireless router. I am posting here because I have disabled the wireless and the problem I am having is not related to the wireless at all and is either a bug in the ro