<?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 doesn't commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244544#M1013145</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;Have u checked the message tables returned by the BAPI before doing the commit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway u can try to debug the BAPI while fm FI_DOCUMENT_POST is calling: here the fm POST_DOCUMENT should be called in UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need u can debug fm POST_DOCUMENT setting UPDATE DEBUGGING while you're debugging the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2008 14:28:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-04T14:28:45Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244538#M1013139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4298530"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is marked as answered but still it contains no answer &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have the similiar problem that BAPI_TRANSACTION_COMMIT  doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a key from BAPI_ACC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;I don't get any errors in the commit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I can't find the records back in the SAP system in the bkpf tables &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any sollution why the commit doesn't work ?&lt;/P&gt;&lt;P&gt;I also checked the notes but couldn't find anything related to the non working commit &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader    = doc_header
        IMPORTING
          obj_type          = h_objtype
          obj_key           = h_objkey
        TABLES
          accountgl         = acc_gl
*      ACCOUNTRECEIVABLE =
*      ACCOUNTPAYABLE    = vervaldat
*      ACCOUNTTAX        = tax
          currencyamount    = curr_amount
          return            = tret.

      IF h_objkey NE '$' .
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait   = 'X'
          IMPORTING
            return = h_commit_return.
        ASSIGN COMPONENT 'BOEKSTATUS' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;.
        &amp;lt;l_field&amp;gt; = c_green.
      ELSE.
        ASSIGN COMPONENT 'BOEKSTATUS' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;.
        &amp;lt;l_field&amp;gt; = c_red.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 13:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244538#M1013139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244539#M1013140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of checking OBJKEY with '$', please try to read the return table with the specific status message, which says "Accounting Document ... posted". And if you find that message, than call the 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know the exact message number and class, otherwise I could have provided it to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 13:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244539#M1013140</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-04T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244540#M1013141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this posting related to cross company code ?&lt;/P&gt;&lt;P&gt;I have seen this case where actually the document is posted for the other company code so whenever you are displaying the document display using correct company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 14:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244540#M1013141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244541#M1013142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep it's cross company, and perhaps I can refine the checking but stil the bapi returns with the message that everything was succesfull and has a key which consist of the company code.  after that it passes the $ condition and does the commit and the commit also has no errors returned &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in development it is simple I check the BKPF table only with the current year and I get 20 records back. and my record is not 1 of them &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 14:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244541#M1013142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244542#M1013143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I am trying to tell is check the document with both the company code and you will find the document which is at line item level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 14:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244542#M1013143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244543#M1013144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here an example with the key returned from the bapi&lt;/P&gt;&lt;P&gt;1	S	RW	605	Document correct geboekt: BKPFF 990000025758802008 BASTET030&lt;/P&gt;&lt;P&gt;______________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;key 9900000257&lt;/P&gt;&lt;P&gt;company code 5880&lt;/P&gt;&lt;P&gt;year 2008 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find this record back in bkpf even when I leave the company code blank and even when I just enter the year (as told there are not many records in development this year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 14:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244543#M1013144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T14:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244544#M1013145</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;Have u checked the message tables returned by the BAPI before doing the commit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway u can try to debug the BAPI while fm FI_DOCUMENT_POST is calling: here the fm POST_DOCUMENT should be called in UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need u can debug fm POST_DOCUMENT setting UPDATE DEBUGGING while you're debugging the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 14:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244544#M1013145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T14:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244545#M1013146</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;I also faced the same problem in one of my program. I find one wiered solution to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use WAIT UP TO 4 SECONDS. and then do the commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me, i hope it will work for you too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward if you find the answer useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamesh Bathla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 14:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244545#M1013146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244546#M1013147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we actually found the answer in the fact that not all gl accounts were set to accept taxes in FS00.&lt;/P&gt;&lt;P&gt;as soon as we set the indicator to acceptance the bapi commit worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now we have to figure out the automatic postings done in the background since they happen with no taxcode the bapi wants to fill it in with a tax code used for the normal gl account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;further on we had to change the path also instead from company A to company B we had to make the booking from company B to A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 06:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244546#M1013147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST doesn't commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244547#M1013148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is an example of how it looks like if we do the booking by hand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thehospages.com/sap/crosscompany.jpg" target="test_blank"&gt;http://www.thehospages.com/sap/crosscompany.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the gl account 15000 the taxcode is always empty&lt;/P&gt;&lt;P&gt;on 44208 at the top item the taxcode is V3 (high tax)&lt;/P&gt;&lt;P&gt;on 44208 at the bottom item the taxcode is V9 (no taxes)&lt;/P&gt;&lt;P&gt;on 14015 the taxcode is V3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fs00 the 15000 is also set that it doesn't allow taxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 15000 and 14015 bookings are made automaticaly when the 44208 postings are made in fb50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the bapi I have added the 14015 line at the taxes&lt;/P&gt;&lt;P&gt;If I try to run the bapi with 15000 set to allow taxes everything works well. but then the taxcode in the 15000 lines are set to V9 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I try to turn it off again and add the 15000 lines in the bapi with the taxcode empty but still I get the error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FS                   217 No taxes on sales/purch.are allowed for account 15000 2900, V9 is not allowed   &lt;/P&gt;&lt;P&gt;F5                   562 Account 15000 can only be posted to internally in company code 2900             &lt;/P&gt;&lt;P&gt;F5                   562 Account 15000 can only be posted to internally in company code 5880             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anybody got a clue how to implement these bookings ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 08:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-doesn-t-commit/m-p/4244547#M1013148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T08:08:54Z</dc:date>
    </item>
  </channel>
</rss>

