<?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: Problem creating asset with BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-asset-with-bapi/m-p/4319828#M1029400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out that it does work and the client was doing something which was preventing the commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2008 13:39:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-21T13:39:22Z</dc:date>
    <item>
      <title>Problem creating asset with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-asset-with-bapi/m-p/4319826#M1029398</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 hope you can assist with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a function module which in turn calls BAPI_FIXEDASSET_CREATE to create an asset. I have executed it via SE37 and it works fine. The code has gone to a client and they have incorporated this function module into a program that they have written themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program runs in the background and for some reason fails to create the asset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A look at the logs via SLG1 reveals a message to the effect that the asset was created temporarily as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Asset 000040001299 with sub-number 0000 was created in company code Asset and was temporarily stored internally.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Procedure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The asset will be transferred to the database during the next COMMIT."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reference to the commit confuses me as I have a COMMIT WORK AND WAIT at the end of my function module after the BAPI has been executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I logged onto the client's system and ran the function module via se37 with the relevant parameters and it worked fine. However this was in the foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it does look like there is some issue with background processing but I have an explicit COMMIT and it seems to be being ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice gratefully received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alistair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 14:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-asset-with-bapi/m-p/4319826#M1029398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T14:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating asset with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-asset-with-bapi/m-p/4319827#M1029399</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;Probably in your case, It is an RFC call and database is not getting committed.&lt;/P&gt;&lt;P&gt;If you are trying to make changes in the remote system, then use BAPI_TRANSACTION_COMMIT with wait parameter value 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is happening on the same system, then COMMIT WORK and WAIT should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using BAPI_TRANSACTION_COMMIT only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kartavya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 17:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-asset-with-bapi/m-p/4319827#M1029399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating asset with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-asset-with-bapi/m-p/4319828#M1029400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out that it does work and the client was doing something which was preventing the commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 13:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-asset-with-bapi/m-p/4319828#M1029400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T13:39:22Z</dc:date>
    </item>
  </channel>
</rss>

