<?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: Problem in OOPs ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131636#M1189498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one  can make any  row in alv edittable by specifying the style as enabled or disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at your internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF your identifier is x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls_stylerow to &amp;lt;work area&amp;gt;-field_style.&lt;/P&gt;&lt;P&gt;modify internal table from work area.&lt;/P&gt;&lt;P&gt;else.&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 &amp;lt;work area&amp;gt;-field_style.&lt;/P&gt;&lt;P&gt;modify internal table from work area.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this if your identifier is x or blank the row will be non edittable otherwise it will be in edittable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pratyush v on Feb 4, 2009 6:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2009 05:41:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-04T05:41:09Z</dc:date>
    <item>
      <title>Problem in OOPs ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131634#M1189496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying my list output using OOPs ALV. In this, I have to keep few fields as editable &amp;amp; others in display only. My requirement is, I have a field in my internal table. If that field has value 'X' then that particular row of ALV is to be display mode only. No field in that row should be editable. How to achieve this? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131634#M1189496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in OOPs ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131635#M1189497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_vbrk OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE zsvbrk.&lt;/P&gt;&lt;P&gt;DATA: status TYPE statusicon30.&lt;/P&gt;&lt;P&gt;DATA: modify TYPE statusicon30.&lt;/P&gt;&lt;P&gt;DATA: cltab TYPE lvc_t_styl.                      """Add field for cell style&lt;/P&gt;&lt;P&gt;DATA: messages TYPE lvc_t_msg1.&lt;/P&gt;&lt;P&gt;DATA: row_no TYPE lvc_s_roid-row_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: END OF t_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM set_style TABLES t_vbrk[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form set_style&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;P_T_VBRK[] text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;FORM set_style TABLES p_t_vbrk STRUCTURE t_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_cell TYPE lvc_t_styl,&lt;/P&gt;&lt;P&gt;l_ind TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT p_t_vbrk .&lt;/P&gt;&lt;P&gt;l_ind = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;Check for field value "X" &amp;amp; fill cells as RO ( Read Only ) or RW ( Editable ) &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM fill_tab USING 'RO' CHANGING lt_cell. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT LINES OF lt_cell INTO TABLE p_t_vbrk-cltab.&lt;/P&gt;&lt;P&gt;p_t_vbrk-row_no = l_ind.&lt;/P&gt;&lt;P&gt;MODIFY p_t_vbrk INDEX l_ind.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form FILL_TAB&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;P_0239 text &lt;/P&gt;&lt;P&gt;&amp;lt;--P_LT_CELL text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;FORM fill_tab USING value(p_mode)&lt;/P&gt;&lt;P&gt;CHANGING p_lt_cell TYPE lvc_t_styl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_cell TYPE lvc_s_styl,&lt;/P&gt;&lt;P&gt;l_mode TYPE raw4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_mode = 'RW'.&lt;/P&gt;&lt;P&gt;l_mode = cl_gui_alv_grid=&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;l_mode = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_cell-fieldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;ls_cell-style = l_mode.&lt;/P&gt;&lt;P&gt;INSERT ls_cell INTO TABLE p_lt_cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_cell-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;ls_cell-style = l_mode.&lt;/P&gt;&lt;P&gt;INSERT ls_cell INTO TABLE p_lt_cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " FILL_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solve ur problem..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131635#M1189497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in OOPs ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131636#M1189498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one  can make any  row in alv edittable by specifying the style as enabled or disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at your internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF your identifier is x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls_stylerow to &amp;lt;work area&amp;gt;-field_style.&lt;/P&gt;&lt;P&gt;modify internal table from work area.&lt;/P&gt;&lt;P&gt;else.&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 &amp;lt;work area&amp;gt;-field_style.&lt;/P&gt;&lt;P&gt;modify internal table from work area.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this if your identifier is x or blank the row will be non edittable otherwise it will be in edittable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pratyush v on Feb 4, 2009 6:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131636#M1189498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in OOPs ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131637#M1189499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Thank you very much for your answer.I am making the fields editable by passing EDIT = X in field catalog as I want only few fields to be editable &amp;amp; not all.As per your solution if the identifier is not X then all the fields in row will be editable which again I dont want. So I am not sure whether this solution will work . Still I will try  but if you can provide me with some other solution then please do. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ANUGRAH PRAKASH on Feb 4, 2009 1:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 08:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-oops-alv/m-p/5131637#M1189499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T08:11:44Z</dc:date>
    </item>
  </channel>
</rss>

