<?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: Disabling fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043152#M966434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, replace the &lt;STRONG&gt;APPEND&lt;/STRONG&gt; statement with &lt;STRONG&gt;INSERT&lt;/STRONG&gt; statement and check if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jun 2008 07:24:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-14T07:24:44Z</dc:date>
    <item>
      <title>Disabling fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043151#M966433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD gr_alvgrid-&amp;gt;get_selected_rows
    IMPORTING
      et_row_no = lt_selected_rows.
  LOOP AT lt_selected_rows INTO ls_selected_row.
    REFRESH lt_styletab.
    READ TABLE i_output INTO ls_listrow INDEX ls_selected_row-row_id.
    IF sy-subrc = 0 .
      ls_stylerow-fieldname = 'ZZ_ACC_ASSGN'.
      ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled .
      APPEND ls_stylerow TO lt_styletab .
      CLEAR ls_stylerow.

      ls_stylerow-fieldname = 'ZZ_DEPT_NAME' .
      ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled .
      APPEND ls_stylerow TO lt_styletab .
      CLEAR ls_stylerow.

      ls_stylerow-fieldname = 'ZZ_ROOM_NR' .
      ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled .
      APPEND ls_stylerow TO lt_styletab .
      CLEAR ls_stylerow.

      ls_stylerow-fieldname = 'ZZ_LOC' .
      ls_stylerow-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled .
      APPEND ls_stylerow TO lt_styletab .
      CLEAR ls_stylerow.
    ENDIF .
    APPEND LINES OF lt_styletab TO ls_listrow-cellstyles.
    MODIFY i_output FROM ls_listrow INDEX ls_selected_row-row_id TRANSPORTING cellstyles.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi I have given the code as above to disable my fields. But I am getting a runtime error as "A line is to be inserted or changed at position 3 in the sorted&lt;/P&gt;&lt;P&gt;internal table (type SORTED_TABLE)&lt;/P&gt;&lt;P&gt; "\PROGRAM=ZIAB_E_03_COPY\FORM=S_DISABLE_FIELDS\DATA=LT_STYLETAB".&lt;/P&gt;&lt;P&gt;In doing so, the sorting sequence - determined by the table key - was&lt;/P&gt;&lt;P&gt;destroyed."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anybody know wat it is??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2008 07:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043151#M966433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-14T07:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043152#M966434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, replace the &lt;STRONG&gt;APPEND&lt;/STRONG&gt; statement with &lt;STRONG&gt;INSERT&lt;/STRONG&gt; statement and check if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2008 07:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043152#M966434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-14T07:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043153#M966435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked with INSERT also. It is telling me the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2008 07:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043153#M966435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-14T07:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043154#M966436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; TRY OUT THIS REFRESH AND CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH listrow-cellstyles.&lt;/P&gt;&lt;P&gt;APPEND LINES OF lt_styletab TO ls_listrow-cellstyles.&lt;/P&gt;&lt;P&gt;    MODIFY i_output FROM ls_listrow INDEX ls_selected_row-row_id TRANSPORTING cellstyles.&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;RAJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raj D on Jun 14, 2008 9:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2008 07:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043154#M966436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-14T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043155#M966437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the syntax for inserting into SORTED tables is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INSERT ls_stylerow INTO TABLE lt_styletab 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must use the &lt;STRONG&gt;TABLE&lt;/STRONG&gt; keyword!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2008 10:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-fields/m-p/4043155#M966437</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-06-14T10:59:20Z</dc:date>
    </item>
  </channel>
</rss>

