<?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 - Editable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524159#M240308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i make a field editable at runtime depending on the field value in some other field. &lt;/P&gt;&lt;P&gt;e.g. i have an internal table with fields A and B. and if value of field A is x then B should be editable if it is y then should not be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2006 15:03:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-01T15:03:52Z</dc:date>
    <item>
      <title>ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524159#M240308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i make a field editable at runtime depending on the field value in some other field. &lt;/P&gt;&lt;P&gt;e.g. i have an internal table with fields A and B. and if value of field A is x then B should be editable if it is y then should not be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524159#M240308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524160#M240309</link>
      <description>&lt;P&gt;Hi Amol Dubal  ,&lt;/P&gt;&lt;P&gt;Good &lt;/P&gt;&lt;P&gt;Check out the following code&lt;/P&gt;&lt;P&gt;should work fine&lt;/P&gt;&lt;P&gt;report zk_ex008.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;TABLES : ZAK_EMPLIST.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Data to be displayed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: itab_show type table of zak_emplist.&lt;/P&gt;&lt;P&gt;data: gs_layout type slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;HR /&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select * from zak_emplist into corresponding fields of table itab_show.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Eingabebereit&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;gs_layout-edit = 'X'.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Call ABAP List Viewer (ALV)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          i_callback_program      = 'ZK_EX008'&lt;/P&gt;&lt;P&gt;          i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;          i_structure_name        = 'ZAK_EMPLIST'&lt;/P&gt;&lt;P&gt;          is_layout               = gs_layout&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          t_outtab                = ITAB_SHOW.&lt;/P&gt;&lt;P&gt;form user_command using r_ucomm type sy-ucomm&lt;/P&gt;&lt;P&gt;                        rs_selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;  if r_ucomm = '&amp;amp;DATA_SAVE'.&lt;/P&gt;&lt;P&gt;    message i000(0k) with text-001.&lt;/P&gt;&lt;P&gt;    call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              i_structure_name = 'ZAK_EMPLIST'&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              t_outtab         = ITAB_SHOW.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;check out the following link for more information&lt;/P&gt;&lt;P&gt;[Removed by the moderator.]&lt;/P&gt;&lt;P&gt;Good luck and reward me for the same&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524160#M240309</guid>
      <dc:creator>ashok_kumar24116</dc:creator>
      <dc:date>2006-08-01T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524161#M240310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these threads..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1002140"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="67527"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="366072"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="87036"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1286289"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524161#M240310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T15:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524162#M240311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can have a look at the example programs named &amp;lt;b&amp;gt;BCALV_EDIT_**.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524162#M240311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T15:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524163#M240312</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Yes you can do that. Just check this sample code, it will help you lot in  this code i did it for row 6, but in your case for the rows which you want you have to do the same logic.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"{FOR DISABLE HERE 6ROW IS DISABLED
SY-TABIX = 6.
LS_EDIT-FIELDNAME = 'VBELN'.
LS_EDIT-STYLE = cl_gui_alv_grid=&amp;gt;MC_STYLE_DISABLED.

LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 10.
INSERT LS_EDIT INTO TABLE LT_EDIT.
LS_EDIT-FIELDNAME = 'POSNR'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 6.
INSERT LS_EDIT INTO TABLE LT_EDIT.
INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
MODIFY IT_VBAP INDEX SY-TABIX FROM LS_OUTTAB  TRANSPORTING
                                  HANDLE_STYLE .

X_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
"} UP TO HERE
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
  EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IS_LAYOUT_LVC      = X_LAYOUT
    IT_FIELDCAT_LVC    = IT_FIELDCAT
  TABLES
    T_OUTTAB           = IT_VBAP[]
  EXCEPTIONS
    PROGRAM_ERROR      = 1
    OTHERS             = 2.
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.]]&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay D T T.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/1524163#M240312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T15:32:54Z</dc:date>
    </item>
  </channel>
</rss>

