Marking a table as readonly conditionally

Hi,
I have a region with 2 fields. Out of which one is a select list and one text box. This is an MRU.
The requirement is when the data review is done, the region should be freezed.
So I should show the region with fields as uneditable.
I have seen some examples on having the style attribute set on individual elements to set it as readonly.
But I would like to know if I can set it at the table level
i.e. something like <table ... style="readonly:readonly;">
I have tried this and it doesnt work.
My question is:
1. Can I set the entire region or table as readonly?
2. Or should I set individual fields as readonly only?
Thanks.

The simplest approach would be to create another region with a standard report rather than a tabular form and display one region or the other conditionally.

Similar Messages

  • Marking Z table entry for Deletion

    Hi All,
    Based on some condition in my program,
    I am entrying one entry in Custom Z table.
    Also for some other condition,
    I need to mark the Table entry for deletion only, but it should not Delete.
    So pls guide me for:
    1) How to make Custom table entry as Mark for Deletion?
    2) When I put Select Query on table, how  can I write that do not Select those
        Records which are marked for  Deletion ?
    Rishi

    Hi Rishi,
    Create a new field of type 'CDXFELD' (Data Type) in the Custom Z table. Now populate that new field with 'X' if it is marked for deletion. Then you can select all those entries which that field 'CDXFELD' = Space.
    i.e., if the field 'CDXFELD' = 'X' then it is marked for deletion else not.
    Select *
      from Zcustom talbe
      in to IT_TAB
      where  CDXFELD = space.
    Hope this will help..
    Regards,
    Ravi..

  • Table name for condition type

    Hi,
    Could any one please tell me in which table name the Condition type values are saved and how to retrieve it.
    Reg,
    Ashok

    Hi Blue,
    I checked with SE16 by giving KONP table name. But its showing wrong value.
    The condition type value is 14.000but its showing the value for 7.60.
    Reg,
    Ashok

  • Detecting rows marked at table control

    Hello Experts,
    I need to display a message error when trying to delete operations in IW32.
    For that purpose, I am validating the value of a field at user exit ZXBS1U01.
    The problem is that I cant't know the rows I've marked in table control for deleting.
    There is a table (LST), with the number of operations and a field FLG_MARK but this appears with an X (delete), after that user exit.
    There is another structure ( RC27X ) with the index for deleting, but the problem is that it is not available for the last row at the user exit.
    I tried to search for the table control, but I cant find it neither the rows I've marked at ZXBS1U01.
    Can any one help me please ?
    Thanks a lot,
    Lilian.
    CONSTANTS: 
               c_loea(4) VALUE 'LOEA',
               c_valor(22) VALUE '(SAPLCOIH)CAUFVD-AUFNR',
               c_valor4(25) VALUE '(SAPLCODT)LST[]',
               c_valor5(25) VALUE '(SAPLCOVG)RC27X'.
    FIELD-SYMBOLS:
                   <fs_valor> TYPE caufvd-aufnr,
                   <fs_valor4> TYPE STANDARD TABLE,
                   <fs_valor5> TYPE rc27x.
    DATA BEGIN OF t_lst OCCURS 0.
            INCLUDE STRUCTURE rclst.
    DATA END OF t_lst.
    IF sy-tcode = c_iw32 AND sy-ucomm = c_loea AND sy-dynnr = 3010.
      ASSIGN (c_valor4) TO <fs_valor4>.
      IF sy-subrc = 0.
        t_lst[] = <fs_valor4>[].
        ASSIGN (c_valor5) TO <fs_valor5>.
        IF sy-subrc = 0 AND <fs_valor5>-index_act IS NOT INITIAL.
          READ TABLE t_lst INDEX <fs_valor5>-index_act.
          IF sy-subrc = 0.
        validation    *****

    Did you tried Implicit enhancement? From ECC 6.0 version we have Implicit and Explicit, try to find any implicit enhancment after choosing delete operation and write the code in that.

  • How to read an interal table with dynamic conditions

    Dear all,
       I have an internal table IN_TAB and I want to read a record of the table with dynamic condition as below.
    a) IN_TAB  structure : |      ColA     |      Col B     | Col C        | Col D        |
    b) Requirement: there are four condtions, and reading data from IN_TAB (not use loop) based on these conditions. If one condition is empty, it'll be ommited.
    Ex: |      ColA     |      Col B     |    Col C      |    ColD      |
    x1
    b
    c
    d
    x1
    x2
    x3
    x1
    x2
    x3
    x4
    y1
    y2
    y3
    y4
    The conditons consist of ColA = ' x1' , ColB = 'x2' , ColC = '', ColD = ''
    The result will be:
    x1
    x2
    x3
    x1
    x2
    x3
    x4
    Could you please help to solve this problem.
    Thanks and regards,
    Nguyen Huy.

    Hi Nabheet,
      Thanks for your solution, It solved my problem. I also suggest the another way to obtain this.
    - The internal table have to declare with header line, note that the internal table mustn't has x type in the structure.
    - Assign all conditions into header line wether condtion is empty or not.
    - Use statement READ TABLE IN_TAB.
    Ex:
       DATA: BEGIN OF RT OCCURS 0,
            MATNR(18) TYPE C,
            ERNAM(12) TYPE C,
            BISMT(18) TYPE C,
            LAEDA TYPE MARA-LAEDA,
          END OF RT .
    SELECT
      MATNR
      ERNAM
      BISMT
      LAEDA
      UP TO 10 ROWS
      INTO CORRESPONDING FIELDS OF TABLE RT
      FROM MARA.
    RT-MATNR = '7F01113'.
    RT-LAEDA = '20111005'.
    READ TABLE RT.
    @ponvignesh : thanks for your reply, I thinks that the Nabheet's solution is the good way.
    Kindly regards,
    Nguyen Huy

  • To count number of records in an internal table for a condition

    Hello All,
            I want to count number of records in an internal table for a condition.
    For e.g. -- I have one internal table IT which having fields F1, F2, F3, F4, F5.
                     Now, I want number of records in itnternal table IT where F1 = 'ABC'.
    Is it possible to do..?? If yes, then how.??
    Thanks in advance...!!
    Regards,
    Poonam.

    Hi,
    If you mean an internal table, there are a few ways to do this.
    1 One would be to loop over the table with a WHERE clause and increment a counter.
    data: lv_counter type i.
    clear lv_counter.
    loop at itab where fld1 = 'ABC'.
    lv_counter = lv_counter + 1.
    endloop.
    lv_counter now has the number of rows per the condiction.
    2  Well, you may want to try this as well, and compare to the LOOP way. Not sure what kind of overhead you may get doing this way. Here ITAB is our main internal table, and ITAB_TMP is a copy of it. Again I think there may be some overhead in doing the copy. Next, delete out all records which are the reverse of your condition. Then whatever is left is the rows that you want to count. Then simply do a LINES operator on the internal table, passing the number of lines to LV_COUNT.
    data: itab type table of ttab.
    data: itab_tmp type table of ttab.
    itab_tmp[] = itab[].
    delete table itab_tmp where fld1  'ABC'.
    lv_count = lines( itab_tmp ).
    Thanks & Regards,
    ShreeMohan

  • Query on Creating and Populating I$ table on different condition

    Hi,
    I have a query on creating and populating I$ table on different condition.In which condition the I$ table is created??And These condition are mentioned below:
    1)*source and staging area* are on same server(i.e target is on another server)
    2)*staging area and Target* are on same server(i.e source is on another server)
    3)*source,staging area and Target* are on *3 different* server
    4)source,staging area and Target are on same server
    Thanks

    I am not very much clear about your question. Still trying my best to clear it out.
    In your all above requirement I$ table will be created.
    If staging same as target ( One database,one user) then all temp tables will be created under this user
    If staging is different than target ( One database,two user (A,B)) then all temp tables will be created under this user A (lets consider) and data will be inserted to the target table that is present in user B
    If staging is different than target ( Two database,two user (A1,A2), not recommended architecture) then all temp tables will be created under this user A1 (database A1) and data will be inserted to the target table that is present in user A2 (database A2)
    If source,staging,target will under one database then No LKM is required,IKM is sufficient to load the data into target. Specifically for this you can see one example given by Craig.
    http://s3.amazonaws.com/Ora/ODI-Simple_SELECT_and_INSERT-interface.swf
    Thanks.

  • How to display smartform table content in condition basis

    Hi experts
         In smartform, can i display the content of table in a condition basis.
         For example am displaying 4 rows in a page.
         If the rows exists more than 4, remaining rows i want to display in next page.
         Is it possible, if so, how to do, pls anyone help me on this.
    Thanks in advance.
    Regards
    Rajaram

    hi,
    use the command which is present in the flowlogic.
    In that tick the <b>Go to new page</b> check box and write the page no. into the i/o bos besides it and write the condition whatever it is.
    thanks
    Dharmishta

  • Nested table in "IN CONDITION"

    Hi all,
    I have this code;
    declare
    type vt_list is table of varchar2(500);
    b vt_list;
    c varchar2(50);
    begin
    b:=vt_list('alin','dan','john');
    select contract_id into c from cont_cust where 'alin' in (select * from table(cast(b as nv_list))) and rownum<2;
    dbms_output.put_line(c);
    end;
    it raises an error.
    I want to use a nested table in "IN" condition in a select clause: select * from table where tab in nested_table;
    I knew something about table and cast...but it doesn' work here.
    thanks.

    this is the code ai use:
    declare
    type vt_list is table of varchar2(500);
    b vt_list;
    c varchar2(50);
    begin
    b:=vt_list('alin','dan','john');
    select contract_id into c from cont_cust where 'alin' in (select * from table(cast(b as nv_list))) and rownum<2;
    dbms_output.put_line(c);
    end;
    I get:
    Compilation errors for PROCEDURE SYSADM.AAA
    Error: PLS-00642: local collection types not allowed in SQL statements
    Line: 7
    Text: select contract_id into c from cont_cust where 'alin' in (select * from table(cast(b as nv_list))) and rownum<2;
    Error: PL/SQL: ORA-00932: inconsistent datatypes: expected - got CHAR
    Line: 7
    Text: select contract_id into c from cont_cust where 'alin' in (select * from table(cast(b as nv_list))) and rownum<2;
    Error: PL/SQL: SQL Statement ignored
    Line: 7
    Text: select contract_id into c from cont_cust where 'alin' in (select * from table(cast(b as nv_list))) and rownum<2;

  • Where  can i find table for field condition rating

    hi all ,
    where  can i find table for field condition rating& its decription, please help me
    thanks in advance to all

    Hi Jurgen
    thanks for the Quick reply and what shoud be the table for the field
    gopal

  • Extracting from table based on conditions from two internal tables

    Hi,
         i to have select few records from  a table based on conditions from two different internal tables. How can I achieve this.?
    ex:
          select objid from HRVPAD25 into table t_pad25
                                                    where PLVAR = 01
                                                                OTYPE = E
                                                                OBJID = itab1-sobid
                                                                sobid = itab2-pernr.
    How can this be written? can i use "for all entries..." addition with 2 tables?

    Hi Maansi_SAP,
    you can use exactly one internal table in the FOR ALL ENTRIES clause. Consider this alternative:
    data:
      itab_sobid_hash like itab1 with unique key sobid,
      ls_pad25  like line of  t_pad25.
    sort itab1.
    delete adjacend duplicates from itab1 comparing sobid.
    itab_sobid_hash = itab1.
    select objid
      into ls_pad25
      from HRVPAD25
      for all entries in itab2
      where PLVAR = '01'
        and OTYPE = E
        and sobid = itab2-pernr..
    read table itab_sobid_hash with table key sobid = ls_pad25-objid.
    check sy-subrc = 0.
    append ls_pad25 to t_pad25.
    endselect.
    You may decide if itab1 or itab2 is better used as hashed table. Make a performance test.
    The critics will tell you that SELECT ... ENDSELECT is not performant. That was very true, back in last milleniums's 90ies
    Regards,
    Clemens

  • Deleting rows from one table while filter condition lies into another table

    Hi All,
    I'm facing a problem deleting a row from a table where the condition lies in other table. To ealaborate the scenario further let's say I have two table T1 (transaction table) and T2 (Master Table). I want to delete a record from table T1 by checking some conditions lies in table T2.
    I tried with the below query but this query deleting records from both the table.
    DELETE FROM ( SELECT * FROM T1 top INNER JOIN T2 tp
    ON top.TID = tp.TID
    WHERE top.DEAL_SITE_ID = inputparameter1
    AND (TP.SEGMENT <>inputparameter2 OR tp.segment is not null));
    Here the record is getting deleted from both the tables but I don't want to delete data from my master table i.e table T2.
    Any help would be highly appreciated. Thanks in advance.
    Regards,
    Subhadeep

    SQL> select *
      2   from the_table;
    X          Y
    AA         a
    BB         a
    CC         a
    AA         b
    DD         b
    SQL> select *
      2   from the_table_2;
    X          Y
    AA         a
    BB         a
    CC         a
    SQL>  delete from
      2  (
      3  select *
      4  from the_table  t1 inner join the_table_2 t2
      5  on  t1.x = t2.x
      6  and t1.y = t2.y);
    3 rows deleted.
    SQL> select *
      2   from the_table;
    X          Y
    AA         b
    DD         b
    SQL> select *
      2   from the_table_2;
    X          Y
    AA         a
    BB         a
    CC         a

  • Enhancement: readonly condition - authorization scheme

    I don't know where to file a enhancment request, so I file it here. I have authorization scheme for users, that are not allowed to edit anything. I use it successfully on the buttons, that they should not see (like SAVE, DELETE etc).
    But currently I have to rewrite the logic into item's Readonly condition field every time a form item has to be readonly for them. It would be covienient, if I could select condition type to be Authorization Scheme and into Expression 1 text area write the name of the scheme...

    Kaja,
    We're working on enhancements like this to make the read-only version of a page easier to create declaratively. Thanks for your notes.
    Scott

  • Sales Order Unable to Use New Condition Tables for Tax Condition Type

    Dear All,
    I am currently working on SAP R/3 4.0. I have a new requirement for my tax where I need to create new condition tables other than the 4 standard SAP tables which are Customer/Material, Division/Customer, Departure Country/Destination Country, Domestic Taxes and Export Taxes. My new tables consists of Departure Country/Destination Country/Shipping Point/Tax Code. The requirement is that the tax code is based on the chosen destination country and shipping point. The problem I am facing now is that no matter what types of table I create or even I generate with reference to the standard table, the access sequence will only refer to the 4 standard SAP tables above. Even if I put my own table in the highest priority for the access sequence, the same thing happens. My sales order will only pick up date from the standard table.
    I wonder if anyone encountered the same problem as me.
    Kindly advise.
    Thank you.
    Regards,
    Yvonne

    Hi
    Yvonne
    I suggest fist check a simple thing ,whether u have successfully determined shipping point for each line item ,it is possible that just adding a line item will not trigger shipping point determination . So after u update the shipping point on line level u can rerun pricing and check agian if u r getting it .
    Secondly for tax purposes I suggest   Try to have Customer and material tax classification approach  this allows to u have long term flexibiliy and also reduces your maintenance activity . As if u change or add number of shipping points and business changes using the sequence of shipping point ,the logic of just using shipping point will not work.
    In Tax classification u cna add new condition table for each new tax category and use it in different access sequences.
    This information can be passed on to FI using Different Tax code for Different combination.
    I hope this helps
    Regards
    Mandar

  • How can i mark a Table Row in WebDynpro ?

    Hi at all,
    i have a problem in my WebDynpro View
    In my WebDynpro-View there is a Table (Information about Invoice documents, around 50 lines) and the User can select all this rows by click with a mouse.
    Another way for selecting rows is on the Top of the Table (left side) there is a Context-Menü, where the User can click by mouse "Select all rows". For this i have created a Action "onSelect" and can select all Elements from the Table.
    But the main problem here is, that i cant "mark" the rows in the Table, the User can't see, that all rows is marked!
    (Example "Screenshot" of my description is attached)
    How can i solve this problem?
    With best thanks
    Ersin

    Hi Ersin,
    To select all records for processing in your WebDynpro table , the table node property Initialize Lead Selection drop down should be marked no. also Cardinality Property must be 0..N & Selection 0...N.
    If multiple selections can be made in the Table, that is, if selectionMode = multi or multiNoLead, or ifselectionMode=auto and dataSource has selection cardinality 0..n or 1..n, the user can select or deselect rows using the menu. If the user chooses Select All , the lead selection stays. If no lead selection is set, no lead selection can be set when Select All is chosen. If user chooses Deselect All , the lead selection is deleted too.You can find an example in the system in component WDR_TEST_TABLE under Selection.
    Best Regards
    Priyesh Shah

Maybe you are looking for