<?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: Commit work is rolling back changes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166677#M753299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no user exit which contains an xekpv structure. I have looked into all those exits. this is the only user exit that gives me access to the shipping data ekpv. I have to MODIFY EKPV in this user exit. I am looking for a solution that works consistently. This modify does not work when I save ME22N the first time. The second time it works. Could it be a config issue? Perhaps it has something in memory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2007 16:57:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-14T16:57:05Z</dc:date>
    <item>
      <title>Commit work is rolling back changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166674#M753296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in enhancement MM06E005 function exit EXIT_SAPMM06E_013. Here I am trying to update the route in shipping data for PO. After looking into many options, we decided to update the database table EKPV. So I have some logic to populate work area wa_ptv and then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        MODIFY ekpv  FROM wa_ptv.            "Modify database table with route and shipping point
        commit work and wait.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When in debug, the MODIFY statement changes the route and shipping point in database table EKPV but when the COMMIT WORK is executed, the changes are reversed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I were to run the scenario for the same PO again, this time the MODIFY changes the route and shipping point and the COMMIT WORK does not roll back the changes. I cannot remove the commit work from there as after exiting the user exit, there is a commit work in the SAP std program and that commit work then rolls back the changes. Please advise. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 14:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166674#M753296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T14:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work is rolling back changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166675#M753297</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;the below are the list of user exits avaliable for that standard program SAPMM06E,&lt;/P&gt;&lt;P&gt;go throught the each exit and find the appropriate exit which is triggering while pressing the SAVE buttion there you have to change these values in the structure *EKPV then the system will automatically take care of saving and all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per my knowledge don't update the standard table directly, which will create lot of inconsistencies in real time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AMPL0001&lt;/P&gt;&lt;P&gt;LMEDR001&lt;/P&gt;&lt;P&gt;LMEKO001&lt;/P&gt;&lt;P&gt;LMEKO002&lt;/P&gt;&lt;P&gt;LMELA002&lt;/P&gt;&lt;P&gt;LMELA010&lt;/P&gt;&lt;P&gt;LMEQR001&lt;/P&gt;&lt;P&gt;LMEXF001&lt;/P&gt;&lt;P&gt;LWSUS001&lt;/P&gt;&lt;P&gt;M06B0001&lt;/P&gt;&lt;P&gt;M06B0002&lt;/P&gt;&lt;P&gt;M06B0003&lt;/P&gt;&lt;P&gt;M06B0004&lt;/P&gt;&lt;P&gt;M06B0005&lt;/P&gt;&lt;P&gt;M06E0004&lt;/P&gt;&lt;P&gt;M06E0005&lt;/P&gt;&lt;P&gt;ME590001&lt;/P&gt;&lt;P&gt;MEETA001&lt;/P&gt;&lt;P&gt;MEFLD004&lt;/P&gt;&lt;P&gt;MELAB001&lt;/P&gt;&lt;P&gt;MEQUERY1&lt;/P&gt;&lt;P&gt;MEVME001&lt;/P&gt;&lt;P&gt;MM06E001&lt;/P&gt;&lt;P&gt;MM06E003&lt;/P&gt;&lt;P&gt;MM06E004&lt;/P&gt;&lt;P&gt;MM06E005&lt;/P&gt;&lt;P&gt;MM06E007&lt;/P&gt;&lt;P&gt;MM06E008&lt;/P&gt;&lt;P&gt;MM06E009&lt;/P&gt;&lt;P&gt;MM06E010&lt;/P&gt;&lt;P&gt;MM06E011&lt;/P&gt;&lt;P&gt;MMAL0001&lt;/P&gt;&lt;P&gt;MMAL0002&lt;/P&gt;&lt;P&gt;MMAL0003&lt;/P&gt;&lt;P&gt;MMAL0004&lt;/P&gt;&lt;P&gt;MMDA0001&lt;/P&gt;&lt;P&gt;MMFAB001&lt;/P&gt;&lt;P&gt;MRFLB001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreeram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 15:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166675#M753297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T15:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work is rolling back changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166676#M753298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Megan Flores  You are not supposed to use COMMIT WORK in enhancements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove that ASAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 15:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166676#M753298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T15:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work is rolling back changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166677#M753299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no user exit which contains an xekpv structure. I have looked into all those exits. this is the only user exit that gives me access to the shipping data ekpv. I have to MODIFY EKPV in this user exit. I am looking for a solution that works consistently. This modify does not work when I save ME22N the first time. The second time it works. Could it be a config issue? Perhaps it has something in memory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 16:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166677#M753299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T16:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work is rolling back changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166678#M753300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to check out if in the module pool there aren't PERFORMs ON-COMMIT, that will be triggered at every commit work (maybe this can "rollback" your changes).&lt;/P&gt;&lt;P&gt;Anyway, you really should not use the commit during a user-exit flow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this: MM06EF0B_BUCHEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two FM, called in "IN UPDATE TASK". So, they're triggered at every commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that in the user-exit you are developing, you're working with copy of real data (the program pass to you a table lt_usr_ekpv, that is a copy of his ptv) and does not modify real data with your modifies.&lt;/P&gt;&lt;P&gt;So, when ME_CREATE_DOCUMENT and ME_UPDATE_DOCUMENT are called, the program sets-up his own ptv overwriting yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Roby.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Roberto Pagni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 17:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166678#M753300</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2007-12-14T17:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work is rolling back changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166679#M753301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roberto, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your reply helped a lot. I am looking to change ROUTE on PTV structure in my user exit. It is part of FM ME_UPDATE_DOCUMENT and ME_CREATE_DOCUMENT which are been called IN UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first time when I create the PO, ME_CREATE_DOCUMENT is triggered with PTV not containing the route. Then I go into change mode, make changes to shipping data, the PTV route comes in as blank for ME_UPDATE_DOCUMENT, then it hits my user exit where the route is computed and PTV changed using field symbols and EKPV updated. Then it hits a commit work, which executes FM and rollsback PTV changes.&lt;/P&gt;&lt;P&gt;Then second time I make changes to PO and save, it hits ME_UPDATE_DOCUMENT with PTV route filled with computed value and updates EKPV. Seems like may be I am changing PTV a little too late. Is there a user exit before ME_UPDATE_DOCUMENT that I can change PTV. Thank you for your assitance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 17:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-is-rolling-back-changes/m-p/3166679#M753301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T17:33:56Z</dc:date>
    </item>
  </channel>
</rss>

