<?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_TRANSACTION_COMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386574#M813148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Eswar bit I am already doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.     CLEAR: documentheader,&lt;/P&gt;&lt;P&gt;                      accountgl,&lt;/P&gt;&lt;P&gt;                       currencyamount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 11:25:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-22T11:25:41Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386572#M813146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem to be having a problem committing records I am posting through a BAPI. I have 3 records &lt;/P&gt;&lt;P&gt;held in an internal table and only the first record is being posted i.e. being saved &lt;/P&gt;&lt;P&gt;The following pseudo code explains: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP through internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    populate header. &lt;/P&gt;&lt;P&gt;    populate line items. &lt;/P&gt;&lt;P&gt;    populate currency amounts. &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'  ....... &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' ....... &lt;/P&gt;&lt;P&gt;&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;I have tried using COMMIT WORK AND WAIT and the function DEQUEUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be something I am missing in the code after the first record is committed. The question &lt;/P&gt;&lt;P&gt;is does anybody know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any help. This is driving me bonkers !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 11:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386572#M813146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386573#M813147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that you are clearing work areas/internal tables after each loop pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 11:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386573#M813147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386574#M813148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Eswar bit I am already doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.     CLEAR: documentheader,&lt;/P&gt;&lt;P&gt;                      accountgl,&lt;/P&gt;&lt;P&gt;                       currencyamount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 11:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386574#M813148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T11:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386575#M813149</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;  Are you checking the return table parameter for any errors? from the first fm? Please check it first. If it is having error then there is no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else put COMMIT WORK AND WAIT for the BAPI_transaction_COMMIT. Then in order to find wheter if it is a posting problem, Just put the statement WAIT UPTO 2 SECONDS.&lt;/P&gt;&lt;P&gt;and try if there is some posting proble then the above WAIT will find it for you. You need then to code accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.,&lt;/P&gt;&lt;P&gt;Harikrishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: harikrishna indugu on Feb 22, 2008 12:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 11:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386575#M813149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T11:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386576#M813150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling 'BAPI_ACC_GL_POSTING_POST'  check the RETURN table for any error message TYPE = 'E'. It looks like message type is 'E' for other two records. this may be the reason for not getting posted. Check this once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yellappa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 11:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386576#M813150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386577#M813151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for all suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I may have found the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using :      documentheader-obj_key      = '$'.&lt;/P&gt;&lt;P&gt;to generate the document number, which works ok for the first record. However, it does&lt;/P&gt;&lt;P&gt;not seem to be generating a new document number for the second record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function to generate or find the next document number sequence???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 11:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386577#M813151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T11:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386578#M813152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM : GET_NEXT_FI_DOCUMENT_NUMBER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 11:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit/m-p/3386578#M813152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T11:44:42Z</dc:date>
    </item>
  </channel>
</rss>

