<?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_FIXEDASSET_CREATE1 with equipment synchronization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-create1-with-equipment-synchronization/m-p/13639605#M2027177</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/185148"&gt;@RaymondGiuseppi&lt;/a&gt;&amp;nbsp;. I did a scan of notes, but didnt look at that one.&lt;BR /&gt;RFC disconnect. Interesting. Let me try that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 10:58:23 GMT</pubDate>
    <dc:creator>oppenheim_jm</dc:creator>
    <dc:date>2024-03-15T10:58:23Z</dc:date>
    <item>
      <title>BAPI_FIXEDASSET_CREATE1 with equipment synchronization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-create1-with-equipment-synchronization/m-p/13638862#M2027152</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;How do I "reset" the&amp;nbsp;BAPI_FIXEDASSET_CREATE1 function module between executions?&lt;/P&gt;&lt;P&gt;I am creating a number of assets via&amp;nbsp;BAPI_FIXEDASSET_CREATE1 FM via a loop successfully, until I turn on asset synchronisation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test the error handling, I have created one bad equipment category configuration (linked to an asset class) which must fail. The issue is that all subsequent&amp;nbsp;BAPI_FIXEDASSET_CREATE1 executions after that first failure fail with the same error code even though the data for subsequent executions is different.&lt;/P&gt;&lt;TABLE width="401"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="98"&gt;Asset Class&lt;/TD&gt;&lt;TD width="98"&gt;Result&lt;/TD&gt;&lt;TD width="205"&gt;Error&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Success&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Success&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Failure&lt;/TD&gt;&lt;TD&gt;A - ITOP error&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Failure&lt;/TD&gt;&lt;TD&gt;A - ITOP error&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Failure&lt;/TD&gt;&lt;TD&gt;A - ITOP error&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I am clearing AND refreshing all input structures at the end of the FM execution in the loop. I am using both a&amp;nbsp;&lt;!-- StartFragment  --&gt;&lt;SPAN&gt;BAPI_TRANSACTION_COMMIT&lt;/SPAN&gt;&amp;nbsp;and a COMMIT work.&lt;BR /&gt;&lt;BR /&gt;How do I loop through multiple executions of BAPI_FIXEDASSET_CREATE1 (with equipment sync) and resetting the FM between executions?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 19:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-create1-with-equipment-synchronization/m-p/13638862#M2027152</guid>
      <dc:creator>oppenheim_jm</dc:creator>
      <dc:date>2024-03-14T19:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_FIXEDASSET_CREATE1 with equipment synchronization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-create1-with-equipment-synchronization/m-p/13639475#M2027173</link>
      <description>&lt;P&gt;Did you look for OSS notes relevant for your versions (notes such as &lt;A title="just an example" href="https://me.sap.com/notes/2999629/E" target="_self"&gt;2999629 - Japan: CSMD - Time-dependent Fields Are Incorrect When You Execute BAPI_FIXEDASSET_CREATE1 Multiple Times&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;if you don't find any suitable notes, you could try to execute the BAPI in another session&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;* Execute in a separate session
CALL FUNCTION 'BAPI_FIXEDASSET_CREATE1'
  DESTINATION 'NONE'
    " (...)
    TABLES
      return         = lt_return.
* Commit the changes within this session
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  DESTINATION 'NONE'
    EXPORTING wait = 'X'.
* Close the session.
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
  EXPORTING destination = 'NONE'
  EXCEPTIONS OTHERS = 0.&lt;/LI-CODE&gt;&lt;P&gt;So no data will be shared between successive calls due to explicit close.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 09:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-create1-with-equipment-synchronization/m-p/13639475#M2027173</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2024-03-15T09:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_FIXEDASSET_CREATE1 with equipment synchronization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-create1-with-equipment-synchronization/m-p/13639605#M2027177</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/185148"&gt;@RaymondGiuseppi&lt;/a&gt;&amp;nbsp;. I did a scan of notes, but didnt look at that one.&lt;BR /&gt;RFC disconnect. Interesting. Let me try that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 10:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fixedasset-create1-with-equipment-synchronization/m-p/13639605#M2027177</guid>
      <dc:creator>oppenheim_jm</dc:creator>
      <dc:date>2024-03-15T10:58:23Z</dc:date>
    </item>
  </channel>
</rss>

