<?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: Posting Tax entry through BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-tax-entry-through-bapi-acc-document-post/m-p/6012426#M1346315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hiren for your response. &lt;/P&gt;&lt;P&gt;But my problem is I am uploading the data through this BAPI.  Since uplaoded file will not contain this information, I cannot pass different G/l a/c's to this BAPI  &lt;/P&gt;&lt;P&gt;Is it possible to post the tax amount to three different G.l a/c's without passing the g/l a/c to BAPI? Since this is possible manually through FB01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2009 14:15:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-31T14:15:34Z</dc:date>
    <item>
      <title>Posting Tax entry through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-tax-entry-through-bapi-acc-document-post/m-p/6012424#M1346313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to post an invoice in FI with tax entry. The line items are:&lt;/P&gt;&lt;P&gt;900   Dr.&lt;/P&gt;&lt;P&gt;100 Dr. (Tax amount)&lt;/P&gt;&lt;P&gt;    To 10000 Cr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, I want tax amount to be posted in different G/L a/c's. When I am trying to post this entry through BAPI 'BAPI_ACC_DOCUMENT_POST' it is posting Tax amount to only one G/L a/c. If I try to post the same through FB01, it is working fine. &lt;/P&gt;&lt;P&gt;Please let me know how to post a tax entry through 'BAPI_ACC_DOCUMENT_POST' to different G/L a/c's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 08:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-tax-entry-through-bapi-acc-document-post/m-p/6012424#M1346313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T08:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Tax entry through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-tax-entry-through-bapi-acc-document-post/m-p/6012425#M1346314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;report z_test_bapi_gl_ac_doc .&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;obj_type like bapiache02-obj_type,&lt;/P&gt;&lt;P&gt;obj_key like bapiache02-obj_key,&lt;/P&gt;&lt;P&gt;obj_sys like bapiache02-obj_sys,&lt;/P&gt;&lt;P&gt;documentheader like bapiache08,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl like bapiacgl08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;currencyamount like bapiaccr08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;return like bapiret2&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;extension1 like bapiextc&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_edidd like edidd occurs 0 with header line,&lt;/P&gt;&lt;P&gt;bapi_retn_info like bapiret2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: error_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-username = sy-uname.&lt;/P&gt;&lt;P&gt;documentheader-header_txt = 'Test using BAPI'.&lt;/P&gt;&lt;P&gt;documentheader-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;documentheader-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;documentheader-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;documentheader-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '-100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI-function in this system *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'BAPI_ACC_GL_POSTING_POST'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;documentheader = documentheader&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;importing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_type = obj_type&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_key = obj_key&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_sys = obj_sys&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;accountgl = accountgl&lt;/P&gt;&lt;P&gt;currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;extension1 = extension1&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999(re) with 'Problem occured'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;loop at return.&lt;/P&gt;&lt;P&gt;if not return is initial.&lt;/P&gt;&lt;P&gt;clear bapi_retn_info.&lt;/P&gt;&lt;P&gt;move-corresponding return to bapi_retn_info.&lt;/P&gt;&lt;P&gt;if return-type = 'A' or return-type = 'E'.&lt;/P&gt;&lt;P&gt;error_flag = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append bapi_retn_info.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;if error_flag = 'X'.&lt;/P&gt;&lt;P&gt;message e999(re) with 'Problem occured'.&lt;/P&gt;&lt;P&gt;rollback work.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for multiple g/l you will have to append the tables for multiple g/l means create more items ie add more items to this tables accountgl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hiren K.Chitalia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hiren Chitalia on Jul 31, 2009 11:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 09:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-tax-entry-through-bapi-acc-document-post/m-p/6012425#M1346314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T09:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Tax entry through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-tax-entry-through-bapi-acc-document-post/m-p/6012426#M1346315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hiren for your response. &lt;/P&gt;&lt;P&gt;But my problem is I am uploading the data through this BAPI.  Since uplaoded file will not contain this information, I cannot pass different G/l a/c's to this BAPI  &lt;/P&gt;&lt;P&gt;Is it possible to post the tax amount to three different G.l a/c's without passing the g/l a/c to BAPI? Since this is possible manually through FB01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 14:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-tax-entry-through-bapi-acc-document-post/m-p/6012426#M1346315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T14:15:34Z</dc:date>
    </item>
  </channel>
</rss>

