<?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/5334539#M1229093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this sample report can be of some use &lt;STRONG&gt;BCALV_EDIT_05&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2009 07:57:36 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2009-03-17T07:57:36Z</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/5334538#M1229092</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 record 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;Initially I got very good response from Neha and Satya and felt very confident enough in the fix but I dont know where I am doing wrong the issue is not yet fixed.Satya or Neha can you tell me where am I doing wrong seeing the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:BEGIN OF lty_final,&lt;/P&gt;&lt;P&gt;      chbox       TYPE char1,&lt;/P&gt;&lt;P&gt;      org_nam     TYPE name1_gp,&lt;/P&gt;&lt;P&gt;      vkorg       TYPE vkorg,&lt;/P&gt;&lt;P&gt;      parvw       TYPE parvw,&lt;/P&gt;&lt;P&gt;      ktokd       TYPE ktokd,&lt;/P&gt;&lt;P&gt;      kunnr       TYPE kunnr,&lt;/P&gt;&lt;P&gt;      pr_cnt      TYPE char3,&lt;/P&gt;&lt;P&gt;      fir_nam     TYPE name1_gp,&lt;/P&gt;&lt;P&gt;      las_nam     TYPE name1_gp,&lt;/P&gt;&lt;P&gt;      parau       TYPE parau,&lt;/P&gt;&lt;P&gt;      telf1       TYPE telf1,&lt;/P&gt;&lt;P&gt;      STYLE       TYPE lvc_t_styl,        " New field added in the structure&lt;/P&gt;&lt;P&gt;     END OF lty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:lt_final type table of lty_final,&lt;/P&gt;&lt;P&gt;       ls_final type lty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ls_stylerow TYPE lvc_s_styl ,&lt;/P&gt;&lt;P&gt;       lt_styletab TYPE lvc_t_styl .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_final into ls_final.          """Final internal table&lt;/P&gt;&lt;P&gt;    if ls_final-pr_cnt = lc_yes.&lt;/P&gt;&lt;P&gt;      ls_stylerow-FIELDNAME = 'CHBOX'.&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 lt_styletab.&lt;/P&gt;&lt;P&gt;      CLEAR ls_stylerow.&lt;/P&gt;&lt;P&gt;      ls_final-STYLE = LT_STYLETAB.&lt;/P&gt;&lt;P&gt;      MODIFY lt_final INDEX sy-tabix FROM ls_final TRANSPORTING style.&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;gs_layout-zebra        = 'X'.&lt;/P&gt;&lt;P&gt;  gs_layout-edit         = ' '.&lt;/P&gt;&lt;P&gt;  gs_layout-no_rowmark   = 'X'.&lt;/P&gt;&lt;P&gt;  gs_layout-stylefname   = 'LT_STYLETAB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD grid_display-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_save                        = 'X'&lt;/P&gt;&lt;P&gt;      i_default                     = 'X'&lt;/P&gt;&lt;P&gt;      is_layout                     = gs_layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = lt_final&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = gt_fieldcat&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;      program_error                 = 2&lt;/P&gt;&lt;P&gt;      too_many_lines                = 3&lt;/P&gt;&lt;P&gt;      OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&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 07:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5334538#M1229092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T07:41:51Z</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/5334539#M1229093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this sample report can be of some use &lt;STRONG&gt;BCALV_EDIT_05&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 07:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5334539#M1229093</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-17T07:57:36Z</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/5334540#M1229094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following codes in loop it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at lt_final into ls_final. """Final internal table
if ls_final-pr_cnt = lc_yes.
ls_stylerow-FIELDNAME = 'CHBOX'.
ls_stylerow-STYLE = cl_gui_alv_grid=&amp;gt;mc_style_disabled .
INSERT ls_stylerow  INTO TABLE lt_final-STYLE.                         " use insert
*APPEND ls_stylerow TO lt_styletab.
*CLEAR ls_stylerow.
*ls_final-STYLE = LT_STYLETAB.
*MODIFY lt_final INDEX sy-tabix FROM ls_final TRANSPORTING style.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 08:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-field-in-alv-grid-module-pool/m-p/5334540#M1229094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T08:10:39Z</dc:date>
    </item>
  </channel>
</rss>

