<?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 Re: Disable column when in edit mode. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318101#M794864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the fieldcatalog of the fields u want to the user to edit do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF u want to change field1 then in the field catalog of field1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IT_FIELDCAT-EDIT = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 10:27:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-05T10:27:06Z</dc:date>
    <item>
      <title>Disable column when in edit mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318100#M794863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the user to be able to input data in some columns of my ALV Grid, but not in all. How can I disable some columns for input, when the ALV Grid is in Input/Edit mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318100#M794863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T10:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Disable column when in edit mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318101#M794864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the fieldcatalog of the fields u want to the user to edit do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF u want to change field1 then in the field catalog of field1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IT_FIELDCAT-EDIT = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318101#M794864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T10:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Disable column when in edit mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318102#M794865</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; l_r_fieldcat-tabname = 'G_T_ITAB'.&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;l_r_fieldcat-edit = 'X'.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;l_r_fieldcat-outputlen = 10.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-seltext_m = 'Sales Order'.&lt;/P&gt;&lt;P&gt; APPEND l_r_fieldcat TO g_t_fieldcat.&lt;/P&gt;&lt;P&gt; CLEAR l_r_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318102#M794865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T11:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Disable column when in edit mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318103#M794866</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;Step 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this feild in ur Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field_style TYPE lvc_t_styl, "FOR DISABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM build_layout.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set layout field for field attributes(i.e. input/output)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-no_input          = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_layout-cwidth_opt = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-stylefname = 'FIELD_STYLE'.&lt;/P&gt;&lt;P&gt;  gd_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-info_fname = 'LINE_COL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*step-2 * Call this Subroutine before Fieldcatalog........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_specific_field_attributes .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  DATA ls_stylerow TYPE lvc_s_styl .&lt;/P&gt;&lt;P&gt;  DATA lt_styletab TYPE lvc_t_styl .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;clear : ls_stylerow.&lt;/P&gt;&lt;P&gt;clear : wa_final-field_style.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;refresh WA_FINAL-FIELD_STYLE[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate style variable (FIELD_STYLE) with style properties&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The following code sets it to be disabled(display only)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if child deal Ticket Number Approved or rejected.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_final INTO wa_final.&lt;/P&gt;&lt;P&gt;    IF wa_final-apprd = 'X' or wa_final-rejct = 'X'.&lt;/P&gt;&lt;P&gt;        ls_stylerow-fieldname = 'APPRD' .    &lt;/P&gt;&lt;P&gt;        ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;        APPEND ls_stylerow TO wa_final-field_style.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        MODIFY it_final FROM wa_final.   "my Internal table, Replace ur internal table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        ls_stylerow-fieldname = 'REJCT' .    " ur field name&lt;/P&gt;&lt;P&gt;        ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;        APPEND ls_stylerow TO wa_final-field_style.&lt;/P&gt;&lt;P&gt;        MODIFY it_final FROM wa_final.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; like this u have to add for all colunms in ur report which u &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; want to disable.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Note the stylerow appending should be in Alphabetic order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDFORM. " set_specific_field_attributes&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;bgan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode/m-p/3318103#M794866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T11:06:39Z</dc:date>
    </item>
  </channel>
</rss>

