<?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: itab problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196937#M469019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind &amp;amp; Narendra,&lt;/P&gt;&lt;P&gt;I got it with insert statement...&lt;/P&gt;&lt;P&gt;Points alloted to both of u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2007 22:10:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-10T22:10:10Z</dc:date>
    <item>
      <title>itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196933#M469015</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;I have created my itab like this..for ALV grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of gt_stage occurs 0.  
        include structure zbitstge.
data: field_style type lvc_t_styl.
data: end of gt_stage.

data: ls_stylerow type lvc_s_styl,
      lt_styletab type lvc_t_styl.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam trying to inserting the styles for fields to modify..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      loop at gt_stage.
        ls_stylerow-fieldname = 'KOSTL'.
        ls_stylerow-style = gv_grid-&amp;gt;mc_style_enabled.
        append ls_stylerow to gt_stage-field_style.
        modify gt_stage.
      endloop. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam able to inesrt few fields bofre KOSTL. But it comes to KOSTL iam getting following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Error inserting into or changing a sorted table&lt;/P&gt;&lt;P&gt;You tried to insert or change a line at position 4 in the internal               &lt;/P&gt;&lt;P&gt;table "\PROGRAM=ZBIPSTGE\DATA=GT_STAGE-FIELD_STYLE" (of the kind SORTED_TABLE).  &lt;/P&gt;&lt;P&gt;This violated the sort sequence of the table, which was laid down when           &lt;/P&gt;&lt;P&gt;the table was declared. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the meaning of this error? Where iam doing wrong?                                                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward guraranteed&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 21:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196933#M469015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T21:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196934#M469016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of sorted tables, you have to maintain sort sequence. So you have to insert in the correct sort order. Otherwise try using 'insert' statement instead of append. That might work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 22:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196934#M469016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T22:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196935#M469017</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     loop at gt_stage.&lt;/P&gt;&lt;P&gt;        ls_stylerow-fieldname = 'KOSTL'.&lt;/P&gt;&lt;P&gt;        ls_stylerow-style = gv_grid-&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;        append ls_stylerow to lt_styletab.&lt;/P&gt;&lt;P&gt;        gt_stage-field_style[] = lt_styletab[].&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;        modify gt_stage.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;        refresh lt_styletab.&amp;lt;/b&amp;gt;&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 22:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196935#M469017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T22:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196936#M469018</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;If it is sorted table try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_stage.&lt;/P&gt;&lt;P&gt;ls_stylerow-fieldname = 'KOSTL'.&lt;/P&gt;&lt;P&gt;ls_stylerow-style = gv_grid-&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INSERT ls_stylerow INTO TABLE lt_styletab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;gt_stage-field_style[] = lt_styletab[].&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;modify gt_stage.&lt;/P&gt;&lt;P&gt;refresh lt_styletab.&amp;lt;/b&amp;gt;&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 22:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196936#M469018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T22:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196937#M469019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind &amp;amp; Narendra,&lt;/P&gt;&lt;P&gt;I got it with insert statement...&lt;/P&gt;&lt;P&gt;Points alloted to both of u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 22:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/2196937#M469019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T22:10:10Z</dc:date>
    </item>
  </channel>
</rss>

