<?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: Material change data in a single commit possible in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835869#M1131301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2008 08:44:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-26T08:44:18Z</dc:date>
    <item>
      <title>Material change data in a single commit possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835868#M1131300</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;I have a internal table of 1000 material , I have a requirement to change the MRP type and Reorder point of each material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approach i have done is looping of each material in the internal table calling the BAPI BAPI_MATERIAL_SAVEDATA , for each record i am commiting and rollbacking by calling the BAPI BAPI_TRANSACTION_COMMIT,BAPI_TRANSACTION_ROLLBACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is possible i can do one commit for all the processed record and it should be in such a way the error record needs to be rollbacked also.since the senior person telling me dont commit record wise , do a single commit and your program should be in a position to seperate sucess record and unsucess record and do commit for all sucess record one time and do a rollback for all unsucess record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 08:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835868#M1131300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T08:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Material change data in a single commit possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835869#M1131301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 08:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835869#M1131301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Material change data in a single commit possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835870#M1131302</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 site you have mentioned is not opening , can you provide me the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 09:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835870#M1131302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T09:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Material change data in a single commit possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835871#M1131303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;SAP wrote:&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction Control in Client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI transaction model must afford the user explicit transaction control. Therefore, if several BAPIs are called together, the caller can decide him/herself when to execute a COMMIT WORK  (or, as the case may be, a ROLLBACK WORK). This means that BAPIs themselves cannot (generally) execute a COMMIT WORK command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following restrictions apply to combining several BAPIs in one LUW:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        If an instance was created, modified or deleted by a write BAPI, a read BAPI can only access the most recent data if a COMMIT WORK has taken place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        It is not possible to make two write accesses on the same instance within one LUW. For example, you cannot first create and then change the object within the same LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can, however, create several instances of the same object type within an LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a BAPI executes a COMMIT WORK command, this must be mentioned in the BAPI documentation. This is the only way users are able to know that the BAPI contains a COMMIT WORK command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These BAPIs must also be documented in SAP Note 0131838, "Collective Note for BAPIs with the Commit Work Command".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 09:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-change-data-in-a-single-commit-possible/m-p/4835871#M1131303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T09:19:42Z</dc:date>
    </item>
  </channel>
</rss>

