<?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: TABLE_INVALID_INDEX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721583#M1455517</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;please insert code which causes error.&lt;/P&gt;&lt;P&gt;You just inserted analysis of the exception, but you want to find the reason.&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;--&lt;/P&gt;&lt;P&gt;Przemysław&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Mar 2010 13:12:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-16T13:12:02Z</dc:date>
    <item>
      <title>TABLE_INVALID_INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721582#M1455516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error in ST22, please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program; The current ABAP program "CL_ALV_CHANGED_DATA_PROTOCOL==CP" had to be&lt;/P&gt;&lt;P&gt;     terminated because it has come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analysis&lt;/P&gt;&lt;P&gt;When changing or deleting one or more lines of the internal table "&lt;SPAN __jive_macro_name="A"&gt;&lt;/SPAN&gt;" or when inserting in the table      "&lt;SPAN __jive_macro_name="A"&gt;&lt;/SPAN&gt;", 0 was used as the line index. An index less than or equal to zero is not &lt;/P&gt;&lt;P&gt;allowed. The error can occur when using the following options:&lt;/P&gt;&lt;P&gt;    1. "INDEX idx" for specifying the line number in the table&lt;/P&gt;&lt;P&gt;     "&lt;SPAN __jive_macro_name="A"&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;       where you want to change, insert or delete.&lt;/P&gt;&lt;P&gt;    2. "FROM idx" for specifying the start index when deleting a line&lt;/P&gt;&lt;P&gt;       area from or inserting a line area into the table&lt;/P&gt;&lt;P&gt;     "&lt;SPAN __jive_macro_name="A"&gt;&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;    3. "TO idx" for specifying the end index when deleting a line&lt;/P&gt;&lt;P&gt;       area from or inserting a line area into the table&lt;/P&gt;&lt;P&gt;     "&lt;SPAN __jive_macro_name="A"&gt;&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721582#M1455516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T13:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE_INVALID_INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721583#M1455517</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;please insert code which causes error.&lt;/P&gt;&lt;P&gt;You just inserted analysis of the exception, but you want to find the reason.&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;--&lt;/P&gt;&lt;P&gt;Przemysław&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721583#M1455517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T13:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE_INVALID_INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721584#M1455518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;possibly an empty table since the index is zero or possibly an error in setting the index value in the code...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721584#M1455518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE_INVALID_INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721585#M1455519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the code with error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   15   if i_tabix is initial.                                                                     
   16     read table mt_mod_cells into ls_modi with key row_id = i_row_id.                         
   17     if sy-subrc = 0.                                                                         
   18       i_tabix = ls_modi-tabix.                                                               
   19     endif.                                                                                
20   endif.                                                                                
21                                                                                
22   read table &amp;lt;lt_tab&amp;gt; into &amp;lt;ls_wa&amp;gt; index i_tabix.                                            
   23   assign component i_fieldname of structure &amp;lt;ls_wa&amp;gt; to &amp;lt;l_field&amp;gt;.                            
   24   if i_value is initial.                                                                     
   25     clear &amp;lt;l_field&amp;gt;.                                                                         
   26   else.                                                                                
27     &amp;lt;l_field&amp;gt; = i_value.                                                                     
   28   endif.                                                                                
29   modify &amp;lt;lt_tab&amp;gt; from &amp;lt;ls_wa&amp;gt; index i_tabix.                                                
======   if sy-subrc = 0.                                                                           
   31     if i_row_id is initial.                                                                  
   32       read table mt_mod_cells into ls_modi index i_tabix.                                    
   33       i_row_id = ls_modi-row_id.                                                             
   34     endif.                                                                                
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Víctor Barahona Cimas on Mar 16, 2010 2:23 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 16, 2010 9:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721585#M1455519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T13:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE_INVALID_INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721586#M1455520</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;CHeck if in one of this cases:&lt;/P&gt;&lt;P&gt;1. "INDEX idx" &lt;/P&gt;&lt;P&gt;2. "FROM idx" &lt;/P&gt;&lt;P&gt;3. "TO idx" &lt;/P&gt;&lt;P&gt;your index is 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also can be in "modify itab index idx" or just modify itab without index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yossi Rozenberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721586#M1455520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T13:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE_INVALID_INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721587#M1455521</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;use READ TABLE ... ASSIGNING &amp;lt;fs&amp;gt; not READ TABLE ... INTO &amp;lt;fs&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_tabix is 0, you should add IF - ENDIF.&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;--&lt;/P&gt;&lt;P&gt;Przemysław&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-invalid-index/m-p/6721587#M1455521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T13:27:30Z</dc:date>
    </item>
  </channel>
</rss>

