Transaction Locking

hi,
Quick question. I have a session bean which I am using to access my database. I execute the SQL using prepared statements. In one case for an insert I perform the following:
1. Insert a records
2. Read a sequence to get the id of the previous insert
3. Insert another record in another table with the id of the first as an attribute.
My question is concerning transactions. During this sequence of events do I have a lock on all this data during all three queries. Or can another user increment the sequence during the execution of these SQL queries? Do I have to set a lock manually?
Thanks
Steve

Hi Steve,
You can group these operations inside a single transaction to make it ACID. You also need to configure the transaction isolation level of the underlying datasource (or connection) used by your transaction. In any event, your application should not attempt to manage these transaction details.
-cheng

Similar Messages

  • Transaction Locking during multiple Webservice - persistent webs sessions

    Hi All,<br>
    <br>
    Yesterday evening we had a discussion concerning ESA architecture. We want to create (web)services for accessing the SAP business objects (using XI) and use these (web)services via visual composer, webdynpro or custom java development.<br>
    <br>
    It does not seem a big problem to perform creations and reads of transaction, but when we want to change objects, we saw some problems concerning locking/commiting and rollbacks.<br>
    <br>
    From our GUI we would like to be able to go in edit mode and from that moment on, the transaction should be locked. We then want to change certain parameters and commit only when we push the save button.<br>
    <br>
    We can invoke a webservice wich tries to lock the transaction, but at the moment the XI scenario is completed (=the lock is created), the program at SAP side (=proxy in our case) is also finished and the lock is automaticly removed. How can we do locking, when using webservices via XI?<br>
    <br>
    The problem of the rollback and commit we can partially solve by putting more logic in the GUI, but we don't want to do that. How can we do a change of a business object and remember this change without doing a commit on the SAP system.... . Same problem for the rollback.<br>
    <br>
    Is there a away to keep a session "alive" during multiple webservice calls or to simulate it? Every webservice invokation happens in a different context...isn't it?<br>
    <br>
    <br>
    <b>Just to make it a bit more clear.</b><br>
    <br>
    Suppose we create 6 service related to the business object bupa (business partner).<br>
    - read<br>
    - change<br>
    - commit<br>
    - rollback<br>
    - lock<br>
    - unlock.<br>
    <br>
    We create a GUI which uses these services.<br>
    <br>
    <b>Step1:</b> we want to see bupa in detail, so the read webservice is called and the retrieved details are shown in the GUI<br>
    <b>Step2:</b> we want to go in edit mode, so the lock webservice is called to lock the bupa. The bupa should stay locked, untill the unlock is called. Here occurs the problem. The webservice lock is called, XI will trigger the proxy on the SAP system. This proxy will lock the bupa. As soon as the proxy-program is completed, the bupa lock will automaticly be removed ... . We want to keep this lock!<br>
    <b>Step3:</b> we change the bupa using the change webservice. Only the user who locked the bupa should be able to change it.<br>
    Problem concerning the locking occurs: standard we don't know who locked the bupa (this is done by the generic RFC user, configured in sm59). Should we pass some kind of GUID towards the proxy and build some additional logic to know which end-user in fact locked it... . Using the userid isn't sufficient, because a user could logon multiple time simultanously.<br>
    <br>
    Another problem is that we want to change the bupa, without having to do a commit yet.De commit should be called only when pushing the save button. When the proxy is ended and we did not do a commit, the changes are lost normally ... .<br>
    <br>
    What we in fact want to do is Simulate the bsp behaviour.<br>
    <b>Step4:</b>We want to perform a save of the things we changed or a reset. This means the commit or rollback webservice is called.<br>
    <b>Step5:</b> We want to unlock the bupa by calling the unlock webservice.<br>
    <br>
    <br>
    Please give me your comments.<br>
    <br>
    Kind regards<br>
    Joris<br>
    <br>
    Note: Transaction Locking during multiple Webservice "sessions".
    Message was edited by:
            Joris Verberckmoes

    There are multiple strategies how to resolve this. They require that the last change time is available in the changed object, and also that the client keeps the value of the change time when it read the data.
    1. First one wins
    Immediately before posting the changes, the current change time is read from the server. In case it is different from the client buffer, then the client changes are discarted.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B checks if server change time has changed (result is no)
    5. Client B writes his changes to the server
    6. Client A changes its buffer
    7. Client A checks if server change time has changed (result is yes)
    8. Client A discarts its changes
    2. Last one wins
    Easy. Client just writes his changes to the server, overwriting any changes that might have occured since it read the data.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B writes his changes to the server
    5. Client A changes its buffer
    6. Client A writes its changes to the server -> changes from client B are lost
    3. Everybody wins
    Most complicated. In case of concurrent changes, the client is responsible for merging his changes with the changes from other clients and to resolve any conflicts.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B checks if server change time has changed (result is no)
    5. Client B writes his changes to the server
    6. Client A changes its buffer
    7. Client A checks if server change time has changed (result is yes)
    8. Client A merges its changes with changes from client B
    9. Client A writes his changes to the server
    "Last one wins" is definitely not water-proof. But even with the other strategies, data can potentially get lost in the short timeframe when the change time is checked and the actual update.
    To make it more secure, server support is required. E.g. the client could pass the change time from its read access to the server. The server can then reliably reject the update if the change data has been updated in beetween by another client.

  • CATS IDoc inbound problem - Transaction lock, LR002

    Customer is posting CATS records via interface from externa system to IDoc for CATS processing. Either the create BAPI (BAPI_...) is used or if there is a change to an already existing posting (BAPI_...). For his i have slightly modified the SAP standard existing FM for CATS inbound processing (IDOC_) to handle both scenarios, create and change. I basically examine CATS data from external system and if it is already existing then I call the change BAPI and if not found the I call the create BAPI.
    We have no problem posting with these BAPIs when there postings are imported one by one. But, when several CATS postings arrive at the same second then not all postings are handled correctly. We receive error message "Transaction locked by user XXX" (error message e002(lr)) and XXX is the background communication user. No luck using "Where used" for error 002 in message class LR either. Also tried tracing with trans SE30 but no luck there either.  Data is always different but can be for the same personell number. User is correct and not locked - it is the transaction (like CAT2) thats SAP standard reports as locked. Some postings go through alright but then after a few corrrect posting this problem pops up. Very frustating.
    Code is correct as it seems only to be a "overflow" problem. Config and data is also correct. Customer was also facing the very same error using the same BAPIs called via RFC and not via IDoc.
    Reason to change to IDoc was of course to set the posting as synchronous thus avoiding this "overflow" problem. In standard SAP is IDocs processed in parallell which is fine in many circumstances but not here. Or it might be OK as long as this error don't occur but have found no way so far. Customer is in production and this must be solved. We also tried this in a band new upgraded ECC 6.0 EhP5 system as customer is in the process of upgrading. Same error.
    I have found very few hints when searching through Google, SAPNet, SDN etc. This is one of the very few links I found: [Locking problem with FM EDI_DATA_INCOMING;
    So I checked this in trans WE46 but as customer is running ECC 6.0 EhP3 we have no such option. Then tried trans nOYEAn setting the parameter "Synchronous processing" but I do not understand how this is supposed to work. Problem stills remains. The values are stored in table EDICONFIG and here parameter INBSYNC is used for the synchrounous setting as of my understanding but we only have this for a user called EDIADMIN and that is certainly not our background user. I don't understand how to set this parameter correctly I guess. SAP help doen't give more insight either - at least not for me.
    Does anyone have a suggestion how to solve this problem? Anyone solved this before and willing to share a solution?
    << Moderator message - Please do not promise points >>
    I maybe beed to send this to SAP OSS but trying this option first.
    To me this is puzzling. Find very few references which normally means few have encountered this. Strange. CATS BAPI interfacing must be used by a lot of companies.
    BR, Johan
    Edited by: Rob Burbank on Nov 7, 2011 2:36 PM

    Hi Johan,
    These kind of problems arise when there is a very little time gap between two successive postings. So put a 'WAIT UP TO 2 SECONDS' between each of the postings. This will give time for the previous posting to perform the updates even before the next posting hits the same transaction. This will solve your problem.

  • Transaction Lock

    hello
    is any body have any example scenario
    How to make transaction lock on a table ???

    It sounds like you are looking for a standby database (i.e. DataGuard). That would generally require that the standby operating system match the production operating system. Do you have another Solaris box that you could fail over to?
    Unless you want to fail over to a version of the database created during the export process and lose all the transactions made in the production database since then, you cannot use export and import to build a standby. You need to use your RMAN backup and apply the archived logs generated since the backup. But you're not going to be able to recover the RMAN backup on to a Linux box if the backup is from a Solaris server.
    Justin

  • Transaction Lock in Forms (TM,TX) How to get around?

    Hi,
    what is industry practice to avoid blocking locks bringing application processing to a standstill.
    I have few core table in material module e.g. material master, request, receipt, issues, whenever multiple user start using their respective forms such ac material_request, material_receipt, material_issue, Transaction Locks are acquired. and unless and until blocking user commits his transaction nobody else is able to work. how to get around this problem.
    There is lot of tech.material on net which tells me how to find blocking lock and objects, but nobody is giving answer how to avoid this situation.
    what is industry practice to avoid blocking locks bringing application processing to a standstill.
    regards

    Risky Solution !!
    I am facing more problem in to material requisition form, because many user want to request material. they open this form start entry and when they stuck for information they just keep that form open, in background the tables are locked because of change in data-block. now what do i do.
    regards

  • How to release  transaction lock on a table

    Dear
    can you please let me konw how to release a transaction lock on a table.
    thanks
    VIJAY

    I thought of a more traditional method
    http://www.stephstuff.com/esafe/images/ouch2.gif
    Laurent, You've read my mind :) or vice-versa

  • Container Managed Transaction locking Database- RollBack

    Hi,
    I am trying to call a Stateless Session Bean (B) in domain D2 from another stateless session bean (A) in domain 1 within a transaction.
    The <trans-attribute> in both ejb-jar.xmls is "Required".
    Bean B accesses the Database and the method is successful in inserting the record ( not comitted ) , but the database is getting locked due to which the transaction is rolling back.
    Any pointers in this regard is greatly appreciated.
    Regards,
    Harsha

    Hi,
    I guess that there is a problem with your JMS provider and that the message would not be enqueued if the connection is not closed before the exception is raised. If it is the case then I would recommend you to report this problem to your JMS provider.
    Arnaud

  • Regd transaction locks

    Hi,
    How can I see all the transactions which are locked?
    I know the query select * from v$lock, which is showing lot of information which is not understandale.
    Thanks,

    Here you have some scripts:
    rem
    rem FUNCTION: Report all DB locks
    rem
    column osuser format a15 heading 'User'
    column session_id heading 'SID'
    column mode_held format a20 heading 'Mode|Held'
    column mode_requested format a20 heading 'Mode|Requested'
    column lock_id1 format a10 heading 'Lock|ID1'
    column lock_id2 format a10 heading 'Lock|ID2'
    column type heading 'Type|Lock'
    set feedback off echo off pages 59 lines 131
    start title132 'Report on All Locks'
    spool rep_out\&db\locks
    select nvl(a.osuser,'SYS') osuser,b.session_id,type,
    mode_held,mode_requested,
    lock_id1,lock_id2
    from sys.v_$session a, sys.dba_locks b
    where
    a.sid=b.session_id
    order by 2
    spool off
    pause press enter/return to continue
    clear columns
    set feedback on echo on pages 22 lines 80
    set headingsep ='|'
    set lines 160
    set pagesize 20
    ttitle 'Database Locking Conflict Report'
    btitle 'Mode Held = indicates the user holding the lock|Mode Request = indicates the user waiting on the later to finish to establish lock||** End of Locking Conflict Report **'
    column username      format a10     heading 'User'
    column terminal      format a15     heading 'Application|PC'
    column object           format a15     heading     'Table'
    column sql            format a15     heading 'SQL'
    column sid           format 999     heading 'SID'
    column lock_type      format a15     heading 'Lock|Type'
    column mode_held      format a11     heading 'Mode|Held'
    column mode_requested      format a10     heading 'Mode|Request'
    column lock_id1      format a8     heading 'Lock ID1'
    column lock_id2      format a8     heading 'Lock ID2'
    column first_load_time  format a19     heading 'Requested'
    break on lock_id1
    select a.sid,
           username,
           terminal,
           decode(a.type,'MR', 'Media Recovery',
                      'RT', 'Redo Thread',
                   'UN', 'User Name',
                   'TX', 'Transaction',
                   'TM', 'DML',
                   'UL', 'PL/SQL User Lock',
                   'DX', 'Distributed Xaction',
                     'CF', 'Control File',
                   'IS', 'Instance State',
                   'FS', 'File Set',
                   'IR', 'Instance Recovery',
                   'ST', 'Disk Space Transaction',
                   'IR', 'Instance Recovery',
                   'ST', 'Disk Space Transaction',
                   'TS', 'Temp Segment',
                   'IV', 'Library Cache Invalidation',
                   'LS', 'Log Start or Switch',
                   'RW', 'Row Wait',
                   'SQ', 'Sequence Number',
                   'TE', 'Extend Table',
                   'TT', 'Temp Table', a.type) lock_type,
            decode(a.lmode,0, 'None',           /* Mon Lock equivalent */
       1, 'Null',           /* N */
       2, 'Row-S (SS)',     /* L */
       3, 'Row-X (SX)',     /* R */
       4, 'Share',          /* S */
       5, 'S/Row-X (SSX)',  /* C */
       6, 'Exclusive',      /* X */
       to_char(a.lmode)) mode_held,
       decode(a.request,
       0, 'None',           /* Mon Lock equivalent */
       1, 'Null',           /* N */
       2, 'Row-S (SS)',     /* L */
       3, 'Row-X (SX)',     /* R */
       4, 'Share',          /* S */
       5, 'S/Row-X (SSX)',  /* C */
       6, 'Exclusive',      /* X */
       to_char(a.request)) mode_requested,
       to_char(a.id1) lock_id1, to_char(a.id2) lock_id2,
       c.object object,
       d.sql_text sql,
       e.first_load_time
    from v$lock a, v$session, v$access c, v$sqltext d, v$sqlarea e
       where (id1,id2) in
         (select b.id1, b.id2 from v$lock b where b.id1=a.id1 and
         b.id2=a.id2 and b.request>0) and
         a.sid = v$session.sid and
         a.sid = c.sid and
         d.address = v$session.sql_address and
         d.hash_value = v$session.sql_hash_value and
         d.address = e.address
    order by a.id1, a.lmode desc
    set headingsep ='|'
    set lines 160
    set pagesize 20
    ttitle 'Database Locking Conflict Report'
    btitle 'Mode Held = indicates the user holding the lock|Mode Request = indicates the user waiting on the later to finish to establish lock||** End of Locking Conflict Report **'
    column username      format a10     heading 'User'
    column terminal      format a15     heading 'Application|PC'
    column object           format a15     heading     'Table'
    column sql            format a15     heading 'SQL'
    column sid           format 999     heading 'SID'
    column lock_type      format a15     heading 'Lock|Type'
    column mode_held      format a11     heading 'Mode|Held'
    column mode_requested      format a10     heading 'Mode|Request'
    column lock_id1      format a8     heading 'Lock ID1'
    column lock_id2      format a8     heading 'Lock ID2'
    column first_load_time  format a19     heading 'Requested'
    break on lock_id1
    select a.sid,
           username,
           terminal,
           decode(a.type,'MR', 'Media Recovery',
                      'RT', 'Redo Thread',
                   'UN', 'User Name',
                   'TX', 'Transaction',
                   'TM', 'DML',
                   'UL', 'PL/SQL User Lock',
                   'DX', 'Distributed Xaction',
                     'CF', 'Control File',
                   'IS', 'Instance State',
                   'FS', 'File Set',
                   'IR', 'Instance Recovery',
                   'ST', 'Disk Space Transaction',
                   'IR', 'Instance Recovery',
                   'ST', 'Disk Space Transaction',
                   'TS', 'Temp Segment',
                   'IV', 'Library Cache Invalidation',
                   'LS', 'Log Start or Switch',
                   'RW', 'Row Wait',
                   'SQ', 'Sequence Number',
                   'TE', 'Extend Table',
                   'TT', 'Temp Table', a.type) lock_type,
            decode(a.lmode,0, 'None',           /* Mon Lock equivalent */
       1, 'Null',           /* N */
       2, 'Row-S (SS)',     /* L */
       3, 'Row-X (SX)',     /* R */
       4, 'Share',          /* S */
       5, 'S/Row-X (SSX)',  /* C */
       6, 'Exclusive',      /* X */
       to_char(a.lmode)) mode_held,
       decode(a.request,
       0, 'None',           /* Mon Lock equivalent */
       1, 'Null',           /* N */
       2, 'Row-S (SS)',     /* L */
       3, 'Row-X (SX)',     /* R */
       4, 'Share',          /* S */
       5, 'S/Row-X (SSX)',  /* C */
       6, 'Exclusive',      /* X */
       to_char(a.request)) mode_requested,
       to_char(a.id1) lock_id1, to_char(a.id2) lock_id2,
       c.object object,
       d.sql_text sql,
       e.first_load_time
    from v$lock a, v$session, v$access c, v$sqltext d, v$sqlarea e
       where (id1,id2) in
         (select b.id1, b.id2 from v$lock b where b.id1=a.id1 and
         b.id2=a.id2 and b.request>0) and
         a.sid = v$session.sid and
         a.sid = c.sid and
         d.address = v$session.sql_address and
         d.hash_value = v$session.sql_hash_value and
         d.address = e.address
    order by a.id1, a.lmode descCheers,
    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • Transaction Locked

    Hi all,
    I want to release one PO, system allow me to release the PO but when i release the PO and tried to save it , transaction gets locked and system is not able to save it.
    What could be the reason that system is not allowing me to save the release.
    When i go to SM12 t code also i can see
    15:23:32 E EKKO 4544xxxxxxx4
    15:23:32 E EKPO 4544xxxxxxx4#####
    What could be the reason system is not allowing me save the release and also locking the transaction.
    Regards,
    SAPUSER

    Hi ,
    Well I guess,
    there must be some workflows whixh must have been fired as soona s the PO is released which is locking the PO or there can be some user-exit also which has locked the PO .
    Please check
    Thnks,
    Sahil

  • Transaction Locking Problem in JDBC with ResultSet : ORA-17090.

    I have a locking concern using JDBC. I select a set of records to determine if they
    need to to be updated by a set of generated results (from else where in the program).
    If the results are not in this cursored set of records selected they are to be INSERTED
    else they (if they are in the select set) they are to be UPDATED.
    I set up a ResultSet using concurrancy parameters so that I can scroll through them for
    each of the program results to check. If I set up the ResultSet with TYPE_SCROLL_INSENSITIVE,
    CONCUR_UPDATABLE, I get a possible race condition if I am accessing teh same records
    through some other program such as toad. As such the first record is not checked (if my
    cursor in toad is on this first record) and as such is duplicated.
    If I set up the ResultSet with TYPE_SCROLL_SENSITIVE, CONCUR_READ_ONLY. This fixes this
    concurrancy problem but occassionally I get the following error which is Oracle based and
    not documented:
    java.sql.SQLException: operation not allowed: Unsupported syntax for refreshRow()
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:251) at
    oracle.jdbc.driver.SensitiveScrollableResultSet.refreshRow(SensitiveScrollableResultSet.java:171)
    at oracle.jdbc.driver.SensitiveScrollableResultSet.handle_refetch(SensitiveScrollableResultSet.java:239)
    at oracle.jdbc.driver.SensitiveScrollableResultSet.next(SensitiveScrollableResultSet.java:83)
    at sfwmd.hisa.oneflow.TimeSeries.load(TimeSeries.java:2502)
    at sfwmd.hisa.oneflow.OneParameter.main(OneParameter.java:808)
    which translates to an ORA-17090 (operation not allowed)
    {NOTE: I do NOT call ResultSet.refreshRow() anywhere in my program}
    I do not see any methods in ResultSet for record locking, outside of the mentioned parameters
    in the constructor. The database (updates and inserts) changes are all batched and executed
    AFTER this ResultSet is released.
    -James Fox
    [email protected]

    post ur code..

  • How to lock transaction codes in ABAP report

    Hello all,
    I'm now planning to lock several transaction codes as a batch job to prevent end users from using locked tr-cds while processing batch jobs during online service period.
    I found out tr-cd: SM01 to lock tr-cds, but I don't get what I can do with this tr-cd when you want to execute this as a background job.
    I suppose I can make it by using transaction recorder or call transaction.
    But I want to do this in smarter manner (like executing certain report PGM with a variant containing tr-cds to be locked).
    I rather prefer using FM or BAPI to using transaction recorder etc if possible...
    If you know anything on this issue, please please help me..
    Hozy

    Hi,
    Not quite correct - this is the FM that posts a record about the lock/unlock to the audit log (SM01 calls it), but ir doesn't change the transaction lock itself.
    Here is a sample report that does do the trick. You may want to change it to your needs, e.g. allow changing multiple transactions in one run:
    REPORT  ZTXLOCK.
    parameters:
      p_tcode      type tcode obligatory,
      p_mode       type char1 obligatory.   "L=lock, U=unlock
    tables: tstc.
    at selection-screen on p_tcode.
      select single * from tstc where tcode = p_tcode.
      if sy-subrc <> 0.
        message e002(sy) with 'Transaction code not found'.
      endif.
    at selection-screen on p_mode.
      if p_mode na 'LU'.
        message e002(sy) with 'Invalid mode, use L (lock), U (unlock)'.
      endif.
    start-of-selection.
      case p_mode.
        when 'L'.
          perform bit-set(sapmtstc) using tstc-cinfo 6.
        when 'U'.
          perform bit-reset(sapmtstc) using tstc-cinfo 6.
      endcase.
      update tstc.
      if sy-dbcnt = 0.
        message e002(sy) with 'TSTC update failed'.
      endif.
    Regards,
    Mark

  • Disk space transaction  and temp table lock  in oracle

    Hi,
    Today many sessions used to get disk space transaction lock and temp table lock and i am seeing these locks first time in my Production database,
    is there any workaround to avoid this contension.
    Thanks
    Prakash GR

    Post your version (all 3 decimal places).
    Post the SELECT statement and results that have led you to this conclusion.
    Other than the fact that you have seen a number what, precisely, is the issue.

  • Why multiple  log files are created while using transaction in berkeley db

    we are using berkeleydb java edition db base api, we have already read/write CDRFile of 9 lack rows with transaction and
    without transaction implementing secondary database concept the issues we are getting are as follows:-
    with transaction----------size of database environment 1.63gb which is due to no. of log files created each of 10 mb.
    without transaction-------size of database environment 588mb and here only one log file is created which is of 10mb. so we want to know how REASON CONCRETE CONCLUSION ..
    how log files are created and what is meant of using transaction and not using transaction in db environment and what are this db files db.001,db.002,_db.003,_db.004,__db.005 and log files like log.0000000001.....plz reply soon

    we are using berkeleydb java edition db base api, If you are seeing __db.NNN files in your environment root directory, these are environment's shared region files. And since you see these you are using Berkeley DB Core (with the Java/JNI Base API), not Berkeley DB Java Edition.
    with transaction ...
    without transaction ...First of all, do you need transactions or not? Review the documentation section called "Why transactions?" in the Berkeley DB Programmer's Reference Guide.
    without transaction-------size of database environment 588mb and here only one log file is created which is of 10mb.There should be no logs created when transactions are not used. That single log file has likely remained there from the previous transactional run.
    how log files are created and what is meant of using transaction and not using transaction in db environment and what are this db files db.001,db.002,_db.003,_db.004,__db.005 and log files like log.0000000001Have you reviewed the basic documentations references for Berkeley DB Core?
    - Berkeley DB Programmer's Reference Guide
    in particular sections: The Berkeley DB products, Shared memory regions, Chapter 11. Berkeley DB Transactional Data Store Applications, Chapter 17. The Logging Subsystem.
    - Getting Started with Berkeley DB (Java API Guide) and Getting Started with Berkeley DB Transaction Processing (Java API Guide).
    If so, you would have had the answers to these questions; the __db.NNN files are the environment shared region files needed by the environment's subsystems (transaction, locking, logging, memory pool buffer, mutexes), and the log.MMMMMMMMMM are the log files needed for recoverability and created when running with transactions.
    --Andrei                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How To Lock Rows (in the DB)

    I need to lock a Row when a users enters some editing JSP until the user finished doing changes, while the other users (using VOs. created on the fly, and SQLJ) **DO NOT** have to get access to that Row.
    From a bean used in a JSP or in My AppModule How do I get a Lock over a Row? (The lock must be visible to all users of the D.B. not just the ones using the Framework.)
    Also setting the Transaction locking mode to NONE and doing manually the locks doesn't seems to be locking anything to the rest of users of the Framework.
    Thanks in advance.

    Or else you could issue the following select statement:
    select *
    from tab1, tab2, ....
    where <join clause>
    for update of <table to be updated>

  • Lock Box configuration and Lock box process

    Hi
    I immediately need detailed lock box configuration settings and do the process in easy access and also need the seetings for BAI format, which is part of lock box configuration.
    I will highly appreciate, if you immediately respond for the above.
    Thanks & Regards,
    Radhakrishna

    HI,
    To have Lock Box Customizing in the system you need to defien the following
    FA-Bank Accounting-Business Transaction-Payment Transaction-Lock Box
    Define Control Parameters for BAI format as
    Doc Length : 10
    No of Doc nu in type 6 : 3
    No of Doc nu in type 4 : 6
    GL Account posting : x
    Incoming customer payments : x
    GL account posting type : 1
    Enter all the details and save the BAI format
    Define Posting Date as
    Destination : 1000123456
    Origin : 0011000390
    Company Code : ABCD
    House Bank : HSBC
    Account ID: HSBCA
    Bank GL account: Deposit bank A/c
    Bank Clearing A/C : Clearing Account
    Bank Posting Doc type : SA
    Cus Posting Doc Type : DZ
    Posting Key  Dr : 40
    Posting Key Cr : 50
    Posting Key credit Cust : 15
    Posting Key DR cust : 06
    And save the posting date
    And in Customer master Payment Transaction Tab create Customer Bank details with bank key and Bank Account.
    then create a text file as show below
    100100012345600110003900712110100
    210001234560011000390
    5086001007250407121110001234560011000390
    60860020000150000 044115126189175247210 11000206
    408600360171800000003        0000150000000000000000   testtesttesttest
    7086007007250407121100100001500000
    80860080072504071211000100001500009    015000    015000
    9000001
    If any confusion in text file give ur mail id i will send you the file with explanation.
    Regards
    Balaji

