How to grey out one single column in a table control of TPMOE

Hi Experts,
Any body please tell me how to greyout a single column in a table control of TPMOE.
Help needed ASAP.
Thanks,
sreenivas.

lr_result      TYPE REF TO if_bol_bo_property_access
lr_iterator TYPE REF TO if_bol_bo_col_iterator
      CALL METHOD lr_iterator->get_by_index
        EXPORTING
          iv_index  = index
        RECEIVING
          rv_result = lr_result.
      CALL METHOD lr_result->get_property_as_value
        EXPORTING
          iv_attr_name = 'TRANSFER_STATUS'
        IMPORTING
          ev_result    = lv_status.
if  lv_status = x and component = cost_category.
rv_disabled = true.
else.
call super.
endif.
INDEX will have the row number.
Frame ur logic based on this.

Similar Messages

  • How to Grey out cost center column in me22n screen(Account assignment tab)

    Hi All,
    I have tried many ways to do grey  out cost center column in account assignment tab of ME22N.
    i have created implementation for this class and method. 
    Class:CL_TABLE_VIEW_MM_2
    Method:PBO_TC_LINE
    Below is the my code snippet.Kindly let me know any suggestions.
    data:  l_tc type char100.
    data:  l_tabix type i.
         l_tc = '(SAPLMEACCTVI)DYN_1000TC-COLS'.
    FIELD-SYMBOLS:<fs_tcdata> type any TABLE,
                    <fs_wa> type any ,
                    <fs_lwa> type any,
                    <fs_screen> type any,
                    <fs_input> type any,
                    <fs_active> type any,
                    <fs_output> type any.
    *data:fs_wa type SCXTAB_COLUMN_IT.
       ASSIGN (l_tc) TO <fs_tcdata>.
       LOOP AT <fs_tcdata> ASSIGNING <fs_wa>.
          l_tabix = sy-tabix.
        ASSIGN COMPONENT 'INVISIBLE' OF STRUCTURE <fs_wa> TO <fs_lwa>.
           ASSIGN COMPONENT 'SCREEN-NAME' OF STRUCTURE <fs_wa> TO <fs_screen>.
           ASSIGN COMPONENT 'SCREEN-INPUT' OF STRUCTURE <fs_wa> TO <fs_input>.
           ASSIGN COMPONENT 'SCREEN-ACTIVE' OF STRUCTURE <fs_wa> TO <fs_active>.
           ASSIGN COMPONENT 'SCREEN-OUTPUT' OF STRUCTURE <fs_wa> TO <fs_output>.
           IF <fs_lwa> = space.
             CASE <fs_screen>.
                WHEN 'MEACCT1000-KOSTL'.
                 <fs_input>     = 0.
                 ENDCASE.
                 endif.
                 ENDLOOP.
    Regards,
    Hiriyappa

    As I can't see any complicated scenario in your requirement. So I suggest you can achieve this by simple standard configuration.
    Go to OME9, double click on the Account assignment category and make the field as Display.
    Then check in your PO.
    But I doubt, your requirement can not be simple like that.
    So either you didn't know the settings or your requirement is different or you are just trying to learn that can it be possible via coding.
    Let us know the appropriate reason for set it as display.

  • How to find out the NULL columns in the table?

    Hi,
    Please provide the query to find the null columns in the table. Here, all rows in the table have same column as null. It won't change.
    Table
    c1 c2 c3 c4
    X C 10
    T D 20
    I wanna find out as C2 is the nullable column.
    Thanks in advance !!
    Regards,
    Vissu....

    Below code might be solution for finding NULL valued in columns in a table and if it is solution .kindly give me points for the same.
    declare
    cursor col_cur is
    select column_name
    from user_tab_cols -- all_tables can also be used in case the table is present in own schema
    where table_name = 'TABLE_NAME'; --provide the TABLE_NAME  
    stmt varchar2(1000):= '';
    v_count number;
    count_null number;
    begin
    execute immediate 'select count(*) from TABLE_NAME' into v_count; --provide the TABLE_NAME  
    for rec in col_cur loop
    execute immediate 'select count(*) from TABLE_NAME' where --provide the TABLE_NAME  
    '||rec.column_name||' IS NULL' into count_null;
    if count_null = v_count then
    stmt :=stmt|| rec.column_name ||chr(13);
    end if;
    end loop;
    dbms_output.put_line(stmt);
    end ;

  • How to find out the selected line in the table control

    Hi Guys,
    i have a requirement like this. i have table control and the internal table for that table control as IT_CASE. this internal table i declared as CHECKBX, MATNR, QUANTITY. but when i am enter the values in the table control i am getting the values in MATNR and QUANTITY in the that internal table IT_CASE. but when iam selecting that that line iam not getting CHECKBOX as 'X' in that internal table IT_CASE. i declared the table control as CAS_CONTROL and in that i have given the "w/selcolum" property as IT_CASE-CHECKBOX. now i want to fill that CHECKBOX as 'X' inthat internal table IT_CASE whatever the lines we are selecting only for those lines i want to fill up as 'X' in that internal table.
    Can you please suggest any one reg this.
    Thanks in advance
    Rahul

    Hello body,
    You can give a name such as 'SEL' in  w/selcol and declare SEL as char1. Then follow the coading.
    in TOP.
    data: sel type c.
    PROCESS AFTER INPUT.
    user_command_0011.
    loop at <Your internal table>.
    module get_data.
    endloop.
    Inside Module get_data.
        if sy-ucomm = <Your Fcode>
        if sel = 'X'.
           <Your internal table>-<Field for checkbox> = 'X'.
          append <Your internal table>.
        endif.
      endif.
    I think your issue is resolved.
    Regards.
    S Mahanta.

  • I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?

    I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?

    Thanks for your help - your suggestion worked beautifully.Dennis Hood
          From: 99jon <[email protected]>
    To: Dennis Hood <[email protected]>
    Sent: Thursday, 15 January 2015, 15:20
    Subject:  I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?
    I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?
    created by 99jon in Photoshop Elements - View the full discussionTry re-setting the prefs.Go to: Edit >> Preferences >> General (Photoshop Elements menu on Mac)Click the button Reset Preferences on next Launch If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7099161#7099161 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7099161#7099161 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop Elements by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How to concatenate two colums into one single column

    I need some ideas to concatenate two different columns into one single column using a set of distinct values.
    For Example,
    Customer Product Number
    xyz A 1
    xyz B 2
    xyz B 1
    AAA C 7
    AAA A 1
    The result should look like this,
    Customer Value
    xyz A1 B2 B1
    AAA C7 A1
    How would I group this into once value ?
    Thanks in advance ...

    Tom's discussion of writing your own aggregate routines
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2196162600402
    starts off with a link to the 8i alternatives
    "see
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:229614022562
    for 8i methods (not aggregates)"
    Unforutnately, it's a lot more work in 8i.
    Justin

  • SQL*Loader - How to combine Flat File 3 columns and put into one single column

    Receive a flat file delimited by comma. Want to combine Flat File last 3 columns and put into one single column(Table).
    e.g.
    Flat File
    100,239,30,20,30
    While inserting into table want to combine last 3 columns and insert into invoice number column.
    302030

    It is not possible to combine the last 3 columns as those columns are seperated by commas and in the SQL Loader control file you must ve specified COMMA as an delimiter. So u better have all the columns in the table plus add one more column which holds the concatenation of the 3 columns.
    Vijay

  • Disable MENU list (grey-out one of Menu List)

    Hi Experts,
    I want to disable disable/grey-out one of the Menu-list
    Ex:
    'Document' is a Menu
    'Display' 'Change' & 'Exit' are 3 lists in 'Document' Menu
    And I need to grey-out  'Change'
    Thanks in Advance.

    Hi Manoj,
    I think EXCLUDING addition with SET PF_STATUS is used in pushbuttons for toolbar.
    Please tell me how to grey-out/disable an ITEM from MENU LIST.
    Ex.
    FILE is menu
    -NEW
    -OPEN
    -SAVE are 3 items in FILE menu
    and I want to grey-out OPEN item.
    Regards,

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • How to find out the selected column in Table Control

    Hi all,
          How to find out the selected column in Table Control?
    Thanks & Regards,
    YJR

    Hi,
    Let your table control name in Screen painter be TC1.
    READ TABLE TC1-COLS INTO WA_COLS (some wok area)
                 WITH KEY SELECTED = 'X'.
            IF SY-SUBRC = 0.
              CLEAR: W_DUMMY, W_COL_NAME.
              SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
                                                   W_COL_NAME.
            endif.
    W_COL_NAME gives you the column name.
    Hope it helps.
    cheers
    sharmistha

  • How to grey out Intel Graphic Media for local users?

    does anyone know how to grey out the options to stop local users changing graphics options from Intel media graphics for Mobile?
    As well if anyone know what is different in BIOS updates, any option to cancel booting devices (not only change order)

    Hi
    Sorry but something like this is not known to me. You can disable a lot of different functions but display properties and settings are always available.
    BTW: I do not see some problem there is someone change resolution or whatever if the resolution is high and symbols to small.
    As far as I know it is not possible to cancel booting devices.

  • How to Grey out the field "tracking number" during change mode in the order

    HI Expert,
    How to grey out the Tracking number (AFVGD-BEDNR) at Order -> Operation tab -> external tab ->tracking number.
    during creation IW31 = not grey out and allow entry.
    for change mode IW32 = grey out
    if i set grey out at config OIOPD, it will grey out even during creation mode.
    Please advise
    Thanks
    Regards

    Hi
    I think Using field selection it is not possible to make as display ,kindly check with screen or transaction variant -SHD0
    regards
    thyagarajan

  • Playing multiple stereo channels out one single mono channel tia sal22

    Greetings All
    I have a vi which creates multiple stereo audio signals
    in labview 8.6.1 and I would like to play all of the stereo channels out one single Mono channel
    is this possible?  I tried setting all the device ID's to the same thing but a lot of clicks and pops occurred.  Basically I'm trying to play and mix all the signals out one mono channel at the same time.
    Please note I would like to have each signal that is created played over
    the mono channel at the same time.
    tia sal22
    Solved!
    Go to Solution.
    Attachments:
    lvt_audio_realtime-out left right device ID test onw while loop.vi ‏69 KB
    stereo_to_mono.png ‏63 KB

    sal22 wrote:
    Thanks but which options allows me to do this
    tia sal22
     Just add the arrays if they have the same length. Use the standard add function (like in 2+2=4). Then arrays are added each index is added together
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to find out one directory in unix

    How to find out one directory(Ex-abc dirctory) in linux??
    I am in home i dont know the location of that directory can give me some command to find the path of the directory ??
    I am new in linux ??
    Thanks advancly

    You may want to consider using wildcard and "-iname" which is case insensitive.
    find / -iname *ex-abc* -type dTo find files and directories you can also use the locate command, which uses a database to find stuff, after indexing the system, and hence is faster than a regular find:
    locate -i ex-abc... provided the database has been created and is up2date.
    sudo updatedbPls see "man locate" and "man find" for more options
    Edited by: Dude on Dec 1, 2011 6:24 AM

