<?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: Problem in table update. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073919#M974152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy PKB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Enque and Deque method..&lt;/P&gt;&lt;P&gt;your problem will be solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a lock object via SE11-&amp;gt;Lock object and call the ENQUEUE_EZ_&amp;lt;TABLE&amp;gt; before updating the table and DEQUEUE_EZ_&amp;lt;TABLE&amp;gt; to unlock after updating the table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requesting an SAP lock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a lock object obj is activated, two function modules (see CALL&lt;/P&gt;&lt;P&gt;FUNCTION) with the names ENQUEUE_obj and DEQUEUE_obj are generated.&lt;/P&gt;&lt;P&gt;These lock modules are used to explicitly request or release SAP locks&lt;/P&gt;&lt;P&gt;in an ABAP program. The SAP lock concept thus assumes a cooperative&lt;/P&gt;&lt;P&gt;behavior by all the programs involved. This means that access from&lt;/P&gt;&lt;P&gt;programs that do not call the specified modules are not protected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lock conditions and lock modes for the requested locks are defined&lt;/P&gt;&lt;P&gt;by the IMPORT parameters of the lock modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lock conditions are defined by the lock parameters of the lock&lt;/P&gt;&lt;P&gt;object. If the lock object has only one base table, each primary key&lt;/P&gt;&lt;P&gt;field of the table corresponds to exactly one lock parameter. Apart from&lt;/P&gt;&lt;P&gt;this, a lock parameter corresponds to a group of primary key fields that&lt;/P&gt;&lt;P&gt;are identified by the join conditions. For each lock parameter par, the&lt;/P&gt;&lt;P&gt;lock modules have two IMPORT parameters with the names par and X_par.&lt;/P&gt;&lt;P&gt;The lock condition is defined by these parameters. If a parameter par is&lt;/P&gt;&lt;P&gt;not defined or if it is defined with the initial value, this means that&lt;/P&gt;&lt;P&gt;the corresponding key fields should be locked generically. If you really&lt;/P&gt;&lt;P&gt;want to lock the key field with the initial value, you must also define&lt;/P&gt;&lt;P&gt;the parameter X_par with the value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the lock modes, the lock modules have an IMPORT parameter&lt;/P&gt;&lt;P&gt;MODE_tab for each base table tab, with which the lock mode for this&lt;/P&gt;&lt;P&gt;table can be defined. A default value must already be set for this&lt;/P&gt;&lt;P&gt;parameter in the definition of the lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is second procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each explicit locking process assumes that all programs which perform database accesses work together in a cooperative manner. If a program does not behave in this way, i.e. it reads or changes data without locking it beforehand, this may result in a conflict with another program, even this other program has locked data correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following program fragment presents a solution to this problem: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: SFLIGHT, SBOOK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_ESFLIGHT' &lt;/P&gt;&lt;P&gt;EXPORTING MANDT = SY-MANDT &lt;/P&gt;&lt;P&gt;CARRID = 'LH' &lt;/P&gt;&lt;P&gt;CONNID = '0400' &lt;/P&gt;&lt;P&gt;FLDATE = '19960516' &lt;/P&gt;&lt;P&gt;MODE_SFLIGHT = 'E' &lt;/P&gt;&lt;P&gt;EXCEPTIONS FOREIGN_LOCK = 1 &lt;/P&gt;&lt;P&gt;OTHERS = 2. &lt;/P&gt;&lt;P&gt;CASE SY-SUBRC. &lt;/P&gt;&lt;P&gt;WHEN 1. ... &lt;/P&gt;&lt;P&gt;WHEN 2. ... &lt;/P&gt;&lt;P&gt;ENDCASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM SFLIGHT &lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;CARRID = 'LH' AND &lt;/P&gt;&lt;P&gt;CONNID = '0400' AND &lt;/P&gt;&lt;P&gt;FLDATE = '19960516'. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SFLIGHT-SEATSOCC &amp;lt; SFLIGHT-SEATSMAX. &lt;/P&gt;&lt;P&gt;SBOOK-CARRID = 'LH'. &lt;/P&gt;&lt;P&gt;SBOOK-CONNID = '0400'. &lt;/P&gt;&lt;P&gt;SBOOK-FLDATE = '19960516'. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;INSERT SBOOK. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;UPDATE SFLIGHT &lt;/P&gt;&lt;P&gt;SET &lt;/P&gt;&lt;P&gt;SEATSOCC = SEATSOCC + 1 &lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;CARRID = 'LH ' AND &lt;/P&gt;&lt;P&gt;CONNID = '0400' AND &lt;/P&gt;&lt;P&gt;FLDATE = '19960516'. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_ESFLIGHT' &lt;/P&gt;&lt;P&gt;EXPORTING MANDT = SY-MANDT &lt;/P&gt;&lt;P&gt;CARRID = 'LH' &lt;/P&gt;&lt;P&gt;CONNID = '0400' &lt;/P&gt;&lt;P&gt;FLDATE = '19960516' &lt;/P&gt;&lt;P&gt;MODE_SFLIGHT = 'E'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2008 06:56:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-25T06:56:11Z</dc:date>
    <item>
      <title>Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073914#M974147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing one problem while updating the Ztable. The scnerio is like that we are tracking PO changes. So we created one Ztable to store PO changes. In this table we ahve Sr No field as primary key. When user press SAVE button,  first maximum Sr No is selected from table and with addition of 1 new record is created with taht PO number. Now problem is that when two users save different PO at same time , them only one entry is saved in table.&lt;/P&gt;&lt;P&gt;Can i use enque deque or any other login I have to use for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073914#M974147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073915#M974148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have to use enque deque..... no other way....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073915#M974148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073916#M974149</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;all changes done to po's will be stored in CDPOS ,CDHDR tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u still want to go with  ur ztables check the functionality of that tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073916#M974149</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-25T06:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073917#M974150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Actually I am using this logic in user exit which trigger while saving PO. This Ztable will be read from non sap application through RFC.&lt;/P&gt;&lt;P&gt;I there any solution for this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073917#M974150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073918#M974151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you show me the sample code where you do this.. so that i can try to help u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073918#M974151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073919#M974152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy PKB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Enque and Deque method..&lt;/P&gt;&lt;P&gt;your problem will be solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a lock object via SE11-&amp;gt;Lock object and call the ENQUEUE_EZ_&amp;lt;TABLE&amp;gt; before updating the table and DEQUEUE_EZ_&amp;lt;TABLE&amp;gt; to unlock after updating the table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requesting an SAP lock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a lock object obj is activated, two function modules (see CALL&lt;/P&gt;&lt;P&gt;FUNCTION) with the names ENQUEUE_obj and DEQUEUE_obj are generated.&lt;/P&gt;&lt;P&gt;These lock modules are used to explicitly request or release SAP locks&lt;/P&gt;&lt;P&gt;in an ABAP program. The SAP lock concept thus assumes a cooperative&lt;/P&gt;&lt;P&gt;behavior by all the programs involved. This means that access from&lt;/P&gt;&lt;P&gt;programs that do not call the specified modules are not protected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lock conditions and lock modes for the requested locks are defined&lt;/P&gt;&lt;P&gt;by the IMPORT parameters of the lock modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lock conditions are defined by the lock parameters of the lock&lt;/P&gt;&lt;P&gt;object. If the lock object has only one base table, each primary key&lt;/P&gt;&lt;P&gt;field of the table corresponds to exactly one lock parameter. Apart from&lt;/P&gt;&lt;P&gt;this, a lock parameter corresponds to a group of primary key fields that&lt;/P&gt;&lt;P&gt;are identified by the join conditions. For each lock parameter par, the&lt;/P&gt;&lt;P&gt;lock modules have two IMPORT parameters with the names par and X_par.&lt;/P&gt;&lt;P&gt;The lock condition is defined by these parameters. If a parameter par is&lt;/P&gt;&lt;P&gt;not defined or if it is defined with the initial value, this means that&lt;/P&gt;&lt;P&gt;the corresponding key fields should be locked generically. If you really&lt;/P&gt;&lt;P&gt;want to lock the key field with the initial value, you must also define&lt;/P&gt;&lt;P&gt;the parameter X_par with the value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the lock modes, the lock modules have an IMPORT parameter&lt;/P&gt;&lt;P&gt;MODE_tab for each base table tab, with which the lock mode for this&lt;/P&gt;&lt;P&gt;table can be defined. A default value must already be set for this&lt;/P&gt;&lt;P&gt;parameter in the definition of the lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is second procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each explicit locking process assumes that all programs which perform database accesses work together in a cooperative manner. If a program does not behave in this way, i.e. it reads or changes data without locking it beforehand, this may result in a conflict with another program, even this other program has locked data correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following program fragment presents a solution to this problem: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: SFLIGHT, SBOOK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_ESFLIGHT' &lt;/P&gt;&lt;P&gt;EXPORTING MANDT = SY-MANDT &lt;/P&gt;&lt;P&gt;CARRID = 'LH' &lt;/P&gt;&lt;P&gt;CONNID = '0400' &lt;/P&gt;&lt;P&gt;FLDATE = '19960516' &lt;/P&gt;&lt;P&gt;MODE_SFLIGHT = 'E' &lt;/P&gt;&lt;P&gt;EXCEPTIONS FOREIGN_LOCK = 1 &lt;/P&gt;&lt;P&gt;OTHERS = 2. &lt;/P&gt;&lt;P&gt;CASE SY-SUBRC. &lt;/P&gt;&lt;P&gt;WHEN 1. ... &lt;/P&gt;&lt;P&gt;WHEN 2. ... &lt;/P&gt;&lt;P&gt;ENDCASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM SFLIGHT &lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;CARRID = 'LH' AND &lt;/P&gt;&lt;P&gt;CONNID = '0400' AND &lt;/P&gt;&lt;P&gt;FLDATE = '19960516'. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SFLIGHT-SEATSOCC &amp;lt; SFLIGHT-SEATSMAX. &lt;/P&gt;&lt;P&gt;SBOOK-CARRID = 'LH'. &lt;/P&gt;&lt;P&gt;SBOOK-CONNID = '0400'. &lt;/P&gt;&lt;P&gt;SBOOK-FLDATE = '19960516'. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;INSERT SBOOK. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;UPDATE SFLIGHT &lt;/P&gt;&lt;P&gt;SET &lt;/P&gt;&lt;P&gt;SEATSOCC = SEATSOCC + 1 &lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;CARRID = 'LH ' AND &lt;/P&gt;&lt;P&gt;CONNID = '0400' AND &lt;/P&gt;&lt;P&gt;FLDATE = '19960516'. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_ESFLIGHT' &lt;/P&gt;&lt;P&gt;EXPORTING MANDT = SY-MANDT &lt;/P&gt;&lt;P&gt;CARRID = 'LH' &lt;/P&gt;&lt;P&gt;CONNID = '0400' &lt;/P&gt;&lt;P&gt;FLDATE = '19960516' &lt;/P&gt;&lt;P&gt;MODE_SFLIGHT = 'E'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073919#M974152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073920#M974153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my code............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select max( id ) from zams_t_doc_chng into v_id.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zams_t_doc_chng-id = v_id + 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zams_t_doc_chng-pdoc = i_ekko-ebeln.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zams_t_doc_chng-cdate = sy-datum.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zams_t_doc_chng-ctime = sy-uzeit.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;read table tekpo index 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zams_t_doc_chng-plant = tekpo-werks.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zams_t_doc_chng-status = ' '.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if wa_zams_t_doc_chng-pdoc is not initial.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;INSERT INTO zams_t_doc_chng VALUES wa_zams_t_doc_chng.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;                               &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Problen is when more than one user save POs same code executes and same ID is selected  and only one able to save the record.&lt;/P&gt;&lt;P&gt;How it is possible that one user to select ID at a time and other to wait. After completing first work another user in queue should do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 07:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073920#M974153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073921#M974154</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 database system automatically sets database locks when it receives change statements (INSERT, UPDATE, MODIFY, DELETE) from a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you are updating a database table we need to lock.&lt;/P&gt;&lt;P&gt;You must first create a lock object in the ABAP Dictionary. A lock object definition contains the database tables and their key fields on the basis of which you want to set a lock. When you create a lock object, the system automatically generates two function modules with the names &lt;STRONG&gt;ENQUEUE_&amp;lt;lock object name&amp;gt; and DEQUEUE_&amp;lt;lock object name&amp;gt;.&lt;/STRONG&gt; You can then set and release SAP locks in your ABAP program by calling these function modules in a CALL FUNCTION statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 07:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073921#M974154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T07:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in table update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073922#M974155</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 think problem is not in updaing process. Actually first the maximum ID is selected. Now if two users saving PO at same time, same maximum ID get selected for both. Ans new ID = old id + 1. is created for both and only one is get updated. So in this case if i use enque deque then both will able to save the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 07:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-update/m-p/4073922#M974155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T07:14:37Z</dc:date>
    </item>
  </channel>
</rss>

