<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ALV display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162818#M1195813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kindly send me a ALV sample piece of code where a particular column is edited by the user. This ALV is displayed using Factory method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ginni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2009 09:40:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-16T09:40:50Z</dc:date>
    <item>
      <title>ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162818#M1195813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kindly send me a ALV sample piece of code where a particular column is edited by the user. This ALV is displayed using Factory method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ginni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162818#M1195813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162819#M1195814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Go to se38: BCALV* and press F4.&lt;/P&gt;&lt;P&gt;you will get all standard SAP ALV examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sendil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162819#M1195814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162820#M1195815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; see this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  &lt;/P&gt;&lt;P&gt;w_lay TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_lay-grid_title = 'Flight details'.&lt;/P&gt;&lt;P&gt;w_lay-zebra = 'X'.&lt;/P&gt;&lt;P&gt;w_lay-edit = 'X'.&lt;/P&gt;&lt;P&gt;w_lay-CWIDTH_OPT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD r_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_structure_name              = 'FS'&lt;/P&gt;&lt;P&gt;      is_layout                     = w_lay( layout structure )&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = itab&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = t_cat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162820#M1195815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162821#M1195816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link explains how to edit a column in alv.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162821#M1195816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162822#M1195817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dont Hasitate to search on SCN.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through BCALV* programes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162822#M1195817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162823#M1195818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162823#M1195818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162824#M1195819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginni,&lt;/P&gt;&lt;P&gt;For your requirement you need to use &lt;STRONG&gt;lvc_s_fcat&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;If you want a column should be editable by the end-user then  you need to make the &lt;STRONG&gt;EDIT  field of the field catalog table  'X'  for  that paricular field&lt;/STRONG&gt; . &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the following code Select and carrid field is editable&lt;/STRONG&gt;.Try this code -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  yh1333_alv.

DATA : w_cont TYPE REF TO cl_gui_custom_container,
       w_grid TYPE REF TO cl_gui_alv_grid.

DATA : fs_fcat TYPE lvc_s_fcat,
       fs_layo TYPE lvc_s_layo,
       t_fcat TYPE lvc_t_fcat.


fs_layo-language = 'D'.

DATA : BEGIN OF fs_sflight,
          carrid TYPE sflight-carrid,
          connid TYPE sflight-connid,
          fldate TYPE d,
          price  TYPE sflight-price,
          w_check(1) TYPE c,
        END OF fs_sflight,
      fs_sflight1 LIKE sflight,
      t_sflight LIKE TABLE OF fs_sflight.

START-OF-SELECTION.
  SELECT carrid connid fldate price FROM sflight
  INTO TABLE t_sflight .

  CALL SCREEN 100.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'STAT'.
*  SET TITLEBAR 'xxx'.

  CREATE OBJECT w_cont
      EXPORTING
*    parent                      =
        container_name              = 'CONT'
*    style                       =
*    lifetime                    = lifetime_default
*    repid                       =
*    dynnr                       =
*    no_autodef_progid_dynnr     =
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6
        .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  CREATE OBJECT w_grid
    EXPORTING
*    i_shellstyle      = 0
*    i_lifetime        =
      i_parent          = w_cont
*    i_appl_events     = space
*    i_parentdbg       =
*    i_applogparent    =
*    i_graphicsparent  =
*    i_name            =
*    i_fcat_complete   = space
    EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init   = 2
      error_cntl_link   = 3
      error_dp_create   = 4
      OTHERS            = 5
      .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


  fs_fcat-fieldname = 'W_CHECK'.
  fs_fcat-coltext = 'Select'.
  fs_fcat-checkbox = 'X'.
*  fs_fcat-col_pos = 6.
  fs_fcat-edit = 'X'.                   " This field is editable
*fs_fcat-emphasize = 7.
  APPEND fs_fcat TO t_fcat.

  CLEAR fs_fcat.
*fs_fcat-row_pos = '1'.
*  fs_fcat-col_pos = '2'.
  fs_fcat-edit = 'X'.                 " This field is editable
  fs_fcat-fieldname = 'CARRID'.
  fs_fcat-coltext = 'ID'.
  APPEND  fs_fcat TO t_fcat.
clear fs_fcat.

*fs_fcat-row_pos = '2'.
*  fs_fcat-col_pos = '3'.
  fs_fcat-fieldname = 'CONNID'.
  fs_fcat-coltext = 'Connection ID'.
  APPEND  fs_fcat TO t_fcat.


