<?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: FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226746#M478628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Since this is a bapi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. we have to use this FM &lt;/P&gt;&lt;P&gt; BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;(after calling your FM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. So that data is commited and saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (otherwise it won't get saved in database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2007 10:32:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-03T10:32:12Z</dc:date>
    <item>
      <title>FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226745#M478627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi expert,&lt;/P&gt;&lt;P&gt;              when i used this function    &lt;/P&gt;&lt;P&gt;                               &lt;/P&gt;&lt;P&gt;                 module- BAPI_FIXEDASSET_CHANGE&lt;/P&gt;&lt;P&gt;                 &lt;/P&gt;&lt;P&gt;                it shows that data has been  changed but when i saw in the DB table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                its not chang, can you tell me why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 10:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226745#M478627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T10:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226746#M478628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Since this is a bapi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. we have to use this FM &lt;/P&gt;&lt;P&gt; BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;(after calling your FM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. So that data is commited and saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (otherwise it won't get saved in database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 10:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226746#M478628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T10:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226747#M478629</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;u need to call commit when using BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM :&amp;lt;b&amp;gt;BAPI_TRANSACTION_COMMIT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rammohan Nagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 10:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226747#M478629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T10:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226748#M478630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are several possibilities for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - The BAPI might run in Background task and do the changes not instantly.&lt;/P&gt;&lt;P&gt; - when calling the BAPI there could be some update-flag you have to SET to enable the BAPI to really to the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oh lol yeah and you might have forgotten to call the "BAPI_TRANSACTION_COMMIT" which will get the changes written down to the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Florian Kemmer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 10:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226748#M478630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T10:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226749#M478631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Vijay have you used this function module along with that Bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Also if youhave used.. please check the condition in whic you are using it... if the condition you have provided is not true it won't work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayant Sahu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 10:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226749#M478631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226750#M478632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also one thing more to add to this... use it this way.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_FIXEDASSET_CHANGE'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        companycode  = companycode&lt;/P&gt;&lt;P&gt;        asset        = asset&lt;/P&gt;&lt;P&gt;        subnumber    = subnumber&lt;/P&gt;&lt;P&gt;        generaldata  = generaldata&lt;/P&gt;&lt;P&gt;        generaldatax = generaldatax&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        return       = l_bapiret2.&lt;/P&gt;&lt;P&gt;    if l_bapiret2-type ne 'E'.&lt;/P&gt;&lt;P&gt;      call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          wait   = 'X'&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          return = l_bapiret2.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      call function 'BAPI_TRANSACTION_ROLLBACK'&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          return = l_bapiret2.&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;In debug, the commmit happens automatically after every F5 and hence it actually works in debug.&lt;/P&gt;&lt;P&gt;Try to commit irrespective of the return structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayant Sahu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 10:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/2226750#M478632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T10:38:39Z</dc:date>
    </item>
  </channel>
</rss>

