<?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: Remove field in Alv grid module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326442#M1227452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I  was late....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2009 05:53:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-17T05:53:44Z</dc:date>
    <item>
      <title>Remove field in Alv grid module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326437#M1227447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where in I need to remove a field on the display screen for a particular record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In detail..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a created a module pool program where in the final out put was shown using CL_gui_alv_grid on the new screen.The normal display will start with a check box(editable),kunnr,ktokd etc..The requirement is for a particular ktokd(9009 or 1001) the check box should either disappear or disable.Please help me out in achieving this.Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Srini...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 05:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326437#M1227447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T05:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field in Alv grid module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326438#M1227448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk this links.Using conditions we can set the display&lt;/P&gt;&lt;P&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="831959"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&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="1926784"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this function module.'REUSE_ALV_HIERSEQ_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lakshman N on Mar 17, 2009 6:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 05:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326438#M1227448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T05:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field in Alv grid module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326439#M1227449</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;You can do like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA ls_listrow LIKE LINE OF i_list .  " i_list is ur final int table
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
LOOP AT i_list INTO ls_listrow .
IF ls_listrow-ktokd = '9009' or ls_listrow-ktokd = '1001' .
ls_stylerow-fieldname = 'CHECKBOX' .    " 'CHECKBOX' --&amp;gt; field name u've given to checkbox field
ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled .
APPEND ls_stylerow TO lt_styletab .
ENDIF .
INSERT LINES OF lt_styletab INTO ls_listrow-cellstyles .
MODIFY i_list FROM ls_listrow .
ENDLOOP .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i hope this fulfills ur requirement...&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 05:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326439#M1227449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T05:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field in Alv grid module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326440#M1227450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman and Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your immediate response.I think my issue is fixed.Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Srini...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 05:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326440#M1227450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T05:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field in Alv grid module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326441#M1227451</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;NOTE: Please dont confuse with gt_style table, &amp;amp; structure in gt_soitems internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While populating ALV layout use the STYLE name as below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare data: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Itab to display data in ALV
DATA: BEGIN OF gt_soitems OCCURS 0,
           --------------------application data fields
           gt_style   TYPE lvc_t_styl,          " To make editable
       END OF gt_soitems.

* Structures / Table for ALV styles
DATA: gs_soitems      LIKE gt_soitems, " Sales Order line items
           gs_style        TYPE lvc_s_styl, " Style - Stucture
           gt_style        TYPE lvc_t_styl. " Style - Table
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Populate ALV Layout: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*-Populate ALV layout
  gs_layout-zebra       = gc_x.       " Zebra print
  gs_layout-no_author   = gc_x.       " No Author
  gs_layout-no_rowmark  = gc_x.       " Hide row selection
  gs_layout-stylefname  = 'GT_STYLE'.  " Style
  gs_layout-CWIDTH_OPT  = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*-Disable - FIELD1
           gs_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.
           gs_style-fieldname = 'FIELD1'.
           APPEND gs_style TO gt_style.

     gs_soitems-gt_style = gt_style.

           MODIFY gt_soitems INDEX lv_index FROM gs_soitems
           TRANSPORTING gt_style disable.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 05:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326441#M1227451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T05:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field in Alv grid module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326442#M1227452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I  was late....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 05:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5326442#M1227452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T05:53:44Z</dc:date>
    </item>
  </channel>
</rss>