*fs_fcat-row_pos = '3'.
*  fs_fcat-col_pos = '4'.
  fs_fcat-fieldname = 'FLDATE'.
  fs_fcat-coltext =  'Flight Date'.
  APPEND  fs_fcat TO t_fcat.

*fs_fcat-row_pos = '4'.
*  fs_fcat-col_pos = '5'.
  fs_fcat-fieldname = 'PRICE'.
  fs_fcat-coltext =  'PRICE'.
  APPEND  fs_fcat TO t_fcat.
  CLEAR fs_fcat.

  CALL METHOD w_grid-&amp;gt;set_table_for_first_display
    EXPORTING
*    i_buffer_active               =
*    i_bypassing_buffer            =
*    i_consistency_check           =
      i_structure_name              = 'FS_SFLIGHT'
*    is_variant                    =
*    i_save                        =
*    i_default                     = 'X'
    is_layout                     = fs_layo
*    is_print                      =
*    it_special_groups             =
*    it_toolbar_excluding          =
*    it_hyperlink                  =
*    it_alv_graphics               =
*    it_except_qinfo               =
*    ir_salv_adapter               =
    CHANGING
      it_outtab                     = t_sflight
    it_fieldcatalog               = t_fcat
*    it_sort                       =
*    it_filter                     =
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4
          .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDMODULE.                 " STATUS_0100  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0 .
    WHEN 'PICK'.
      WRITE 'Testing through pick'.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162824#M1195819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162825#M1195820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;start-of-selection .&lt;/P&gt;&lt;P&gt;perform get_data_from_db . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill the fieldcat &lt;/P&gt;&lt;P&gt;This fieldcat also disables some columns (without any criteria) &lt;/P&gt;&lt;P&gt;perform fill_fieldcat_a(ZREPORT1) tables go_fieldcat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manipulate the layout gs_layout ?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create objects &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF go_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;CREATE OBJECT go_custom_container&lt;/P&gt;&lt;P&gt;EXPORTING container_name = 'ALV_CONTAINER'.&lt;/P&gt;&lt;P&gt;CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = go_custom_container.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load data into the grid and display them &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING i_structure_name = 'ZTAB1'&lt;/P&gt;&lt;P&gt;is_layout = gs_layout&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_fieldcatalog = go_fieldcat&lt;/P&gt;&lt;P&gt;it_outtab = gi_ZTAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set screen 100 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calls the screen which contains the container ALV_CONTAINER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162825#M1195820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162826#M1195821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginni,&lt;/P&gt;&lt;P&gt;here is a sample code alv with oops where a  particular field is in edit mode..&lt;/P&gt;&lt;P&gt;after a change is made u need to perform validation of the entry...&lt;/P&gt;&lt;P&gt;also create screen 444.(double click on 444 and proceed)&lt;/P&gt;&lt;P&gt;and set the 'pf-status'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: vbak.

DATA:
  fs_layout TYPE lvc_s_layo,
  t_cat TYPE lvc_t_fcat,
  fs_cat LIKE LINE OF t_cat.

DATA:  r_container TYPE REF TO cl_gui_custom_container,
       r_grid TYPE REF TO cl_gui_alv_grid.
* internal table t_tab
DATA: BEGIN OF t_tab OCCURS 0.
        INCLUDE STRUCTURE vbak.
DATA: celltab TYPE lvc_t_styl,
      END OF t_tab.

START-OF-SELECTION.
  SELECT * FROM vbak UP TO 100 ROWS INTO CORRESPONDING FIELDS OF TABLE t_tab.

END-OF-SELECTION.
  CALL SCREEN 444.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  DISPLAY  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE display OUTPUT.
  SET PF-STATUS 'STAT'.
  SET TITLEBAR 'Sales Document Header Data'.

  IF r_container IS INITIAL.

    CREATE OBJECT r_container
      EXPORTING
*     parent                      =
        container_name              = 'CONTAINER'
*     style                       =
*     lifetime                    = lifetime_default
*     repid                       =
*     dynnr                       =
*     no_autodef_progid_dynnr     =
*   EXCEPTIONS
*     cntl_error                  = 1
*     cntl_system_error           = 2
*     create_error                = 3
*     lifetime_error              = 4
*     lifetime_dynpro_dynpro_link = 5
*     others                      = 6
        .
    IF sy-subrc &amp;lt;&amp;gt; 0.
*  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.


    CREATE OBJECT r_grid
      EXPORTING
*     i_shellstyle      = 0
*     i_lifetime        =
        i_parent          =  r_container
