<?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: inserting values in a data dictionary table with out losing data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233936#M771566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When two users trying to update the same table then it is problem.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So u need to use Logical Locks which are created at SE11-&amp;gt; locks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Which consist entries like table name and fields by which u need to lock that table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also have lock type s- shared, x- exclusive and  c- cumulative.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here in u r case use type X or C.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then while it activated it create  two function module 1. EnqueueE&amp;lt;name&amp;gt; and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. DEqueueE&amp;lt;name&amp;gt; .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In program while updating data base use:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call Function &amp;#145;EnqueueE&amp;lt;name&amp;gt;&amp;#146;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Exporting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;#133;&amp;#133;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then modifying data base statements.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call Function &amp;#145;DEqueueE&amp;lt;name&amp;gt;&amp;#146;.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2008 04:52:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-03T04:52:53Z</dc:date>
    <item>
      <title>inserting values in a data dictionary table with out losing data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233933#M771563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some issues with updating a table.  The program works fine.  But problem arrives when two users try to run the program at the same time.  I am getting only one update in the table.  The other data is getting lost.  This happens only when both users try to update at the same time.  I am using following statement:&lt;/P&gt;&lt;P&gt;INSERT dbtab FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can lock the dbtab while it is being used by one user , so that I do not lose data from second user?  Can I create some type of queue so that while one user is writing the data to dbtab, the other user data get queued up and when dbtab is available, this queued data can be written to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help in advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 00:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233933#M771563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T00:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: inserting values in a data dictionary table with out losing data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233934#M771564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Lock Object for that Table and use the Relevant Enque Deque functions that you generate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 00:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233934#M771564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T00:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: inserting values in a data dictionary table with out losing data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233935#M771565</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;You can aplly the concept of locking for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Pls reward poins if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 03:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233935#M771565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T03:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: inserting values in a data dictionary table with out losing data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233936#M771566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When two users trying to update the same table then it is problem.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So u need to use Logical Locks which are created at SE11-&amp;gt; locks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Which consist entries like table name and fields by which u need to lock that table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also have lock type s- shared, x- exclusive and  c- cumulative.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here in u r case use type X or C.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then while it activated it create  two function module 1. EnqueueE&amp;lt;name&amp;gt; and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. DEqueueE&amp;lt;name&amp;gt; .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In program while updating data base use:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call Function &amp;#145;EnqueueE&amp;lt;name&amp;gt;&amp;#146;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Exporting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;#133;&amp;#133;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then modifying data base statements.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call Function &amp;#145;DEqueueE&amp;lt;name&amp;gt;&amp;#146;.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 04:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-a-data-dictionary-table-with-out-losing-data/m-p/3233936#M771566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T04:52:53Z</dc:date>
    </item>
  </channel>
</rss>

