<?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: Run time error invalid_table_index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-invalid-table-index/m-p/7741080#M1581804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 20:36:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-28T20:36:27Z</dc:date>
    <item>
      <title>Run time error invalid_table_index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-invalid-table-index/m-p/7741078#M1581802</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;below program I am getting dump when running background in production. The yarrow mark showing exactly the PERFORM trace_change .Can some body help me I think modify commmand only creating dump where index is zero..need help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I got from dump[:&lt;/P&gt;&lt;P&gt;Short text	Error in ABAP/4 statement when processing an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?		&lt;/P&gt;&lt;P&gt;		Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		The current ABAP program "SAPLVED4" had to be terminated because it has&lt;/P&gt;&lt;P&gt;		come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Error analysis		&lt;/P&gt;&lt;P&gt;			When changing or deleting one or more lines of the internal table&lt;/P&gt;&lt;P&gt;			\PROGRAM=RBDAPP01\DATA=DOCNUM[] or when inserting in the table&lt;/P&gt;&lt;P&gt;			 "\PROGRAM=RBDAPP01\DATA=DOCNUM[]", 0 was used as&lt;/P&gt;&lt;P&gt;			the line index. An index less than or equal to zero is not&lt;/P&gt;&lt;P&gt;			allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			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;			 "\PROGRAM=RBDAPP01\DATA=DOCNUM[]"&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;			 "\PROGRAM=RBDAPP01\DATA=DOCNUM[]".&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;			 "\PROGRAM=RBDAPP01\DATA=DOCNUM[]".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			At the time of the termination, the table contained 0 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	How to correct the error		&lt;/P&gt;&lt;P&gt;			If the error occurred in your own ABAP program or in an SAP&lt;/P&gt;&lt;P&gt;			program you modified, try to remove the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			If the error occures in a non-modified SAP program, you may be able to&lt;/P&gt;&lt;P&gt;			find an interim solution in an SAP Note.&lt;/P&gt;&lt;P&gt;			If you have access to SAP Notes, carry out a search with the following&lt;/P&gt;&lt;P&gt;			keywords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			TABLE_INVALID_INDEX " "&lt;/P&gt;&lt;P&gt;			SAPLVED4 or "ZUEXIT01"&lt;/P&gt;&lt;P&gt;			INCREASE_CUMS_RECEIVED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			If you cannot solve the problem yourself and want to send an error&lt;/P&gt;&lt;P&gt;			notification to SAP, include the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			1. The description of the current problem (short dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			   To save the description, choose "System-&amp;gt;List-&amp;gt;Save-&amp;gt;Local File&lt;/P&gt;&lt;P&gt;			(Unconverted)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE vblb-abefz TO abefz.         "NO-SIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE xidoc&lt;/P&gt;&lt;P&gt;   WITH KEY segnam = 'E1EDP10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tmp_e1edp10       = xidoc-sdata.&lt;/P&gt;&lt;P&gt;  tmp_e1edp10-akuem = abefz.&lt;/P&gt;&lt;P&gt;  xidoc-sdata = tmp_e1edp10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;MODIFY  xidoc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;INDEX sy-tabix.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  PERFORM trace_change USING 'AKUEM'&lt;/P&gt;&lt;P&gt;                           space&lt;/P&gt;&lt;P&gt;                           abefz&lt;/P&gt;&lt;P&gt;         'Rule 5.1: No Cml.qty received sent by Customer.'.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " INCREASE_CUMS_RECEIVED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 11:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-invalid-table-index/m-p/7741078#M1581802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-22T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error invalid_table_index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-invalid-table-index/m-p/7741079#M1581803</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;Put a Sy-SUBRC check after your READ statement to check whether you got the right record in your internal table before using MODIFY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WRITE vblb-abefz TO abefz. "NO-SIGN.

READ TABLE xidoc
WITH KEY segnam = 'E1EDP10'.
if sy-subrc = 0.                                    " Added the line
tmp_e1edp10 = xidoc-sdata.
tmp_e1edp10-akuem = abefz.
xidoc-sdata = tmp_e1edp10.

MODIFY xidoc
INDEX sy-tabix.
endif.                                                   " Added the line
PERFORM trace_change USING 'AKUEM'
space
abefz
'Rule 5.1: No Cml.qty received sent by Customer.'.
ENDFORM. " INCREASE_CUMS_RECEIVED
&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;Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 12:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-invalid-table-index/m-p/7741079#M1581803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-22T12:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error invalid_table_index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-invalid-table-index/m-p/7741080#M1581804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 20:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-invalid-table-index/m-p/7741080#M1581804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-28T20:36:27Z</dc:date>
    </item>
  </channel>
</rss>

