Change Editable ALV to Un Editable

HI,
I need to change the Editable fields of my ALV into non Editable based on a User Action .
My Scenario goes as follows.
I have four Fields in My internal Table.
A B C D.
Only Field C is Editable  when the first time ALV is displayed for the records in Database.
If a User wants to create a Row All the Fields will be in editable Mode for the newly appended row
Now If the user Hits Enter or Save button I want to make the editable Status of the Newly added ones look like the Same as records in  Database.
i.e. Only Field C must be Editable
I tried Using the method REFRESH_TABLE_DISPLAY of the class CL_GUI_ALV_GRID but of no use.
One can find my code in the thread Change Cells from editable mode to Uneditable Mode
Please help me in this Regard

Hi,
Thanks for the reply.
Could you please help me with waht values must I set for the Layout.
I am only filling my CELLTAB in the layout field stylefname
What fields must I set in the Fieldcat. Please explain
Regards

Similar Messages

  • Text keeps disappearing when I select it to make type at all / make changes / edit. Type tool is not working. I am running CS6 on a Macbook Pro Retina (which I am hating!) 10.9.4 - wish I'd never upgraded.

    Text keeps disappearing when I select it to make type at all / make changes / edit. Type tool is not working. I am running CS6 on a Macbook Pro Retina (which I am hating!) 10.9.4 - wish I'd never upgraded.
    Photoshop General Discussion

    The RAM needs specs as shown below.
    Maximum Memory
    16 GB (Actual) 8 GB (Apple)
    Memory Slots
    2 - 204-pin PC-10600 (1333 MHz) DDR3 SO-DIMM

  • Change edit wysiwyg tool bar width?

    Anyone know Exactly how to change the tool bar width on the edit pages for the wiki and blogs.
    I noticed the comment in /usr/share/collaboration/css/required/toolbar.css
    .edit_toolbar{
    width:700px; /* width is actually set in wiki.js as mFinalWidth. also modify in theme.plist. */
    that said to change it in the wiki.js, but changing/editing the mFinalWidth in the /usr/share/collaboration/javascript/wiki.js doesn't change it. Also noted that you make a change/modification to the theme.plist, but what changes would you make to that file?
    Any ideas?
    -Silas
    International Affairs
    University of Oregon
    Message was edited by: IA IT, added path and details.

    If your custom theme sets a toolbar width that is too small for the contents of the toolbar, you'd also need to override the inner div. Its default is set to 824px to keep the toolbar buttons from wrapping oddly as the toolbar opens.
    /* minimum width clipping container... */
    .contentstoolbar{
    width:824px; /* might need to account for parent border/padding */
    Overriding the previous value would probably be a better option than realigning the action buttons, but if you wanted to do that, you could override the float property for the following:
    .tbactions a:link, .tbactions a:visited
    Customizing the editing interface on your theme is completely unsupported, of course, but you can rewrite the styles however you want. If you know CSS well, it's fairly easy to change the toolbar width or replace the toolbar icons, but you could even restyle the drop-down menus, reorder the buttons, etc. The CSS is pretty flexible.
    In order to dissect the page and figure out what to change and where to change it, I'd suggest using a developer tool like the WebKit Inspector or the Firebug plugin for Firefox. We used both extensively while building the app. Good luck.
    Message was edited by: James Craig changed "changing the previous value" to "overriding the previous value"

  • Change/Edit the message center number in Xperia X 10 ( Not Mini)

    Dear All,
    I bought xpria X 10 yesterday and i am facing 2 major problems.
    1) I am unable to send sms , i am sure i have to change my message center no but i dont know how to do it ? The instructions are given about Mini but not Xperia X 10.
    2) Not able to sync contacts from my old Nokia N 96 .
    Help needed
    Gaurav

    Dear bclerdx,
    Re: Change/Edit the message center number in Xperia X 10 ( Not Mini)
    1. X10 SMS service center number is system default and cannot be editor.
    X 10 mini has an option of changing a message center number but this facility is not in X 10 Xperia.
    Wat you advise me to do now ? I can receive messages but am not able to reply to send sms to anyone.
    I went to my service provider and then told me the message center number but i am not able to edit the same in my phone
    Pls help
    Gaurav

  • Multiple windows open in safari when click on web site.  Also can't change/edit DNS servers or any other changes in advance window of network tab

    macbook pro
    osx - mavericks
    multiple windows open in safari when click on web site.  Also can't change/edit DNS servers or any other changes in advance window of network tab.
    Basically every time i click on website other windows open and get redirected to other websites selling something (same as that mackeeper site which seems to open often)  Really ***** as in just a few minutes on the web I have many windows open and many are the same pages.  Can't make changes in the advanced tab of network as options are greyed out and the + & - symbols do nothing when clicked.  Hope there is an easy answer as surfing net is really sucking right now

    I hope to get some more info on a similar situation.
    I have a new Mac Pro, less than 2 months old. OSX 10.5 updated to 10.5.2. Quicktime updated too. When I use the Desktop and Screen Saver system pref, I can easily select and use one of the Apple supplied desktop pictures as a desktop background.
    But I wish to use a Photo from an iPhoto (iLife 08) folder / album as the desktop background. I can find all the albums, I can see all the icons for the pictures, I can select an iconed pciture and it appears in the top left of the preference pane (showing the effect of "fit to window" or "stretch to fit", etc). But all I get is a pale blue screen (which might be my default desktop colour). I don't get any of my iPhoto album pics to appear as a dektop background.
    There is one minor note on this, I don't keep the pictures in my iPhoto Library, I just reference them, and the originals are on a different internal disk.
    I've tried the suggestions above, trashing finder and desktop plists, killall Finder, etc. restart. Nothing gets it working again. It did work originally, for most of the time I've had the Mac Pro, then I changed the dektop to an Apple supplied picture of Earth.
    This affects both an Admin, and a standard user. The photos (and enclosing folders) are read / writable by the admin user, and readable by the Standard user. Both users can easily access the photos in their iPhoto. They open the original files on the second internal drive, and performing a right click - Show File shows the original file as expected. I've even emptied the iPhoto library completely and rebuilt it, just in case there was an issue here.
    Any ideas ? or anyone else seen this ? I don't really want to start reformatting disks and reinstalling the OS, but any suggestions short of this are extremely welcome.

  • Change/Edit Creative Cloud account avatar

    How can I change/edit my Creative Cloud account avatar that appears on th right side of the main toolbar?

    WillRegla I am sorry but this a standard icon used for all Users.  We currently do not support customization of this element of your account.

  • Screen Field Value Should be changed based on changes in ALV values

    Hi All,
    We had created a ALV with container, in this Alv we have a checkbox, which is editable.
    Based on the selection on checkbox , we need to update a field "Total selected" on screen.
    we are using Event to handle data changed in ALV, but some how it doesn't work.
    we even tried to use 'DYNP_VALUES_UPDATE' Function module to Update the field.
    Please find the code below.
    LOOP AT gt_final INTO gw_final WHERE mark EQ 'X'.
              gv_sel  = gv_sel  + 1.
    ENDLOOP.
            lw_dynpfields-fieldname = 'GV_SEL'.
            lw_dynpfields-fieldvalue = gv_sel .
            APPEND lw_dynpfields TO lt_dynpfields.
            CALL FUNCTION 'DYNP_VALUES_UPDATE'
              EXPORTING
                dyname               = 'Z_MAINPROG'
                dynumb               = '0300'
              TABLES
                dynpfields           = lt_dynpfields
              EXCEPTIONS
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                undefind_error       = 7
                OTHERS               = 8.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
    We get Sy-subrc as 0. No error and no update.
    Thanks in advance.
    Regards,
    Ravi

    Do you flush to synchronize the itab from frontend?
    In Debugger, is the column updated via 'X' for the checkboxes?
    please insert cl_gui_cfw=>flush.  to sync in PAI before analyzing the table.
    Regards,
    Christian

  • Is it possible to change the ALV report layout settings in spool request

    Hi All,
    Please let me know is it possible to change the ALV layout settings in background as we can change the layout settings in foreground to get correct format when download to excel.
    Regards,
    Jyothi CH.

    Hello,
    Add a parameter for layout on selection-screen (p_varmm LIKE disvariant-variant).
    As you are in backgroud mode, ALV will be printed with this layout (assuming you call correctly the MF ALV_LIST or REUSE_ALV_GRID)
    Regards,
    Christophe

  • Dynamic column change in Alv

    Hello friends,
                       Can any1 pls tell me if there is a function module available which can be used for dynamic column change in ALV.
                      Pls also elaborate how to use it.....

    While filling the field catalog you can specify witht IFcondition.
    Just see a example below...
    FORM field_fill USING pt_fieldcat TYPE slis_t_fieldcat_alv.
      DATA : ls_fieldcat TYPE slis_fieldcat_alv,
             pos TYPE i VALUE 1.
      ls_fieldcat-col_pos       = pos.
      ls_fieldcat-fieldname     = 'C_ICON'.
      ls_fieldcat-seltext_m     = 'Change Status'.
      ls_fieldcat-tabname       = 'IT_OUTPUT'.
      APPEND ls_fieldcat TO pt_fieldcat.
      CLEAR ls_fieldcat.
      pos = pos + 1.
      ls_fieldcat-col_pos       = pos.
      ls_fieldcat-fieldname     = 'BUKRS'.
      ls_fieldcat-ref_fieldname = 'BUKRS'.
      ls_fieldcat-ref_tabname   = 'ANLA'.
      APPEND ls_fieldcat TO pt_fieldcat.
      CLEAR ls_fieldcat.
      pos = pos + 1.
      ls_fieldcat-col_pos       = pos.
      ls_fieldcat-fieldname     = 'ANLN1'.
      ls_fieldcat-ref_fieldname = 'ANLN1'.
      ls_fieldcat-ref_tabname   = 'ANLA'.
      APPEND ls_fieldcat TO pt_fieldcat.
      CLEAR ls_fieldcat.
      pos = pos + 1.
      ls_fieldcat-col_pos       = pos.
      ls_fieldcat-fieldname     = 'ANLN2'.
      ls_fieldcat-ref_fieldname = 'ANLN2'.
      ls_fieldcat-ref_tabname   = 'ANLA'.
      APPEND ls_fieldcat TO pt_fieldcat.
      CLEAR ls_fieldcat.
      pos = pos + 1.
      IF p_farea = 'X'. " Conditional Based OUTPUT
        ls_fieldcat-col_pos       = pos.
        ls_fieldcat-fieldname     = 'GRUFL'.
        ls_fieldcat-ref_fieldname = 'GRUFL'.
        ls_fieldcat-ref_tabname   = 'ANLA'.
        APPEND ls_fieldcat TO pt_fieldcat.
        CLEAR ls_fieldcat.
        pos = pos + 1.
        ls_fieldcat-col_pos       = pos.
        ls_fieldcat-fieldname     = 'GRUFL_N'.
        ls_fieldcat-seltext_l     = 'New Floor Area'.
        ls_fieldcat-tabname       = 'IT_OUTPUT'.
        APPEND ls_fieldcat TO pt_fieldcat.
        CLEAR ls_fieldcat.
        pos = pos + 1.
      ENDIF.
      IF p_ldate = 'X'. " Conditional Based OUTPUT
        ls_fieldcat-col_pos       = pos.
        ls_fieldcat-fieldname     = 'LEABG'.
        ls_fieldcat-ref_fieldname = 'LEABG'.
        ls_fieldcat-ref_tabname   = 'ANLA'.
        APPEND ls_fieldcat TO pt_fieldcat.
        CLEAR ls_fieldcat.
        pos = pos + 1.
        ls_fieldcat-col_pos       = pos.
        ls_fieldcat-fieldname     = 'LEABG_N'.
        ls_fieldcat-seltext_l     = 'New Lease St.Date'.
        ls_fieldcat-tabname       = 'IT_OUTPUT'.
        APPEND ls_fieldcat TO pt_fieldcat.
        CLEAR ls_fieldcat.
        pos = pos + 1.
      ENDIF.
      ls_fieldcat-col_pos       = pos.
      ls_fieldcat-fieldname     = 'MESSAGE'.
      ls_fieldcat-seltext_l     = 'Status Message'.
      ls_fieldcat-tabname       = 'IT_OUTPUT'.
      APPEND ls_fieldcat TO pt_fieldcat.
      CLEAR ls_fieldcat.
      pos = pos + 1.
    ENDFORM.                    " field_fill
    Regards
    Gopi

  • Change an ALV list to ALV grid !!

    Hi Everybody!
    Please, I need some ideas to change an ALV List to an ALV Grid.  I think its not to difficult but I don´t now how to do it. I'm newbie
    Or if you have some manual or function.. or anythink
    Thanks so much !!
    JC

    Hey.. thanks to all of you..  IT Works !!  lol.. i'm happy.. my first modifying program..
    First I use a radio button to select a list or a grid..
    <i>selection-screen begin of block blk3 with frame title text-002.
    parameter:
    Lista radiobutton group g1,
    Grid radiobutton group g1.
    selection-screen end of block blk3.</i>
    then use a, if
    <i>if ALV = 'X'.
    PERFORM REPORT_ALV.
    PERFORM DATOS_ALV.
    Else.
    LOOP AT ZPERNR.</i>
    then..
    <i>PERFORM DATOS_ALV.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    bla bla..</i>
    and each field like this..
    <i>FORM ALV_RUT.
            ADD 1 TO COL_POS.
            CLEAR FIELDCAT_LN.
            fieldcat_LN-DDICTXT = 'L'.
            fieldcat_LN-OUTPUTLEN = 12.
            fieldcat_LN-SELTEXT_L = 'RUT'.
            fieldcat_LN-SELTEXT_M = 'RUT'.
            fieldcat_LN-SELTEXT_S = 'RUT'.
            FIELDCAT_LN-REF_TABNAME = 'ZPERNR'.
            FIELDCAT_LN-FIELDNAME = 'RUT'.
            APPEND FIELDCAT_LN TO FIELDCAT.
    ENDFORM.</i>
    It took me some time and need some improve, but works 
    Once more, Thanks to all.  For your help.
    Regards,
    Jessica

  • "REG:capturing fields of the Layout change in Alv"

    hi gurus,
                I have got a requirement like,i need to capture the fields displayed after the layout has been changed in ALV,initially my internal table has got 12 fields.After modifying the layout,the output shows only 5 fields,i have to capture this 5 fields alone and wrtie a bdc for further processing.how to do that.
    which internal table holds this fields and displays.please help me with this.
                         thx in advance.
    regards,
    balaji.s

    Hi,
    Try the below methods in the ALV Class CL_GUI_ALV_GRID
    GET_FRONTEND_FIELDCATALOG
    GET_FRONTEND_LAYOUT = Get Current Layout from Frontend
    GET_INTERNAL_LAYOUT  = Get Current Layout from Frontend
    Check the below program for Get frontend_layout method
    BCALV_GRID_VERIFY
    Regards,
    Boobalan S

  • My changes edited on editable ALV report are not transferring back to itab?

    Hello
    I was developed a heirarchila editable ALV by using FM 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. The user will do some changes in the ITEMs (Z_VBAP_TABLE) on this heirarchila ALV report and presses the SAVE button.
    In my program am handling this SAVE command and even my break point is also triggering at SAVE, but my ITAB is not having the CHANGED/new data!! still it has the old data in it! How to capture the user changes done on the report? those changes are not tranferring back to my itab/prog! because, ineed to update Z_VBAP_TABLE with those changes
    Thank you

    Hi Raju,
    it is possible . But i know about your code.
       WHEN 'SAVE'(003).
        Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = viewname
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          IF NOT grid1 IS INITIAL .
            CALL METHOD grid1->check_changed_data .
          ENDIF .
          SORT i_mod BY row.
          DELETE ADJACENT DUPLICATES  FROM i_mod COMPARING row.
          lh_norec = LINES( i_mod ).
          lh_total = lh_norec.
          SHIFT lh_total LEFT DELETING LEADING space.
    Standard Table Update
          IF i_mod[] IS NOT INITIAL.
            LOOP AT i_mod INTO lwa_mod.
              READ TABLE <i_itab> INTO <wa_tab> INDEX lwa_mod-row.
              IF sy-subrc = 0 .
                IF lh_flag NE 'X'.
                  MODIFY (viewname) FROM <wa_tab>.
                ELSE.
                  INSERT (viewname) FROM <wa_tab>.
                  IF sy-subrc NE 0.
                    MESSAGE 'DATA NOT SAVED' type 'I'.
                  ENDIF.
                ENDIF.
              ENDIF.
            ENDLOOP.
            CONCATENATE lh_total '  ' text-s01 INTO lh_succ SEPARATED BY space.
            MESSAGE 'Data Saved' TYPE 'I'.
    This i did a long back. Check your code . I created an alv that will display data from my table . In this the user can click in any line item and he can change any value and press save  that will save the value .
    Regards,
    Madhu.

  • Add Change/Edit button in ALV

    Hello Experts,
                   How to insert the button in ALV grid toolbar. Now its showing Check,insert,append and delete button.How to add change or edit button in ALV ?
    I'm using ALV componenet  SALV_WD_TABLE.
    Thanks.

    Hi Stars,
    To achieve this, you have to two of ALV grid events. Use event TOOLBAR to add a button & event USER_COMMAND to implement a function.
    In the method handling the toolbar event, we define a new button by filling a structure and appending it to the table attribute mt_toolbar of the object to whose reference we can reach via the parameter e_object of the event.
    Example code snippet for your reference :-
    DATA: ls_toolbar TYPE stb_button.
    CLEAR ls_toolbar.
    MOVE 3 TO ls_toolbar-butn_type.
    APPEND ls_toolbar TO i_object->mt_toolbar.
    CLEAR ls_toolbar.
    MOVE 'PER' TO ls_toolbar-function. "#EC NOTEXT
    MOVE icon_display_text TO ls_toolbar-icon.
    MOVE 'Passenger Info'(201) TO ls_toolbar-quickinfo.
    MOVE 'Passenger Info'(201) TO ls_toolbar-text.
    MOVE ' ' TO ls_toolbar-disabled. "#EC NOTEXT
    APPEND ls_toolbar TO i_object->mt_toolbar.
    CLEAR ls_toolbar.
    MOVE 'EXCH' TO ls_toolbar-function. "#EC NOTEXT
    MOVE 2 TO ls_toolbar-butn_type.
    MOVE icon_calculation TO ls_toolbar-icon.
    MOVE 'Payment in Other Currencies'(202) TO ls_toolbar-quickinfo.
    MOVE ' ' TO ls_toolbar-text.
    MOVE ' ' TO ls_toolbar-disabled. "#EC NOTEXT
    APPEND ls_toolbar TO i_object->mt_toolbar.
    Regards
    Abhii

  • Create change/edit button in ALV

    Hello Experts,
                   How to insert the button in ALV grid toolbar. Now its showing Check,insert,append and delete button.How to add change or edit button in ALV ?
    I'm using ALV componenet  SALV_WD_TABLE.
    Thanks.

    Hi,
    With the previous reply you can create the customized button.
    to make ALV editable or non editable(change or read only) the code to be written is:
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      DATA lo_value TYPE REF TO cl_salv_wd_config_table.
      lo_cmp_usage =   wd_this->wd_cpuse_alv_table( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
      lo_interfacecontroller =   wd_this->wd_cpifc_alv_table( ).
      lo_value = lo_interfacecontroller->get_model( ).
    *lr_table_settings->set_read_only( abap_false ).*"you can  make it abap_true or abap_false based  to make
    the ALV editable or non editable
    Priya

  • Change edit mode with clasic FM REUSE_ALV_GRID_DISPLAY

    Hello,
    I'm using the function "REUSE_ALV_GRID_DISPLAY", in the classic method. I want to switch from display to edit mode when the user press the edit mode button. But I don't get it to work.
    So far as I know building up the ALV is correct so I don't put all the source code here.
    What's wrong in my code?
    FORM BUILD_ALV_REPORT.
    perform build_field_cat.
    After building the field catalog (e.g., from a DDIC structure), we can
    modify these settings in the following subroutine.
    PERFORM modify_fieldcatalog.
    IF Not fieldcatalog is initial.
    perform collect_data
    TABLES it_collector
    USING werks
    lgort
    s_jaar
    s_mnd.
    PERFORM t_sort_build USING gd_sort.
    perform build_layout CHANGING gd_layout.
    Table ta_comment is used to display header information in the
    top-of-page of the ALV output.
    PERFORM build_comment CHANGING ta_comment[].
    Table gd_tab_group wordt gebruikt om een groepering op te bouwen.
    PERFORM build_group CHANGING gd_tab_group[].
    SET PF-STATUS 'STANDARD_FULLSCREEN'.
    gx_variant-report = gd_repid.
    CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
    I_SAVE = 'A'
    CHANGING
    CS_VARIANT = gx_variant
    EXCEPTIONS
    WRONG_INPUT = 1
    NOT_FOUND = 2
    PROGRAM_ERROR = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = gd_repid
    I_CALLBACK_PF_STATUS_SET = 'STANDARD_FULLSCREEN'
    I_CALLBACK_USER_COMMAND = 'R1_PROCESS_USER_COMMAND'
    I_CALLBACK_TOP_OF_PAGE = co_rout_top_of_page
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    I_GRID_TITLE = 'Lijst goedgekeurde ATBs'
    I_GRID_SETTINGS =
    IS_LAYOUT = gd_layout
    IT_FIELDCAT = fieldcatalog
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS = gd_tab_group[]
    IT_SORT = gd_sort[]
    I_SAVE = 'A'
    IS_VARIANT = gx_variant
    I_SCREEN_START_COLUMN = 0
    TABLES
    T_OUTTAB = it_collector
    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.
    ENDIF.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    ENDFORM. " BUILD_ALV_REPORT
    Setting the column to edit mode
    ls_fieldcat-fieldname = '3_ATWRT'.
    ls_fieldcat-seltext_m = 'WBS-NRG'.
    ls_fieldcat-seltext_l = 'WBS-element NRG'.
    ls_fieldcat-row_pos = 0.
    ls_fieldcat-col_pos = 30.
    ls_fieldcat-outputlen = 4.
    ls_fieldcat-emphasize = 'X'.
    ls_fieldcat-key = 'X'.
    ls_fieldcat-do_sum = 'X'.
    ls_fieldcat-edit = 'X'.
    append ls_fieldcat to fieldcatalog.
    clear ls_fieldcat.
    ENDFORM. " modify_fieldcatalog
    FORM r1_process_user_command "#EC CALLED
    USING utp_ucomm TYPE syucomm
    utp_selfield TYPE slis_selfield.
    DATA: ltp_repid TYPE syrepid.
    Handle the specific user-commands.
    CASE utp_ucomm.
    Handle double click or hotspot on a specific field. *
    These are some examples *
    WHEN co_double_click.
    WHEN OTHERS.
    ENDCASE.
    WHEN 'SWITCH'.
    IF V_EDIT = ' '.
    V_EDIT = 'X'.
    ELSE.
    V_EDIT = ' '.
    ENDIF.
    PERFORM modify_edit_mode.
    utp_selfield-refresh = 'X'.
    WHEN OTHERS.
    ENDCASE.
    ENDFORM. "R1_PROCESS_USER_COMMAND
    FORM modify_edit_mode .
    DATA: ls_fieldcat TYPE slis_fieldcat_alv.
    LOOP AT fieldcatalog into ls_fieldcat.
    CASE ls_fieldcat-FIELDNAME.
    WHEN '3_ATWRT'.
    ls_fieldcat-edit = V_EDIT.
    gd_layout-edit = V_EDIT.
    gd_layout-edit_mode = V_EDIT.
    ENDCASE.
    modify fieldcatalog from ls_fieldcat.
    clear ls_fieldcat.
    ENDLOOP.
    ENDFORM. " modify_edit_mode

    Vasanth,
    This is what I'm already doing in the program by setting the edit mode for the column '3_ATWRT'. But I want to switch from edit to display mode and back again. This is not working. Only when I buildup the fieldcatalog this is working?
    Kind regards,
    Richard Meijn

Maybe you are looking for