<?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: lock object effect on primary key! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741156#M321963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to adjust ur table using SE14...Also, u need to delete and create a new table maintenance generator from SE11....About lock all entries will get locked..means all fields..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 15:18:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-01T15:18:09Z</dc:date>
    <item>
      <title>lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741153#M321960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one table zxyz.&lt;/P&gt;&lt;P&gt;profit center is the primary key in the table zxyz.&lt;/P&gt;&lt;P&gt;now I made two other fields (period and year) as primary keys.&lt;/P&gt;&lt;P&gt;Do I need to adjust the table here in se14 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previoulsy there was lock object on profit center.&lt;/P&gt;&lt;P&gt;The lock object can continue to lock on profit center even though I am adding period/year to the key??? Is that technically possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 15:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741153#M321960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T15:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741154#M321961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,  I think it is a good idea to adjust using SE14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, it is technically possible to achieve a lock without the full key,  but you must know what the requirement is and proceed accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you proceed without changing the lock object(and the function calls), you will end up locking all of the records for the profit center,  so if you have 10 records for profit center each having a different period/year, then you will be locking all of them.&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,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 15:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741154#M321961</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-01T15:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741155#M321962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sam,&lt;/P&gt;&lt;P&gt;  It is always better to readjust in SE14 .. Yes it is possible &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 15:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741155#M321962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741156#M321963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to adjust ur table using SE14...Also, u need to delete and create a new table maintenance generator from SE11....About lock all entries will get locked..means all fields..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 15:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741156#M321963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T15:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741157#M321964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previoulsy there was lock object on profit center.&lt;/P&gt;&lt;P&gt;If I made the other two fields as primary keys , then adjust in se14 and regenerate TMG.&lt;/P&gt;&lt;P&gt;and after creating lock object ( I am new to lock object )....&lt;/P&gt;&lt;P&gt;I need  the lock object can continue to lock on profit center even though I am adding period/year as primary key . my coding is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM update_zxyz&lt;/P&gt;&lt;P&gt;  perform lock_zxyz.                                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at  izccod_t&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  perform unlock_zxyzt.            &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COULD YOU PLEASE TELL ME IF lock object can continue to lock on profit center even though we are adding period/year to the key, if that is technically possible. It seems it need to lock only profit center.&lt;/P&gt;&lt;P&gt;Onemore thing :&lt;/P&gt;&lt;P&gt;lock object locks  all the primary key fields or only one primary key field we can lock ?&lt;/P&gt;&lt;P&gt;Could you please explain me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 15:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741157#M321964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T15:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741158#M321965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previoulsy there was lock object on profit center.&lt;/P&gt;&lt;P&gt;As per your guidance, I made the other two fields as primary keys , then adjusted in se14 and regenerate TMG.&lt;/P&gt;&lt;P&gt;and after creating lock object ( I am new to lock object )....&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I need the lock object can continue to lock on profit center even though I am adding period/year as primary key&amp;lt;/b&amp;gt; . my coding is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM update_zxyz&lt;/P&gt;&lt;P&gt;perform lock_zxyz. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at izccod_t&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;perform unlock_zxyzt. &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COULD YOU PLEASE TELL ME IF lock object can continue to lock on profit center even though we are adding period/year to the key, if that is technically possible.&amp;lt;/b&amp;gt; It seems it need to lock only profit center.&lt;/P&gt;&lt;P&gt;Onemore thing :&lt;/P&gt;&lt;P&gt;lock object locks all the primary key fields or only one primary key field we can lock ?&lt;/P&gt;&lt;P&gt;Could you please explain me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 15:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741158#M321965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T15:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741159#M321966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the other posts said, yes - you can lock on only some of the primary keys, but you will lock all of the records that you have specified in the lock argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 16:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741159#M321966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T16:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741160#M321967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but you will lock all of the records that you have specified in the lock argument.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 16:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741160#M321967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T16:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741161#M321968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but you will lock all of the records that you have specified in the lock argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorru I did not understand . Could you please explain me inmore detailed.&lt;/P&gt;&lt;P&gt;Rob hats off to you for your help. and your valuable contribution.&lt;/P&gt;&lt;P&gt;We value our contribution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 16:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741161#M321968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T16:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: lock object effect on primary key!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741162#M321969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I appreciate the vote of confidence, but I think Rich's post says it the best. If you lock based only on the profit center, then all records with that profit center will be locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 18:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-effect-on-primary-key/m-p/1741162#M321969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T18:26:56Z</dc:date>
    </item>
  </channel>
</rss>

