<?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: BAPI_ACC_DOCUMENT_POST - Tax Code value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-tax-code-value/m-p/11581673#M1938839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've recently faced the same situation and did some analysis on the BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_ACC_DOCUMENT_POST uses the AC interface to create accounting document (with FM AC_DOCUMENT_CREATE), while FB01 uses different logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tax code substitution is built inside the AC interface using FM FI_TAX_INDICATOR_DEFAULT which derives the default tax code from company code master data (T001-MWSKV/T001-MWSKA) for items where the tax code is not provided but the field is set to mandatory in GL master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gábor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 13:04:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-01T13:04:42Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST - Tax Code value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-tax-code-value/m-p/11581672#M1938838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the BAPI BAPI_ACC_DOCUMENT_POST in my program to post the FB01 documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i do not give any input in the table ACCOUNTGL (Field Name: TAX_CODE), the document is being posted with a tax code '20'.&lt;/P&gt;&lt;P&gt;If i give the input for Tax code with proper value, the document gets posted with the given tax code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested this scenario (for same GL account ) manually in transaction code FB01 without giving the Tax Code and system displays an error that tax code is mandatory for the given GL account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked in FS00 for the given GL account and found that tax code is being made mandatory and hence there will be error message in FB01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me why BAPI will consider the default tax code '20' (Exempt Input VAT 0 %)&amp;nbsp; even if the value is not given in the input???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-tax-code-value/m-p/11581672#M1938838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-01T11:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Tax Code value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-tax-code-value/m-p/11581673#M1938839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've recently faced the same situation and did some analysis on the BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_ACC_DOCUMENT_POST uses the AC interface to create accounting document (with FM AC_DOCUMENT_CREATE), while FB01 uses different logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tax code substitution is built inside the AC interface using FM FI_TAX_INDICATOR_DEFAULT which derives the default tax code from company code master data (T001-MWSKV/T001-MWSKA) for items where the tax code is not provided but the field is set to mandatory in GL master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gábor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 13:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-tax-code-value/m-p/11581673#M1938839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-01T13:04:42Z</dc:date>
    </item>
  </channel>
</rss>

