<?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 2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode-2/m-p/3413541#M819847</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;will you please elaborate your query .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that at what scenario you need to disable the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 12:29:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T12:29:50Z</dc:date>
    <item>
      <title>Disable column when in edit mode 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode-2/m-p/3413539#M819845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some time ago I posted the thread: &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="742756"&gt;&lt;/A&gt; in order to disable an ALV grid column for user input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I disable the column even if the user adds a new row to the editable ALV Grid control?&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;How can I show in the disabled column information that is read from the database during user input? For instance, if the user presses ENTER?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help! Obviously, points will be rewarded.&lt;/P&gt;&lt;P&gt;Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 16:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode-2/m-p/3413539#M819845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T16:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disable column when in edit mode 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode-2/m-p/3413540#M819846</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;U need to go for styles in alv grid.  U can define a style for each cell in which u can manage editable or disable in that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This u can handle in PBO each time conditionally.  See the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add one field in your output internal table as below for populating the style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CELLTAB    TYPE LVC_T_STYL,   " for input enabling the cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a table type.  U need to populate this field in each row with its type to enabled or disabled as below and style for which field in your internal table.  Here it is WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CELLTAB-FIELDNAME = 'WERKS'.&lt;/P&gt;&lt;P&gt;CELLTAB-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_DISABLED.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;CELLTAB-FIELDNAME = 'WERKS'.&lt;/P&gt;&lt;P&gt;CELLTAB-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_ENABLED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert this table in the field CELLTAB of  your internal table.&lt;/P&gt;&lt;P&gt;in each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And populate the layout with style field name.  Here our field is CELLTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; GS_LAYOUT-STYLEFNAME  = 'CELLTAB'.&lt;/P&gt;&lt;P&gt; GS_LAYOUT-EDIT        = GC_X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 06:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode-2/m-p/3413540#M819846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Disable column when in edit mode 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode-2/m-p/3413541#M819847</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;will you please elaborate your query .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that at what scenario you need to disable the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 12:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-column-when-in-edit-mode-2/m-p/3413541#M819847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T12:29:50Z</dc:date>
    </item>
  </channel>
</rss>

