<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tax issues in BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-issues-in-bapi-acc-document-post/m-p/4388797#M1043645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anju , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2008 04:15:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-25T04:15:34Z</dc:date>
    <item>
      <title>Tax issues in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-issues-in-bapi-acc-document-post/m-p/4388796#M1043644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calculate tax from the base amount using FM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_bukrs           = lv_bukrs&lt;/P&gt;&lt;P&gt;      i_mwskz         = lv_mwskz&lt;/P&gt;&lt;P&gt;      i_txjcd            = gv_txjcd&lt;/P&gt;&lt;P&gt;      i_waers          = lv_waers&lt;/P&gt;&lt;P&gt;      i_wrbtr            = lv_wrbtr&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_fwast         = lv_taxded&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_mwdat        = lt_mwdat&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      bukrs_not_found   = 1&lt;/P&gt;&lt;P&gt;      country_not_found = 2&lt;/P&gt;&lt;P&gt;      mwskz_not_defined = 3&lt;/P&gt;&lt;P&gt;      mwskz_not_valid   = 4&lt;/P&gt;&lt;P&gt;      ktosl_not_found   = 5&lt;/P&gt;&lt;P&gt;      kalsm_not_found   = 6&lt;/P&gt;&lt;P&gt;      parameter_error   = 7&lt;/P&gt;&lt;P&gt;      knumh_not_found   = 8&lt;/P&gt;&lt;P&gt;      kschl_not_found   = 9&lt;/P&gt;&lt;P&gt;      unknown_error     = 10&lt;/P&gt;&lt;P&gt;      account_not_found = 11&lt;/P&gt;&lt;P&gt;      txjcd_not_valid   = 12&lt;/P&gt;&lt;P&gt;      OTHERS            = 13.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT lt_mwdat INTO ls_mwdat WHERE wmwst IS NOT INITIAL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Increment the Line Item Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    gv_no_item = gv_no_item + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Populate the tax table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_bapitax-itemno_acc       = gv_no_item.&lt;/P&gt;&lt;P&gt;    ls_bapitax-gl_account       = ls_mwdat-hkont.&lt;/P&gt;&lt;P&gt;    ls_bapitax-acct_key         = ls_mwdat-ktosl.&lt;/P&gt;&lt;P&gt;    ls_bapitax-tax_code         = lv_mwskz.&lt;/P&gt;&lt;P&gt;    ls_bapitax-taxjurcode       = ls_mwdat-txjcd.&lt;/P&gt;&lt;P&gt;    ls_bapitax-taxjurcode_deep  = ls_mwdat-txjcd_deep.&lt;/P&gt;&lt;P&gt;    ls_bapitax-taxjurcode_level = ls_mwdat-txjlv.&lt;/P&gt;&lt;P&gt;    ls_bapitax-tax_rate         = ls_mwdat-msatz.           &lt;/P&gt;&lt;P&gt;    ls_bapitax-itemno_tax       = gv_no_item - 1.           &lt;/P&gt;&lt;P&gt;    ls_bapitax-tax_date         = sy-datum.                &lt;/P&gt;&lt;P&gt;    ls_bapitax-cond_key        = ls_mwdat-kschl.          &lt;/P&gt;&lt;P&gt;    APPEND ls_bapitax TO ct_bapitax.&lt;/P&gt;&lt;P&gt;    CLEAR ls_bapitax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Populate the currency table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_curr-itemno_acc = gv_no_item.&lt;/P&gt;&lt;P&gt;    ls_curr-amt_doccur = ls_mwdat-wmwst.  " Net amount after tax &lt;/P&gt;&lt;P&gt;    ls_curr-amt_base   = lv_wrbtr.         &lt;/P&gt;&lt;P&gt;    ls_curr-tax_amt = ls_mwdat-wmwst.&lt;/P&gt;&lt;P&gt;    ls_curr-currency   = ls_head-waers.   " Currency is at header&lt;/P&gt;&lt;P&gt;    APPEND ls_curr TO ct_currency.&lt;/P&gt;&lt;P&gt;    CLEAR ls_curr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if anyone could suggest what the problem is herein. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;P&gt;Anju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 15:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tax-issues-in-bapi-acc-document-post/m-p/4388796#M1043644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tax issues in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-issues-in-bapi-acc-document-post/m-p/4388797#M1043645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anju , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 04:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tax-issues-in-bapi-acc-document-post/m-p/4388797#M1043645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T04:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tax issues in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-issues-in-bapi-acc-document-post/m-p/4388798#M1043646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Prabhu..&lt;/P&gt;&lt;P&gt;As per the Functional Consultants, the Customer line item should be split across Profit Centers.&lt;/P&gt;&lt;P&gt;However, the Tax Lines should not be split. Could you suggest what to do about this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;Anju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 19:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tax-issues-in-bapi-acc-document-post/m-p/4388798#M1043646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T19:33:08Z</dc:date>
    </item>
  </channel>
</rss>

