Enqueue Dequeue for VBREVE

Hi,
I am updating the Revenu reversal data into VBREVE table through standard function module SD_REV_REC_COLLECTIVE_RUN_NEW
The data will be updated in the table after few seconds only.So I need to chek dynamically whether the data has been updated before proceeding for further process.
Anyone suggest me for this??
How to check, if there is any open entry in VBREVE...
Is there any enque dequeue functions to check fior VBREVE table...

You can check using the Function
ENQUE_READ
this give all the lock entries , now in that you check any entry exists for that Revenue related .

Similar Messages

  • Function module like ENQUEUE and DEQUEUE for function location.

    Hi All,
    I should be highly appreciate if any one help me for locking function module like ENQUEUE and DEQUEUE
    for function location.
    Thanks
    Shaw

    Hi,
    You can either use the standard way of locking by using :
    data:lv_varkey          TYPE rstable-varkey.
    concatenate functional_location sy-mandt into lv_varkey .
    *   Lock table
        CALL FUNCTION 'ENQUEUE_E_TABLEE'
          EXPORTING
            mode_rstable   = 'E'
            tabname        = 'IFLOS'
            varkey         = lv_varkey
          EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.
    *     Unlock table
          CALL FUNCTION 'DEQUEUE_E_TABLEE'
            EXPORTING
              mode_rstable = 'E'
              tabname      = 'IFLOS'
              varkey       = lv_varkey.
    Or,
    As mentioned above create a lock object via transaction SE11.
    Go to transaction se11:
    --> Enter lock object name e.g EZ_IFLOS
    --> Click on create
    --> Enter description
    --> Click on tables tab
    --> Enter 'IFLOS' as table name
    --> select lock mode
    --. click on save and activate.
    2 function modules will be created as DEQUEUE_EZ_IFLOS and ENQUEUE_EZ_IFLOS .
    Regards.

  • Query on sap locks(ENQUEUE/DEQUEUE)

    Hi All,
    should the sap locks ENQUEUE/DEQUEUE need to be used  for all the updation/insertion  of records ino the table?
    Please confirm.Should this locking technique be used even for insertion of records into the table?
    Regards,
    Pra.

    Hi,
    Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
    SAP Provide three type of Lock objects. 
    - Read Lock(Shared Locked)
       protects read access to an object. The read lock allows other  transactions read access but not write access to 
       the locked area of  the table
    - Write Lock(exclusive lock)
       protects write access to an object. The write lock allows other  transactions neither read nor write access to 
        the locked area of the  table.
    - Enhanced write lock (exclusive lock without cumulating)
      works like a write lock except that the enhanced write lock also  protects from further accesses from the 
      same transaction.
    You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
    Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
    Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
    Technicaly:
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    Hope this will give a basic idea.

  • Issue with Enqueue / Dequeue

    We are working on a scenario where data is got into SAP through Web methods to create Sales orders.
    If we were to use Enqueue / Dequeue function while doing this would the web methods connection hold till the process is complete or would this time out in the middle?
    Is there any time out period for the connection with web methods, and if so how can it can be reset to an alternate value

    Hi,
    in ITS if you click on object, you can see the parmaters like
    ~TRANSACTION
    <b>~TIMEOUT</b>
    give more time for Time out parameter, that should solve the problem.
    Regards
    Vijay D T T.

  • 2515 Locking FMs to Enqueue/Dequeue/ Which one to use?

    I know this question is redundant, and has been responded to a million times....all differently. However, being their are 2,515 function modules to choose from, what are the best choices for locking and unlocking a custom database table?
    And, why are their 2,515 of them?
    I take that back....many many more!
        Thank-You
    Edited by: Tom Matys on Sep 23, 2011 12:15 PM

    Hi
    I think the best way is to create a new lock object for every custom tables.
    Every table should have an own lock object (so own fms to Enqueue/Dequeue) because it makes sure the same lock object is not used for another table at the same time.
    If the same lock object is used for many tables it can risk to find a certain record locked although nobody locks it really.
    Max

  • Finding Enqueue/Dequeue functions

    Hi,
    Is there an easy way to find the enqueue/dequeue lock functions for a specific table?
    I tried to find the enqueue/dequeue functions for table LIKP. It took me a while to find it, but it turns out the name is ENQUEUE_EVVBLKE.
    You'd think that the table name would be incorporated into the function name to make it easy to find?!
    Does anyone have a suggestion?
    Thx.
    Andy

    Yes bro most of the times the table or field names would be in the Function module name.
    Raghav

  • Material Enqueue & Dequeue

    I hav designed a new application for store i wish to enqueue & dequeue  materials which store persons are using.
    So how can this be done.Please guide once i open any material in my applcation its locked untill i come out my application.I wishto unclock as my processing is over.
    Pls guide whch FM to use.

    hi,
    Create a lock object from SE11 by giving the name
    lock object : ezlock_material.
    call the function module enqueu_ezlock  in  th loop to which to all the materials to lock.
    to lock the material
    call the function module dequeu_ezlock  in  th unloop to which to all the materials to unlock.
    to unlock the material.
    Regards,
    Madhavi

  • JMS Enqueue/Dequeue without using oracle.jms package

    Hi,
    Is it possible to successfully enqueue/dequeue messages from Oracle AQ using JMS which only uses the classes under javax.jms package, not the classes under oracle.jms package. If possible, can anybody please provide some step by step example.
    Thanks

    You can get the connection factory and the queue from an application server's jndi. Create a resource provider reference in oc4j and get them from there. Read the oc4j services guide, oems (jms) chapter for how to do that.
    I think if you are not using an application server you can also get the connection factory and queue from an ldap directory. check out Aq user guide for that.

  • Enqueue/Dequeue - Locking/Unlocking object

    Hi all,
    Please help me working with this enqueue/dequeue command. What I'm trying to do is to lock a Service Order. My requirement is to do a BDC for the Service Order Settlement Rule. So after hitting SAVE, a secondary process will be kicked off to perform my BDC for the same order. Now what Im doubting is that what if user re-enter the same Service Order again so quick. So my BDC program will not be performed immediately since it will be locked by the usser.
    So my idea is to lock it first while my BDC program is still running. Any help please? Thanks.

    Nope. Just 1 BDC -on my 2nd program only. Or to make it simple, I have modified ZXWOCU07 (IWO10009) to perform/kick off a call function( this is being triggered after hitting on SAVE). And this FM contains my checking if SO is now open for change then do the do the BDC.
    What I'm thinking is to lock first the SO  to block any user from accessing that SO, so it will do the BDC first. But I'm not yet familiar with the locking/unlocking of objects. Please help me on how to use enqueue or locking object.

  • What is AQ Enqueue/Dequeue

    Hi ,
    Can anybody explain me the concept of AQ Enqueue/Dequeue
    I google and read the document but no get clear picture
    Thanks in Advance

    Check this link.
    http://www.oracle-developer.net/display.php?id=319
    >
    I google and read the document but no get clear picture
    >
    Which document you read and what is not clear ? Try to be more precise and to the point in your questions. It will help you a lot in a getting quick and meaningful answers.
    thanks
    Raj

  • Enqueue/Dequeue in Oracle Aq Adapter

    Hi,
    I need to use enqueue/dequeue option in oracle aq adapter.
    However i need to know how the macthing of ids has to happen.
    Can any one provide me with an example with details steps?
    Thanks,
    Rosh

    The below url will provide information about AQ adapter,
    http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_aq.htm
    Example of AQ adapter.
    http://jamessmith73.wordpress.com/oracle-fusion-middleware/oracle-soa-bpm-11g-blogs/soa-10g/soa-hands-on-4/
    Thanks,
    Vijay

  • ENQUEUE DEQUEUE  FM's for updating VBAP table record

    HI all,
    I am updating records of vbap table. so i want to lock those records while am updatin them .
    which FM's should i use to update them ?

    Thanks for ur replies Himanshu and Sayed,
    I have already used these FM's. But i didnt feel like it is working. I went in debugging mode and executed ENQUEUE FM and the i went in VA02 transaction and for the same sales order i tried updaing the quantity and it is updated in the table.
    How come this has happened even though i have locked the table with the help of FM. ?
    I have used the FM something like this  :
        CALL FUNCTION 'ENQUEUE_E_TABLE'
         EXPORTING
           MODE_RSTABLE         = 'E'
           TABNAME              = 'VBAP'
           VARKEY               = 'VBELN'
          X_TABNAME            = ' '
          X_VARKEY             = ' '
          _SCOPE               = '2'
          _WAIT                = ' '
          _COLLECT             = ' '
         EXCEPTIONS
           FOREIGN_LOCK         = 1
           SYSTEM_FAILURE       = 2
           OTHERS               = 3
        IF sy-subrc EQ 0.
          UPDATE vbap FROM TABLE li_vbap.
         CALL DEQUEUE.
      ENDIF.

  • Lock specific number of records using ENQUEUE & DEQUEUE

    Hi,
    Is it possible to lock a group of records in R/3?
    My requirement is to update a set of records in VBAP table. I'm not using a BAPI here. Instead, I use a direct UPDATE.
    In this case, i know i can lock individual records by passing VBELN and POSNR. But what if i have to lock 10 records?
    Is this possible in any way?
    Thanks in advance.
    The current solution is:
    1) LOOP at ITAB
    2) LOCK each entry
    3) UPDATE VBAP for that entry
    4) UNLOCK the entry
    5) Endloop
    I thought this solution might work: (Assume 10 records are present in ITAB)
    1) LOOP at ITAB (Lock all 10 entries)
    2) LOCK that entry
    3) ENDLOOP
    4) UPDATE VBAP from ITAB (Updates all 10 entries in one databae access)
    5) LOOP at ITAB(Unlock all 10 entries)
    6) UNLOCK that entry
    7) ENDLOOP
    Any help will be appreciated.
    Tabraiz.

    Hello,
    Both of your solutions will work.
    With solution 1 there will always be only 1 enqueue object created, because you always enqueue, perform the update and dequeue.
    This means that in SM12 you will only see 1 enqueue entry on your user ID at the same time when your program runs.
    Solution 2 is also possible but there you will have different enqueue objects that will be created, because you enqueue everything, then perform the updates and then dequeue everything.
    In SM12 (lock entries) this will result in more enqueue records on your user ID the time your program runs.
    You have to pay attention that lock entries (SM12) are stored in a queue that is limited, so make sure with solution 2 that you don't overflow the enqueue queue ! ! !
    Via tcode RZ11 you can check parameter enque/table_size (Size of lock table).
    Check the parameter value but also its documentation and you will understand why you should limit the number of open lock records.
    Success.
    Wim Van den Wyngaert

  • How to use Enqueue/Dequeue to prevent concurrent write?

    Hi All,
    I have a report program that allows multiple users to save to the database tables.
    How do I incorporate ENQUEUE and DEQUEUE statements to prevent concurrent write to ensure data integrity? Are there sample codes that I could refer to?
    Thanks

    Hi,
    here screen get locked
    CALL FUNCTION 'ENQUEUE_EIQMEL'
                   EXPORTING
                        mandt            = sy-mandt
                        qmnum          = i_final_ap-qmnum  -Notification number
                   EXCEPTIONS
                        foreign_lock     = 1
                        system_failure = 2
                        OTHERS         = 3.
    *--Setting the  task "PE03" for notification  on screen
              CALL FUNCTION 'IQS4_ADD_DATA_NOTIFICATION'
                   EXPORTING
                        i_qmnum    = i_final_ap-qmnum
                        i_conv     = ' '
                        i_post     = c_x
                        i_commit   = c_x
                        i_wait     = c_x
                   TABLES
                        i_viqmsm_t = i_viqmsm_tmp
                        return     = i_return.
      CALL FUNCTION 'DEQUEUE_EIQMEL'
                   EXPORTING
                        mandt = sy-mandt
                        qmnum = i_final_ap-qmnum.

  • Enqueue/Dequeue is repeating the last queued element

    Hello
    I am trying to aquire data from a camera at 256fps in one for loop, enqueueing the data after each frame is acquired. A seperate while loop is supposed to dequeue each image and stream it to a binary file, acheiving the maximum imaging speed possible by seperating the data acquisition from the saving routine.
    However, this is not happening. The files are being queued and dequeued correctly UNTIL the acquisition for loop reaches completion (for example after 500 cycles) at which point the dequeue VI stops passing successive images to the binary write VI and just sends the last dequeued image over and over again until 500 images have been written to the binary file.     
    Can anyone suggest why this might be happening?
    Cheers 

    Hi Phoenix,
    The queue approach is still the best architecture for your
    application.  Instead of converting the image to an array, have you tried
    flattening each image to a string and passing this into the que?
    You can then un-flatten from the string in the non-deterministic loop.
    Hope this helps,
    John P
    John.P | Certified LabVIEW Architect | NI Alliance Member

