Display only for table locks

Is there a way to set up the table locks in a display only format(other than sm12).

SM12 calls function ENQUEUE_READ, which in turn calls ENQUE_READ2, which in turn moves down below the ABAP surface into the sea of C when calling the kernel function C_ENQUEUE. Best you can do is probably to build something around the two first functions, if you manage to decode the raw data obtained by the functions. It shouldn't be too difficult; SM12 is fairly straightforward and creating a display program should be feasible.
Unfortunately, even ST05 doesn't yield a result, so it seems (to me at least) that the enqueued entries (locks) reside on the server level, outside of the realm we can reach using SQL...
Regards,
Trond

Similar Messages

  • VA01 Item category display only for specific order type

    Hi,
    I have a requirement to deactivate(display only) item category field in VA01 table item for certain order type . I tried the user exit  MV45AFZZ(USEREXIT_FIELD_MODIFICATION). This is working only if the table item has a value. i.e I could able to enter an item category first and then enter the material and quantity.
    So please suggest any alternative how to make the item category field(VBAP-PSTYV) column display only for centrain order type.
    Regards
    Aromal R

    Hi,
    Create a Custom Authorization Object so that you can control it for certain users.  2. Write implicit enhancement spot in the include TCS MV45AF0T_TCTRL_U_ERF_AUFTRAG_I,
    FORM TCTRL_U_ERF_AUFTRAG_INIT
    AUTHORITY-CHECK OBJECT 'ZITMCAT'
              ID 'ACTVT' FIELD '02'.
    IF SY-SUBRC NE 0.
    *    DATA: WA_COLS LIKE LINE OF TCTRL_U_ERF_AUFTRAG-COLS.
    LOOP AT   TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
       IF WA_COLS-SCREEN-NAME = 'VBAP-PSTYV'.
       WA_COLS-SCREEN-INPUT = 0.
       WA_COLS-SCREEN-OUTPUT = 1.
      MODIFY TCTRL_U_ERF_AUFTRAG-COLS FROM WA_COLS.
       ENDIF.
    ENDLOOP.
    ENDIF.
    Regards
    Aromal R

  • How to set Display Only for some records in CAT2 Worklist

    Hi,
    I have a requirement to modify an attributes for some records in the Worklist of CAT2.
    We have an external system where we book our time. Weekly we import data from that external system into CATSDB using BAPI for every single employee.
    We would like when the user wants to modify his time sheet to be able to add/modify all records except those which were imported from the external system. Which means that those records should be in Display only mode / grayed out / before release.
    Is there any user exit or BADI that could help to modify that attribute and that will be triggered before displaying the Worklist ?
    Please advise !
    Thanks,
    Stefan

    I've solved the problem.
    First I've added customer field in CI_CATSDB structure and when I am importing the data I am populating that field with 'X', which means that this is record from the external application.
    I've created enhancement implementation in Function group->CATS, screen->2003 MODULE->D2000_MODIFY_LOOP, subroutine->modify_d2000_loop where I am checking the field mentioned above if it is 'X' I am modifying the screnn-output = off.
    It works, thak you for your help.
    Regards,
    Stefan

  • Display only for Conditions tab in ME22N

    I have a situation where certain users need to modify PO's, but need to be restricted from modifying anything in the conditions tab.  Is there a way through authorization's to restrict modification to the conditions tab within ME22N without restricting functionality to anything else in ME22N?
    The same result is required for ME12, but ME12 contains condition authorization objects that can be set to Activity 03 resulting in a display of conditions.
    I have tried adding these authorizations to the authorization-check, with no functionality change.
    I have also tried removing the display prices (activity 09) from certain authorization objects and this hides the conditions tab, but it also hides prices.
    Modifying screen settings in SPRO for ME22N will not work as there are users that require modification of the conditions.
    I am trying to find a solution that doesn't involve creating a custom transaction to check for condition authorization objects.

    David,
    Check BADI definition (se18) ME_PURCHDOC_POSTED & Interface IF_EX_ME_PURCHDOC_POSTED. In that you have method posted. In that you have both the tables Old & the current. You can put a validation there & prevent users.
    Hope this helps.
    Bipin

  • Display only for conditions  in VF01

    I have a requirment where I want to make the condition tab in vf01 in display modem.using the user exit LV69AFZZ,All the conditions and prices are comming in displa mode,but still we can enter new condition which is not coming in display mode.How can i make the complete table in display mode

    In Tocde SE 80 select function group as V69A.
    go to subroutines select  userexit_field_modification.
    Write the code as below inside it.
    As you  have to do this for VF01 you need add a sy-tcode check before it.
    IF  ( screen-name = 'RV61A-SELKZ'
                         OR   screen-name = 'KOMV-KAWRT'
                         OR   screen-name = 'RV61A-AWEIN'
                         OR   screen-name = 'KOMV-KBETR'
                         OR   screen-name = 'RV61A-KOEIN'
                         OR   screen-name = 'KOMV-KPEIN'
                         OR   screen-name = 'KOMV-KMEIN'
                         OR   screen-name = 'KOMV-KWERT' ).
      screen-input = 0.
      Modify Screen.
    ENDIF.
    Edited by: Divakar Mamidi on Jun 29, 2009 3:52 PM

  • Zoom presentor display only for presentations

    I use the UA "zoom" function for all my work. I must give a presentation soon demonstrating a website. Is there a way to have the magnifier function activated on my (presentor) screen while rendering the projected display "normal" or without the zoom function for the benefit of the audience? Thanks for any help!

    http://support.apple.com/kb/PH11488
    You can set the zoom to ONLY follow your mouse (And adjust the size of the "zoom window" that follows it). I used to use this with Quick time Editing when I had a 13" iMac.

  • How to display Header for table in Script

    Dear All,
    In script i am displaying the data in tabular format, by using the
    function module write_form_lines. For this i have called multiple
    windows for each column. I am able to display the data,however
    don't know how to name this column, i.e the header for each column.
    (Sr_No,,Vendor Name,,Account Number,,Reference Code,,Amount ).
    Any help is appreciated.
    Thanks & Regards,
    Manju

    Hi Manju,
    Create a widow to display the header details(hard code the name of the columns). You have to  use main window for displaying the table data.Loop the internal table in driver program, inside the loop call the function write_form for printing the table contents.
    Thanks,
    Prabhakaran

  • Blocking Profit Center field in MM02 (making it display only)

    Hi,
    I have a query, We have blocked via authorizations all views in MM02 except for the "Sales: General/Plant" view, so now we need to know how to make the Profit Center field a display only so that we can assign a role for people who will change the Serial Number Profile field only using MM02.
    If MARC-PRCTR in OMS9 is set as display only for MM02 can it be possible to for the master data team to still have change access to for the Profit Center field.
    Your assistance is appreciated.
    Rendani

    Thanks Sarita for your input, my problem is nearly next to the solution state.
    Could you please tell me how I can make the field lock relevant, I don't have a lot of SAP experience so a detailed response will be welcome. Whether it also involves authorizations as well.
    Many thanks.
    Regards,
    Rendani

  • How to control the authorization as display only in ECC system?

    Hi all,
    I want to control the IT users' authorization as display only for each Authorization Object.
    As i know, there are 177 Item of field "ACTVT" in ECC system, But i'm not ture which the value can limited the authoirzation as display only.
    Im worry about IT users have not authorization for the work if just keep "03-display" in authorization object, I plan to remove below value of ACTVT:
    01-create, 02-change, 05-Lock,06-Delete,07-Activate, generate
    But i'm not sure whether should be removed for below values:
    52-Change application start
    60-Import
    61-Export
    62-Create automatic Ledger
    63-Activate
    64-Generate
    70-Administer
    75-Remove
    C3-Maintenance of manual auth.
    C4-Develope Payment Card
    FP-Change customer field selectn
    Could anyone can tell me, Which values of ACTVT can limited the authorization as display only. at the same time, it havent an effect on work of IT users.

    Yep, I agree with Jurjen. It is not only limited to ACTVT, but rather fields of other objects as well which are "action" or "activity" related.
    I would start the other way around - give them '03' only and investigate any transaction specific claims that it is not enough. There will be a few...
    Cheers,
    Julius

  • Make Select rows and columns as read only in Table Control

    Hi All,
    I would like to know how to make certain cells in a Table Control as display only.
    Table control should look like-(Those in bold are read only or in display mode)
    <b>Name1            Idno1 </b>         Address1
    <b>Name2            Idno2</b>          Address2
    <b>Name3            Idno3  </b>        Address3
    <b>Name4            Idno4</b>          Address4
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    My table control should display all the above fields the way it is above of which first two colums and 4 rows should be read only,and the rest of the empty rows in the TC should be in change mode.i.e it must have provision to add new rows but not change the first two columns of existing rows.
    In short I am looking at solution to hide particular no of rows and columns and <b>not the entire column.</b>

    In the PBO of the table control loop. just write these statements
    NAME and IDNO considering the fields on the screen.
    and WA_TAB is the table work area being passed to the table control to display the rows.
    if not WA_TAB-NAME is initial and not WA_TAB-IDNO is initial.
    loop at screen.
    if screen-name = 'NAME' or
       screen-name = 'IDNO'.
    screen-input = <b>0</b>.
    modify screen.
    endif.
    endloop.
    endif.
    which means that the fields are disabled only if NAME and IDNO are not initial.
    Regards
    - Gopi

  • How to make 'Overall Limit' field as display only in ME22/ME22N

    Hi,
    I want to make the 'Overall Limit' field as display only in transation ME22/ME22N (only for Service Items).
    I can make the field display only for ALL Service Items by going to:
    SPRO u2013 IMG - Material Management - External Services Management - Define Screen Layout
    and making the 'Overall Limit' display only for PT1 (Blanket Items). But this also stops any entry into this field even for creation of Purchase Orders! When I try the same thing for ME22 (Change Purchase Order) it does not work.

    Hi
    You can make it greyed out like this:
    Go to materials management -> external service management -> define screen layout -> copy field selection key ME22 -> enter new key as ME22N -> choose category of field selection to 2 -> click on value limit -> make overall limit as display.
    Then for Tcode ME22N, this field will be greyed out.
    Thanks

  • Studio Display 17" for coloring??

    Hi
    Could anyone help me? I'm doing video editing, and planning to get a color correct monitor.. But they are really expensive, i cant afford them. And i found a 17" studio disp for cheap. And what i'm thinking about is buying that, and using an other normal eg Samsung 24" too. The Apple Studio display only for checking the color, and the other for editing (as Apple color needs 1920/1280 display..)
    Do you think its a workin idea? Can I connect the old studio display nvidia gef9400? and will leopard use it well? is it worth?
    thank you guys!

    Yes, it is harmless. The CRT itself has the potential to act as a high voltage capacitor, but the charge bleeds off eventually, in no more than a few days. The charge can be built up again by static electricity. For example, if you took a wool sweater and vigorously rubbed the glass screen, the CRT bottle capactior could again find a high voltage charge on it. But I am sure you don't plan on doing that.

  • Table lock in Batch jobs

    There is a program which runs in batch mode every 30 mins. After successful execution, program updates last run time stamp in a Z table. For each sales org we set one batch job, like this there are several jobs running in same time & some jobs are not updating time stamp. My gut feeling is reason could be table lock. We canu2019t ask batch team to schedule  all jobs in sequential manner with in 30 mins duration because of huge number of jobs.
    How we can overcome this problem.. Check for table lock using ENQUEUE_E_TABLES and wait for some time is feasible solution? Can some one guide me in this regard please?
    Thanks in advance.

    Hi Perez C,
    you may try ENQUEUE and skip for reprocessing, you can also set WAIT = 'X' in the  ENQUEUE call. This will wait a pre-set time (default I think like 3 seconds) trying to lock the object. In most cases it helps. But if you can not lock successfully, you should write it to application log at least.
    Regards,
    Clemens

  • Table cntrol field to be display/Change only For each record

    Hi all,
    How to set a particular Field in table control either as display only or
    change only for <b>each row</b> based on certain condition.I need to set this property for each record in table control not for the entire coloumn?.I know the procedure for setting up an entire coloumn in table control either as diplay or change only using <b>Loop at screen</b> statement.
    Conditions:
    If Material is batch managed:
    itab-batch field has to be <b>Display only</b> mode.
    if material is not batch managed:
    itab-batch field has to be <b>change mode</b>.
    <b>O/p of Table Control :</b>
    Material     Batch
    1000         Display only
    2000        Change only
    8000        Change only
    3500        Display only
    3600        Display only

    Hi Ravi,
              Thanks for your reply.I have put the code as u said. It is modifying the whole coloumn insted of  modifying Current row of the coloumn.
    I have tried to modify the screen property using  Table control attributes (TC-COLS).The following commented code is that logic.Even that also doing the same thing.Can yoy please tell me how to do it.
    MODULE tc_get_lines OUTPUT.
    LOOP AT SCREEN.
        IF screen-name = 'X_ZPINV-CHARG'.
          IF fg_batch = ' '.
            screen-input = 0.
          ELSE.
            screen-input = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    LOOP AT tc-cols INTO tc_wa
      WHERE screen-name = 'X_ZPINV-CHARG'.
       IF x_zpinv-matnr IS NOT INITIAL.
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
             input  = x_zpinv-matnr
           IMPORTING
             output = v_matnr.
         SELECT SINGLE * FROM marc WHERE matnr = v_matnr
         AND werks = w_plant.
         IF marc-xchar IS INITIAL.
           tc_wa-screen-input = 0.
         ELSE.
           tc_wa-screen-input = 1.
         ENDIF.
         MODIFY tc-cols FROM tc_wa INDEX sy-tabix."    transporting screen-input
       ENDIF.
    ENDLOOP.
    ENDMODULE.                    "TC_GET_LINES OUTPUT

  • Lock the table by user with grant only for select

    Hallo.
    It is possible that the user has rights only for SELECT, do not lock the table? Now, where do "SELECT * FROM table FOR UPDATE", does not make the change, but it locks the entire table, and another user to get into it.
    Thanks

    And here is the "evidence" ;)
    SQL> select * from v$version ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> create user u1 identified by u1 ;
    User created.
    SQL> grant connect to u1 ;
    Grant succeeded.
    SQL> connect hr/hr
    Connected.
    SQL> create or replace view v_t1 as select username, user_id, created from t1 group by username, use
    r_id, created with read only ;
    View created.
    SQL> grant select on v_t1 to u1 ;
    Grant succeeded.
    SQL> connect u1/u1
    Connected.
    SQL> select * from hr.v_t1 where rownum = 1 for update ;
    select * from hr.v_t1 where rownum = 1 for update
    ERROR at line 1:
    ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    SQL> select * from hr.v_t1 where rownum = 1
      2  ;
    USERNAME                          USER_ID CREATED
    AK                                     36 08-MAY-00

Maybe you are looking for