<?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 BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667808#M1288928</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 written a program that updates material characterics using the BAPI's in the title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be having a bit of a slow moment but I don't understand something, if someone could clarify that will be excellent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If a change a material characteristic using BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT,  the locked entries get deleted from SM12 for every materials that is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If I add a radio button to the selection screen and then perform the actions in step 1, the material lock entries remain in SM12 until I exit the program. This of course is not desirable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program has a start-of-selection and an end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas will be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;J-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2009 15:18:27 GMT</pubDate>
    <dc:creator>TJRP</dc:creator>
    <dc:date>2009-06-03T15:18:27Z</dc:date>
    <item>
      <title>BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667808#M1288928</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 written a program that updates material characterics using the BAPI's in the title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be having a bit of a slow moment but I don't understand something, if someone could clarify that will be excellent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If a change a material characteristic using BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT,  the locked entries get deleted from SM12 for every materials that is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If I add a radio button to the selection screen and then perform the actions in step 1, the material lock entries remain in SM12 until I exit the program. This of course is not desirable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program has a start-of-selection and an end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas will be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;J-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 15:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667808#M1288928</guid>
      <dc:creator>TJRP</dc:creator>
      <dc:date>2009-06-03T15:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667809#M1288929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  For the step 1, if there is any commit executed, all the locks will get deleted from SM12.&lt;/P&gt;&lt;P&gt;  I didn't get the probelm 2.&lt;/P&gt;&lt;P&gt;  If you want to keep the locks, don't call commit work untill unless, you are saving it. May be you can write one User command for save and on event at user cmmand, you can call the FM for BAPI_COMMIT.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 15:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667809#M1288929</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2009-06-03T15:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667810#M1288930</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 want the record locks to be removed once the BAPI_OBJCL_CHANGE  has performed its changes, hence I called BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the locks don't seem to get removed if the BAPI is called within a Radio button statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario 1&lt;/P&gt;&lt;P&gt;call BAPI_OBJCL_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;Locks removed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario 2&lt;/P&gt;&lt;P&gt;if RAD1 = X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call BAPI_OBJCL_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The locks don't get removed in this scenario&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards J-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 15:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667810#M1288930</guid>
      <dc:creator>TJRP</dc:creator>
      <dc:date>2009-06-03T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667811#M1288931</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;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION function IN UPDATE TASK &lt;/P&gt;&lt;P&gt;COMMIT WORK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 15:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-objcl-change-and-bapi-transaction-commit/m-p/5667811#M1288931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T15:44:44Z</dc:date>
    </item>
  </channel>
</rss>

