<?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: Set conditional ALV row editable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539861#M1562272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debojyoti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I don't want to change whole table column as editable. I just want to change the column of the particular row as editable which I recently inserted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jan 2011 07:23:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-18T07:23:43Z</dc:date>
    <item>
      <title>Set conditional ALV row editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539859#M1562270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying an ALv in module pool. This ALV have some as display mode and some fields in Editable mode. I have a button an ALV toolbar to insert a new ALV row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is when I Insert a new entry in this ALV row, I want all the column of that patricular row comes in editable mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 07:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539859#M1562270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-18T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set conditional ALV row editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539860#M1562271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Sanket when inserting new row you must be regenarating the alv again using a new field catalog right .  Can you put edit = x  when insterting the new field in the field catalog .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 07:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539860#M1562271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-18T07:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set conditional ALV row editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539861#M1562272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debojyoti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I don't want to change whole table column as editable. I just want to change the column of the particular row as editable which I recently inserted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 07:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539861#M1562272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-18T07:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set conditional ALV row editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539862#M1562273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 07:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539862#M1562273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-18T07:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set conditional ALV row editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539863#M1562274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose you are using gt_itab in ALV.&lt;/P&gt;&lt;P&gt;Now this Table should of Type one Database Table or Structure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert "t_style" as a column in that table or Structure&lt;/P&gt;&lt;P&gt;t_style should be of type "LVC_T_STYL"&lt;/P&gt;&lt;P&gt;Now you have one more Column in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Column will be used in Setting Layout of Every row Which should be in Edit mode and which should not be.&lt;/P&gt;&lt;P&gt;it all depends on value Present in Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now see the following Subroutine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose Database Table and Structure zs_itab contains following Columns :&lt;/P&gt;&lt;P&gt;COL1&lt;/P&gt;&lt;P&gt;COL2&lt;/P&gt;&lt;P&gt;COL3&lt;/P&gt;&lt;P&gt;t_style&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 edit_mode_determine  CHANGING lwa_itab TYPE zs_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : lwa_style TYPE lvc_s_styl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH lwa_itab-t_style.&lt;/P&gt;&lt;P&gt;  CLEAR lwa_style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF   lwa_itab-COL1 IS INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lwa_style-fieldname = 'COL1'.&lt;/P&gt;&lt;P&gt;    lwa_style-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled.    "Enabled will enable cell to be Editable&lt;/P&gt;&lt;P&gt;    INSERT lwa_style INTO TABLE lwa_itab-t_style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lwa_style-fieldname = 'COL1'.&lt;/P&gt;&lt;P&gt;    lwa_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.    "Disabled will make cell to be not Editable&lt;/P&gt;&lt;P&gt;    INSERT lwa_style INTO TABLE  lwa_itab-t_style.&lt;/P&gt;&lt;P&gt;&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;  IF   lwa_itab-COL2 IS INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lwa_style-fieldname = 'COL2'.&lt;/P&gt;&lt;P&gt;    lwa_style-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled.    "Enabled will enable cell to be Editable&lt;/P&gt;&lt;P&gt;    INSERT lwa_style INTO TABLE lwa_itab-t_style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lwa_style-fieldname = 'COL2'.&lt;/P&gt;&lt;P&gt;    lwa_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.    "Disabled will make cell to be not Editable&lt;/P&gt;&lt;P&gt;    INSERT lwa_style INTO TABLE  lwa_itab-t_style.&lt;/P&gt;&lt;P&gt;&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;  IF   lwa_itab-COL3 IS INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lwa_style-fieldname = 'COL3'.&lt;/P&gt;&lt;P&gt;    lwa_style-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled.    "Enabled will enable cell to be Editable&lt;/P&gt;&lt;P&gt;    INSERT lwa_style INTO TABLE lwa_itab-t_style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lwa_style-fieldname = 'COL3'.&lt;/P&gt;&lt;P&gt;    lwa_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.    "Disabled will make cell to be not Editable&lt;/P&gt;&lt;P&gt;    INSERT lwa_style INTO TABLE  lwa_itab-t_style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By above Code you will be able to set whether row is Editable or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you need to Specify this "t_style" in ls_layout which is passed in Field_catalog_prepare&lt;/P&gt;&lt;P&gt;ls_layout-stylefname = 'T_STYLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only after exporting this layout variable you will be able to see Changes in ALV Grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 07:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539863#M1562274</guid>
      <dc:creator>anilsonesar</dc:creator>
      <dc:date>2011-01-18T07:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set conditional ALV row editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539864#M1562275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil. I am looking for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 09:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539864#M1562275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-18T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set conditional ALV row editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539865#M1562276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the reply be &lt;A __default_attr="40562" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="anil sonesar" href="https://community.sap.com/" modifiedtitle="true" title="Anil Sonesar"&gt;&lt;/A&gt; as answer, for &lt;SPAN style="font-size: 13.3333330154419px;"&gt;quicker reference and &lt;/SPAN&gt;the benefit of community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 12:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-conditional-alv-row-editable/m-p/7539865#M1562276</guid>
      <dc:creator>Abhijeet-K</dc:creator>
      <dc:date>2015-07-08T12:16:27Z</dc:date>
    </item>
  </channel>
</rss>