Maybe you are looking for

  • Changes made to a cube

    I have added two characteristics to a cube - they share a dimension with another characteristic. The cube is loaded from a staging ODS Before the changes were made the % of transferred to received records at the cube level was about 70%.  Now the rat

  • 10.5.6 update and USB problem.

    Since upgrading to 10.5.6 whenever I attach my ipod or sony reader it now takes 4 or 5 minutes before the computer recognises that a USB device has been plugged in. Anybody else had a similar problem or knows what is causing it. Many thanks, Allen.

  • How do I manually import a .mov file and add it to my podcast library?

    Hi all, I'm a fan of "theshow" by zefrank and when I finally discovered it was available via iTunes, I subscribed. However, iTunes does not pick up all the early episodes. I found that I could download them onto my desktop as .mov files - but I can't

  • Technical Usages for EhP4 upgrade for CP/WSD BP activation

    Dear All, I have installed EhP4 ready system. Now in the process of upgrading it to EhP4 system. This system is mainly for activation V1.604 Best Practices of Consumer Products/Wholesale Distribution. Please let me know which technical usages I can u

  • Problems connecting a second airport express to a stereo

    Since I moved to 10.5 i lost my connection to an airport express which I had connected to a stereo. I have an airport express base station which is working. How do I connect to the xpress at the stereo?