*     i_appl_events     = space
*     i_parentdbg       =
*     i_applogparent    =
*     i_graphicsparent  =
*     i_name            =
*     i_fcat_complete   = space
*   EXCEPTIONS
*     error_cntl_create = 1
*     error_cntl_init   = 2
*     error_cntl_link   = 3
*     error_dp_create   = 4
*     others            = 5
        .
    IF sy-subrc &amp;lt;&amp;gt; 0.
*  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
     EXPORTING
*   I_BUFFER_ACTIVE              =
       i_structure_name             = 'VBAK'
*   I_CLIENT_NEVER_DISPLAY       = 'X'
*   I_BYPASSING_BUFFER           =
*   I_INTERNAL_TABNAME           =
      CHANGING
        ct_fieldcat                  = t_cat
* EXCEPTIONS
*   INCONSISTENT_INTERFACE       = 1
*   PROGRAM_ERROR                = 2
*   OTHERS                       = 3
              .
    IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    fs_layout-smalltitle = 'X'.
    fs_layout-zebra = 'X'.
    fs_layout-grid_title = 'FLIGHT details'.
    fs_layout-cwidth_opt = 'X'.

      fs_cat-edit = 'X'.
      fs_cat-CHECKTABLE = '!'.
      MODIFY t_cat FROM fs_cat
             TRANSPORTING edit checktable
             where fieldname eq 'NETWR'.

    CALL METHOD r_grid-&amp;gt;set_table_for_first_display
      EXPORTING
*    i_buffer_active               =
*    i_bypassing_buffer            =
*    i_consistency_check           =
*    i_structure_name              = 'VBAK'
*    is_variant                    =
*    i_save                        =
*    i_default                     = 'X'
        is_layout                     = fs_layout
*    is_print                      =
*    it_special_groups             =
*    it_toolbar_excluding          =
*    it_hyperlink                  =
*    it_alv_graphics               =
*    it_except_qinfo               =
*    ir_salv_adapter               =
      CHANGING
        it_outtab                     = t_tab[]
        it_fieldcatalog               = t_cat
*    it_sort                       =
*    it_filter                     =
      EXCEPTIONS
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        OTHERS                        = 4
            .
    IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
*  CALL METHOD r_grid-&amp;gt;set_ready_for_input
*    EXPORTING
*      i_ready_for_input = 1.
*
  ENDIF.
ENDMODULE.                 " DISPLAY  OUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0444  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0444 INPUT.
  CASE sy-ucomm.
    WHEN 'BACK'.
      SET SCREEN '0'.
    WHEN 'EXIT'.
      LEAVE PROGRAM.

    WHEN 'SWITCH'.
      PERFORM switch_edit_mode.
  ENDCASE.

ENDMODULE.                 " USER_COMMAND_0444  INPU
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  SWITCH_EDIT_MODE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM switch_edit_mode.
  IF r_grid-&amp;gt;is_ready_for_input( ) EQ 1.
    CALL METHOD r_grid-&amp;gt;set_ready_for_input
      EXPORTING
        i_ready_for_input = 0.
  ELSE.
    CALL METHOD r_grid-&amp;gt;set_ready_for_input
      EXPORTING
        i_ready_for_input = 1.
  ENDIF.
ENDFORM.                               " SWITCH_EDIT_MOD

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mdi.Deeba.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162826#M1195821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162827#M1195822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test my Sample Code in the following Thread, it will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Editable ALV |&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1217714"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162827#M1195822</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-16T09:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162828#M1195823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;First declare a field catalog of type like:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_field TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;       wa_field TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;Then maintain field catalog for the table fields to be displayed in the output like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_field-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;  wa_field-tabname = 'IT_TAB'.&lt;/P&gt;&lt;P&gt;  wa_field-outputlen = 20.&lt;/P&gt;&lt;P&gt;  wa_field-col_pos = '1'.&lt;/P&gt;&lt;P&gt;  wa_field-seltext_l ='P.O NUMBER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_field-input = 'X'.&lt;/P&gt;&lt;P&gt;  wa_field-edit = 'X'.                          &lt;STRONG&gt;"for making the field editable by the user&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*WA_FIELD-HOTSPOT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_field TO it_field.&lt;/P&gt;&lt;P&gt;  CLEAR wa_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;And then pass this internal table it_field into the function module&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reuse_ALV_grid_display 's parameter:&lt;/STRONG&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IT_FIELDCAT                       = it_field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162828#M1195823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162829#M1195824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class CL_SALV_TABLE does not support editable cells, nor does it support editable columns or rows. You must use the class CL_GUI_ALV_GRID in order to have this functionallity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 09:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5162829#M1195824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T09:58:51Z</dc:date>
    </item>
  </channel>
</rss>

