<?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 COMMIT WORK in copying requirements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046118#M1968314</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;
  &lt;P&gt;Do you know if it is allowed to have COMMIT WORK in copying requirements in VOFM? We want to update a custom table there and it's not always updated. I suspect that our updates get rolled back when the standard program after this routine decides not to fulfill the update. We want our updates in the custom table to be preserved no matter what happens after that.&lt;/P&gt;
  &lt;P&gt;TIA&lt;/P&gt;
  &lt;P&gt;Raf&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 14:09:20 GMT</pubDate>
    <dc:creator>rafael_zaragatzky</dc:creator>
    <dc:date>2019-08-16T14:09:20Z</dc:date>
    <item>
      <title>COMMIT WORK in copying requirements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046118#M1968314</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;
  &lt;P&gt;Do you know if it is allowed to have COMMIT WORK in copying requirements in VOFM? We want to update a custom table there and it's not always updated. I suspect that our updates get rolled back when the standard program after this routine decides not to fulfill the update. We want our updates in the custom table to be preserved no matter what happens after that.&lt;/P&gt;
  &lt;P&gt;TIA&lt;/P&gt;
  &lt;P&gt;Raf&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046118#M1968314</guid>
      <dc:creator>rafael_zaragatzky</dc:creator>
      <dc:date>2019-08-16T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK in copying requirements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046119#M1968315</link>
      <description>&lt;P&gt;I am not a developer, but copy requirement in VTAA/VTLA/VTFA/VTFL etc. seems a rather odd choice for updating custom tables. From the little that I know (I happen to debug VOFM routines fairly often) copy requirement code is executed before you save a document or an item (depends on where you use the VOFM routine - header or item) to the database. &lt;/P&gt;&lt;P&gt;Why would one use such point in time to update custom tables when there are probably more efficient ways to do that? And custom VOFM routines in ECC require SSCR... Is there a valid reason to prefer  a copy requirement to badis, user exits, events or outputs with special function 8 for custom table or custom field update? &lt;/P&gt;&lt;P&gt;Speaking from my fairly limited experience - I have used VOFM routines to read data from custom tables, not to populate information in custom tables. Pricing and output determination (NACE) are very mature (e.g. leave the transaction without saving, perform pricing simulation) and the chances that I might break something by mistake are waaay lower compared to updating some z* table.&lt;/P&gt;&lt;P&gt;I may be wrong (being a functional consultant and all) but for z* table update options I would look elsewhere. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 17:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046119#M1968315</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2019-08-16T17:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK in copying requirements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046120#M1968316</link>
      <description>&lt;P&gt;Don't put COMMIT WORK in VOFM routines be it copy routines, requirements, scales etc, unless you really know what you are doing. COMMIT WORK in VOFM will most surely break data integrity.&lt;/P&gt;&lt;P&gt;Dominik Tylczyński&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 06:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046120#M1968316</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2019-08-26T06:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK in copying requirements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046121#M1968317</link>
      <description>&lt;P&gt;Am a developer, can confirm. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;Don't do any updates in VOFM routines, find another place. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 16:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-copying-requirements/m-p/12046121#M1968317</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2019-08-26T16:37:20Z</dc:date>
    </item>
  </channel>
</rss>

