<?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 BAPI_FIXEDASSET_CHANGE does not work except in debug in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-change-does-not-work-except-in-debug/m-p/1443262#M210621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is strange and I hope someone can assist me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm calling BAPI BAPI_FIXEDASSET_CHANGE to update the serial number and Inventory number on an asset. Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'BAPI_FIXEDASSET_CHANGE'
      exporting
        companycode  = companycode
        asset        = asset
        subnumber    = subnumber
        generaldata  = generaldata
        generaldatax = generaldatax
      importing
        return       = l_bapiret2.
    if l_bapiret2-type ne 'E'.
      call function 'BAPI_TRANSACTION_COMMIT'
        exporting
          wait   = 'X'
        importing
          return = l_bapiret2.
    else.
      call function 'BAPI_TRANSACTION_ROLLBACK'
        importing
          return = l_bapiret2.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am in debug mode the BAPI updates the assets exactly the way it should. But when debugging is switched off the Asset is not updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance in solving this issue would be appreciated.&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;&lt;/P&gt;&lt;P&gt;Message was edited by: Faaiez Sallie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2006 13:02:55 GMT</pubDate>
    <dc:creator>Faaiez</dc:creator>
    <dc:date>2006-06-23T13:02:55Z</dc:date>
    <item>
      <title>BAPI_FIXEDASSET_CHANGE does not work except in debug</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-change-does-not-work-except-in-debug/m-p/1443262#M210621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is strange and I hope someone can assist me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm calling BAPI BAPI_FIXEDASSET_CHANGE to update the serial number and Inventory number on an asset. Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'BAPI_FIXEDASSET_CHANGE'
      exporting
        companycode  = companycode
        asset        = asset
        subnumber    = subnumber
        generaldata  = generaldata
        generaldatax = generaldatax
      importing
        return       = l_bapiret2.
    if l_bapiret2-type ne 'E'.
      call function 'BAPI_TRANSACTION_COMMIT'
        exporting
          wait   = 'X'
        importing
          return = l_bapiret2.
    else.
      call function 'BAPI_TRANSACTION_ROLLBACK'
        importing
          return = l_bapiret2.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am in debug mode the BAPI updates the assets exactly the way it should. But when debugging is switched off the Asset is not updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance in solving this issue would be appreciated.&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;&lt;/P&gt;&lt;P&gt;Message was edited by: Faaiez Sallie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 13:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-change-does-not-work-except-in-debug/m-p/1443262#M210621</guid>
      <dc:creator>Faaiez</dc:creator>
      <dc:date>2006-06-23T13:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_FIXEDASSET_CHANGE does not work except in debug</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-change-does-not-work-except-in-debug/m-p/1443263#M210622</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 Think the condition "if l_bapiret2-type ne 'E'." is not correct and hence the commit it not happening.&lt;/P&gt;&lt;P&gt;In debug, the commmit happens automatically after every F5 and hence it is working in debug.&lt;/P&gt;&lt;P&gt;Try to commit irrespective of the return structure.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 13:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-change-does-not-work-except-in-debug/m-p/1443263#M210622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T13:09:21Z</dc:date>
    </item>
  </channel>
</rss>

