<?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: Roll back Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941787#M1600773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using a BAPI, you shall NOT use COMMIT WORK or ROLLBACK WORK, but instead make use of the FM´s i mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont really wonder that you got issues with a simple commit or rollback statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 07:42:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-07T07:42:37Z</dc:date>
    <item>
      <title>Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941783#M1600769</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;In my program i am using 2 BAPIs one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i am using BAPI_SALESORDER_CHANGE if this is sucess i am doing goods movement using BAPI_GOODSMVT_CREATE&lt;/P&gt;&lt;P&gt;if goods movement is unsucess i have to roll back both the processes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice me how can i roll back Sales order changes also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941783#M1600769</guid>
      <dc:creator>kishorepallapothula</dc:creator>
      <dc:date>2011-06-07T07:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941784#M1600770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if all wnet sucessful, you can do a BAPI_TRANSACTION_COMMIT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if some errors occured, do BAPI_TRANSACTION_ROLLBACK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941784#M1600770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-07T07:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941785#M1600771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using commit and rollback.  In one of the scenarion Sales order change is successful and Goods movment is unsuccessful so i used rollback but it only rollback the goods movement but not rollbacked sales order change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941785#M1600771</guid>
      <dc:creator>kishorepallapothula</dc:creator>
      <dc:date>2011-06-07T07:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941786#M1600772</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;call BAPI_TRANSACTION_COMMIT after the bapi_goodsmvmt_create function module.. Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First call  BAPI_SALESORDER_CHANGE &lt;/P&gt;&lt;P&gt;read the return internal table. If ypu find everything sucsess then only call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_GOODSMVT_CREATE function module and then read the return structre &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if everything is success then only call the fm BAPI_TRANSACTION_COMMIT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the commit will work for both the function modules when there is no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941786#M1600772</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-06-07T07:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941787#M1600773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using a BAPI, you shall NOT use COMMIT WORK or ROLLBACK WORK, but instead make use of the FM´s i mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont really wonder that you got issues with a simple commit or rollback statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941787#M1600773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-07T07:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941788#M1600774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with roll back ... If i roll back after second bapi, both the bapis should be rolled back, which is not happening here  latest bapi only getting rolled back that is goods movment bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question that bapi_salesorder_change having auto commit ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice if you have any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishore P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941788#M1600774</guid>
      <dc:creator>kishorepallapothula</dc:creator>
      <dc:date>2011-06-07T07:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941789#M1600775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;kishore P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941789#M1600775</guid>
      <dc:creator>kishorepallapothula</dc:creator>
      <dc:date>2011-06-07T07:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941790#M1600776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah ok, sorry wasnt aware of that since you just were talking about commit and riollback :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW i just had a look at the documentation of BAPI_SALESORDER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is clearly stating there that there is NO commit in place and that you have to do it for yourself from the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May it be that this happens when you debug it? There is some auto commit when debugging, tho i cant really specify it more detailed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Florian Kemmer on Jun 7, 2011 10:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 08:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941790#M1600776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-07T08:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941791#M1600777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No there is no auto commit on the sales order change . Once the sales order is committed, you cannot roll back.Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt;First get the data from vbak, vbap table the record which you are going to change.if single reocrd store in work area if multiple records store in internal table (itab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;call the bapi "BAPI_SALESORDER_CHANGE" FUNCTION MODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;gt;Read the return structure with message type = 'S'. if yes then call "BAPI_TRANSACTION_COMMIT" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4&amp;gt;Call the bapi "BAPI_GOODSMVMT_CREATE" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5&amp;gt;Read the return structure with message type = 'S'. if yes then call "BAPI_TRANSACTION_COMMIT"  ELSE call "BAPI_TRANSACTION_ROLLBACK AND t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the record from the internal table (itab) which you have retrievd from the VBAK, VBAP table, You will have the old values and now call the bapi BAPI_SALESORDER_CHANGE and pass the values and then commit it with  BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the sales order will be back with older values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 08:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-issue/m-p/7941791#M1600777</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-06-07T08:43:13Z</dc:date>
    </item>
  </channel>
</rss>