Maybe you are looking for

  • I cannot synchronise IPod with contacts and calendars since I updated with iOS. 5.1.1.

    Depuis que j'ai fait une mise à jour avec iOS5.1.1 je ne peux plus synchroniser mes contacts et mon calendrier avec mon ordinateur. Est-ce quelqu'un connaîtrait le moyen de régler ce problème?

  • Oracle ODB Console will not start - Oracle 11.1g

    PC info: Windows XP Oracle new install: 11.1 g Listener is running. I can log-in to SQLPLUS from DOS as sysdba and run commands. But I can not start the Oracle Enterprise Manager session. I get the error " Can't establish connection to xx.xxx.xx.xxx:

  • Synchronization with Windows Live Mail 2011

    I'm not able to synchronize my Curve 3G with Windows Live Mail 2011. When I set up the Blackberry Desktop Manager program the only alternatives that are showned me to synchronise the contacts are Yahoo and Outlook Express, not Live Mail. What can I d

  • Error al ejecutar SQL plus y error ORA-03114

    Instali Oracle 9i 9.2 cliente sobre windows 98 para conectarme a la base Oracle 7.3.4. La instalacisn fue exitosa y la configuracion del Net tambiin results exitosa, sin embargo, al ejecutar el sql plus me envma un error y hace referencia a product_u

  • Logic Express won't open in Snow Leopard

    I recently upgraded to Snow Leopard. Now, when I try to open Logic Express 7, the program immediately quits, with the error message below. I uninstalled/reinstalled and the problem still happens. I have also checked for software updates and no luck.