Maybe you are looking for

  • Master data load overwrite / add ?

    Hello BW Experts, Where: loading master data using infopackage. 1) Do we have the option of overwriting / adding to the master data ? 2) What do these options mean. 3) Where to make these settings in BW in the infopackage. Please suggest. Thanks, BWe

  • Lookup column in calculated column formula

    I have a Lookup column(Discountfirst) which has Number. I also have another Calculated column(Finaldate) with Resulttype DateTime. One more column(DateofReceipt) in Date. My Calculated column formula looks like this =(DateofReceipt)+(Discountfirst).

  • ITunes thinks my iPod Video can't handle video!

    I have a 60G 5th Generation iPod video. I have subscribed to a Podcast that includes video postings. Although these play fine in iTunes, they won't transfer them to my iPod. Originally, iTunes claimed my iPod isn't compatible with video! These days I

  • [SOLVED]installed, where do i go from here?

    Ive got it completely installed now, ive read the wiki and guides and dont understand them, how do i get lxde and openbox so i can have a regular desktop? Last edited by Bloody_Mat (2009-09-25 04:34:02)

  • Which oracle database should I install OBIEE RCU schemas

    Hi, Which Oracle database should I install OBIEE RCU schemas into? Should I install them into the database that contains the star schemas? Also, if we have different star schemas (HR, Sales, etc.), should I install multiple pairs of OBIEE RCU schemas