How to grey out ( make it non editable ) one line in ALV

hi i am working on a report which is ALV o/p report .the report has some editable and some non editable fields. based on the value of 1 column field i need to make the full line non editable . how is this possible.
please guide me.
Thanks,
Shiva.
Edited by: Alvaro Tejada Galindo on Mar 19, 2008 5:07 PM

Hi,
    Try using the structure LVC_S_STYLE.
Declare a field of type LVC_S_STYLE in ur internal table,
Now,in ur new PERFORM chk this code:
ls_stylerow type LVC_S_STYLE.
LOOP AT it_itab INTO wa_itab.
IF wa_itab-field1(this will be the field by which u will validate) =  'X'.
ls_stylerow-fieldname = 'FIELD2' .   "Field which you want to grey
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.  "set field to disabled
APPEND ls_stylerow TO wa_itab-field_style.
MODIFY it_itab FROM wa_itab.
ENDIF.
ENDLOOP.

Similar Messages

  • Making the whole po line item as a non editable one (Greyed out)

    Hi all
    can any one please let me know is there is any way we can grey out the whole line item,
    i mean to say non editable mode.
    i am working on a user exit where based on certain field entries i have to make the whole line
    item as an non editable one.
    For example po change transaction if there are 5 line items i want to make the three as a non editable one and i have a user exit
    with me but dont have the idea of how to make it geryed out.
    Thanks in advance.
    Joe

    Hi
    Do you have a PO release strategy implemented. This can be done through PO release strategy. please tell  the exact requirement whether this is for all users ???
    hope it will help
    Regards

  • How to make fields Non Editable in Web ADI

    Hi All,
    Can you please let me know how we can make fields Non Editable in Web ADI?
    Thanks,
    Anil

    Hi,
    Are you trying to make required parameters readonly and does this variable have different values for each row. If not then I would suggest you use a wrapper for the API and get only parameters that you need from the excel sheet and the use the wrapper to send the other read only values.
    Thanks

  • 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

  • Is my iPhone 4 greyed out wifi and non working bluetooth software or hardware... seems that the forums are full of this issue with no consistent or official answer. is it all coincidence that so many are having the problem? Please help...

    Is my iPhone 4 greyed out wifi and non working bluetooth software or hardware... seems that the forums are full of this issue with no consistent or official answer. is it all coincidence that so many are having the problem? Please help... I have scoured the net trying everything the last few days.

    Please correct your porfile: iPhone 4 do not have IOS 6.1.4.
    The usual troubleshooting steps are, also remember to test it after every step:
    1. Restart
    2. Reset
    3. Restore from backup
    4. Restore as new.
    If no joy, make an Appointment with the Apple genius and have them evaluate

  • 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.

  • HT204406 Hello,  I have songs that show they are "Waiting" for download from the cloud but they are greyed out.  Some songs in one album are done others in the same album will not download. It is not a time function because i have been working on this for

    Hello,  I have songs that show they are "Waiting" for download from the cloud but they are greyed out.  Some songs in one album are done others in the same album will not download. It is not a time function because i have been working on this for weeks. I have allowed my compter to run for days and the songs are still not accessible.  I have a Match subscription and Match is working.  If I click on the "Genre" link the greyed out songs show that they are ready for download from the cloud but I cannot download them.  I have downloaded over 1500 other songs, so I am trying to understand what is going on here. I would appreciate any help anyone can give me.
    Thanks

    I did think about that and if I have to I will do that, however there are about 50 songs. I have closed and reopened iTunes several times and I am sure that I have the latest version. It fails right away but I can click on the cloud download icon and download the song that it failed on ... therefore it is not that song "or any one song" causing the issue. Any ideas?

  • How to make several pushbuttons in one line (on screen)??

    How to make several pushbuttons in one line (on screen)??
    thanks in advance!!!!

    Hi,
    USE
    SELECTION-SCREEN BEGIN OF BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    define all buttons between this block.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK.
    selection-screen
    Cheers
    VJ

  • Edit One Cell In Alvs Based On Some Condition

    Hi Experts,
          My Requirement Is  :
    Has To *Edit one cell using alv grid *, for ex: If  Netpr > 100(value). that should be in editable mode,rest of the cells  in non-editable mode. pls let me know how to do it,
    best answer rewarded
    Reagrds,
    Fareedas.

    Hi Fareedas,
    The follow program demonstrates how to make individual fields of an ALV grid editable (NetPR greater than 10). Changes required from a basic ALV grid include adding a new field to ALV grid data table(it_ekko), Populating this field with style attribute and adding an entry to layout control table. Also from the previous examples used on this website you will also need to change the data type of the fieldcatalog, the layout and use a different function module for displaying the report
    *& Report  ZDEMO_ALVGRID_EDIT                                          *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic ALV grid, Enhanced to display specific fields as          *
    *& editable depending on field value                                   *
    REPORT  ZDEMO_ALVGRID_EDIT                 .
    TABLES:     ekko.
    TYPE-POOLS: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
      field_style  TYPE lvc_t_styl, "FOR DISABLE
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: it_fieldcat TYPE lvc_t_fcat,     "slis_t_fieldcat_alv WITH HEADER LINE,
          wa_fieldcat TYPE lvc_s_fcat,
          gd_tab_group TYPE slis_t_sp_group_alv,
          gd_layout    TYPE lvc_s_layo,     "slis_layout_alv,
          gd_repid     LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM set_specific_field_attributes.
      PERFORM build_fieldcatalog.
      PERFORM build_layout.
      PERFORM display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
      wa_fieldcat-fieldname   = 'EBELN'.
      wa_fieldcat-scrtext_m   = 'Purchase Order'.
      wa_fieldcat-col_pos     = 0.
      wa_fieldcat-outputlen   = 10.
      wa_fieldcat-emphasize   = 'X'.
      wa_fieldcat-key         = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'EBELP'.
      wa_fieldcat-scrtext_m   = 'PO Item'.
      wa_fieldcat-col_pos     = 1.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'STATU'.
      wa_fieldcat-scrtext_m   = 'Status'.
      wa_fieldcat-col_pos     = 2.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'AEDAT'.
      wa_fieldcat-scrtext_m   = 'Item change date'.
      wa_fieldcat-col_pos     = 3.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'MATNR'.
      wa_fieldcat-scrtext_m   = 'Material Number'.
      wa_fieldcat-col_pos     = 4.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'MENGE'.
      wa_fieldcat-scrtext_m   = 'PO quantity'.
      wa_fieldcat-col_pos     = 5.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'MEINS'.
      wa_fieldcat-scrtext_m   = 'Order Unit'.
      wa_fieldcat-col_pos     = 6.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'NETPR'.
      wa_fieldcat-scrtext_m   = 'Net Price'.
      wa_fieldcat-edit        = 'X'. "sets whole column to be editable
      wa_fieldcat-col_pos     = 7.
      wa_fieldcat-outputlen   = 15.
      wa_fieldcat-datatype     = 'CURR'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'PEINH'.
      wa_fieldcat-scrtext_m   = 'Price Unit'.
      wa_fieldcat-col_pos     = 8.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    FORM build_layout.
    * Set layout field for field attributes(i.e. input/output)
      gd_layout-stylefname = 'FIELD_STYLE'.
      gd_layout-zebra             = 'X'.
    ENDFORM.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
    *       Display report using ALV grid
    FORM display_alv_report.
      gd_repid = sy-repid.
    *  call function 'REUSE_ALV_GRID_DISPLAY'
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
           EXPORTING
                i_callback_program      = gd_repid
    *            i_callback_user_command = 'USER_COMMAND'
                is_layout_lvc               = gd_layout
                it_fieldcat_lvc             = it_fieldcat
                i_save                  = 'X'
           TABLES
                t_outtab                = it_ekko
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
       UP TO 10 ROWS
        FROM ekpo
        INTO  CORRESPONDING FIELDS OF TABLE it_ekko.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  set_specific_field_attributes
    *       populate FIELD_STYLE table with specific field attributes
    form set_specific_field_attributes .
      DATA ls_stylerow TYPE lvc_s_styl .
      DATA lt_styletab TYPE lvc_t_styl .
    * Populate style variable (FIELD_STYLE) with style properties
    * The NETPR field/column has been set to editable in the fieldcatalog...
    * The following code sets it to be disabled(display only) if 'NETPR'
    * is gt than 10.
      LOOP AT it_ekko INTO wa_ekko.
        IF wa_ekko-netpr GT 10.
          ls_stylerow-fieldname = 'NETPR' .
          ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
                                                 "set field to disabled
          APPEND ls_stylerow  TO wa_ekko-field_style.
          MODIFY it_ekko FROM wa_ekko.
        ENDIF.
      ENDLOOP.
    endform.                    " set_specific_field_attributes
    Check the above code.
    For a sample code using ABAP OO check the program BCALV_EDIT_02.
    Hope this helps.
    Rwd points if helpful.
    Thanks,
    Balaji

  • How do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that,

    how do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that, then it needs to "fly-out-bottom" again, I can do that, but not on the same line of text...any ideas...

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • Is there a fax cover template?  If not, how can I have 2 text fields on one line?

    Is there a fax cover template?  If not, how do you add two text fields on one line?    

    No fax cover template. This forum posts explains how to put multiple fields on one line:
    http://forums.adobe.com/message/5032849

  • How do I flatten a pdf file to make it non editable

    how do I flatten a pdf doc on my imac. I am trying to save and editable PDF doc to a non editable pdf doc

    Go to '''Tools->Options->Application''', search for '''Adobe Acrobat Document''' and choose '''Always ask''' in the '''Action''' column.
    If you wish to reset all the download actions try the instructions in this article
    [http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions File types and download actions]

  • Interaction Record : How to make it non editable based on user status = Complete and on click of  Save

    Hi Guys
    We have a requirement ,where we need to make the interaction record "not editable " when we set the user status to "Complete" and after "Save" button is pressed.
    Please note that we can't make use of status profile settings as we have to enter some information after the status is complete , that means
    after user selects status "Complete" he has to select the value from another drop down and then Save.
    Standard offers such that once the Complete is chosen in dropdown the whole screen is frozen.
    Once he saves it , the document should be locked(read only/non editable)
    Any pointers ?
    We tried "Set_view_Group_Context" and Order_Save BADI and we are not preferring disabling at attribute level as we might add few more attributes later.
    Regards
    Vinayak

    Hello,
    We had a similar requirement.
    The best way we found was to implement the enhancement spot in the beginning of method LOCK_ORDERS of class CL_CRM_METHODS_BTIL. Here, you can prevent the user from editing a business transaction. Be aware this method is called for any BT, so you need to adjust your custom development accordingly.
    Hope this helps.
    Best regards,
    Sylvain AGUETTAZ

  • Get Info shows informations greyed-out; I can't edit it!

    Whenever I want to edit a song (because of a misspelling, or to make it go in accordance with the rest of the items, etc.) I find the information is there, but greyed-out, and so, am not able to edit it. This happened before the update to version 11, so I don't know what's wrong.
    I have to say I had a horrendous system crash, and I had to reconstruct two hard drives, so it may stem from the consequences of that lightning strike, but I have no problem with authorizations, so I am at a loss.
    Just yesterday, I put into iTunes a double CD (yes, I don't feel comfortable if I don't own my music. I have DVD's of all I've ever downloaded from iTunes Store, too, so I backup: it's a religion.) And that CD info is also non-editable.
    I really need the capacity to edit my songs. Please help.

    What version of Windows?
    Are you signed into the computer with an Administrator account?

  • How to grey out terms of payment in sales order.

    Hi,
    While making sales order ,user should not make changes in terms of payment.how we  can restrict the user for any changes.
    and what is procedure for this.
    Regards,

    you can get many treads if you had searched with your subject.Anyway please find one among them.
    payment terms-greyed out field
    I would prefer going for option of activating critical field in OVA8 if Credit management is configured in your client process.
    thanks,
    Srinu.

Maybe you are looking for

  • Badis for PO and Central Contract in SRM 7.0 in classic

    Hi everyone, I need you help. We are working in a implementation of SRM7.0 with ECC 6.0 Ehp 4 in a classic scenario. We want to know which badis we can use in order to change the purchasing group of the PO an Central Contract when their are transfere

  • In a WDS, how can I force a satellite base station to connect directly to the main station

    I have 2 Airports Extremes (Call them A and B) and a Time Capsule set up in a WDS. All are recent vintage at V 7.6.1 firmware. Airport A is the main base station connected to the internet via ethernet to a cable modem. The satellites, Airport B and t

  • Widgets in iBooks Mavericks

    Hey, We're having a really annoying problem with widgets on iBooks mavericks. In iBooks on the iPad the close button in top left only captures touch events in the visible area of the close button. However on iBooks mavericks the done button sits with

  • Alarms Randomly Fail

    Ever since I upgraded to iCal 3.0 and Mac 10.5, iCal has been very undependable with it's alarms. Sometimes the Message-with-Sound alarms operate as desired. However, often they either don't pop up the first time, or don't pop up after I've set them

  • I kept having advert pop up on my web browser, is that virus?

    I kept having advert pop up on my web browser, is that virus? Don't know what I did and don't know how to get rid off them.