Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP runtime errors

Former Member
0 Likes
4,342

Hello Friends,

Could you please give me a soluction or a link through which i can solve this ABAP Runtime error.

ABAP runtime errors : TABLE_INVALID_INDEX

Program Name: SAPLALDB

Include Name: LALDBF02

Subroutine: TAKE_ONE_LINE_TABC

Transaction :"SQ01 "

Information on where termination occurred

The termination occurred in the ABAP/4 program "SAPLALDB " in

"TAKE_ONE_LINE_TABC".

The main program was "AQW8MACHINES====ZDOC_LAST_READ ".

The termination occurred in line 1403

of the source code of program "LALDBF02 " (when calling the editor 14030).

Error analysis

When chaging or deleting one or more lines of the internal table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]" or when inserting in the

table "\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]", "-2" was used as

the line index. An index less than or equal to zero is not

allowed.

The error can occur when using the following options:

1. "INDEX idx" for specifying the line number in the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]"

where you want to change, insert or delete.

2. "FROM idx" for specifying the start index when deleting a line

area from or inserting a line area into the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]".

3. "TO idx" for specifying the end index when deleting a line

area from or inserting a line area into the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]".

Source code extract

013730 IMPORTING

013740 SIGN = P_SIGN

013750 OPTION = P_OPTION

013760 EXCEPTIONS

013770 NOT_EXECUTED = 4

013780 DELETE_LINE = 8.

013790

013800 L_SUBRC = SY-SUBRC.

013810 FCODE = L_FCODE.

013820 CASE L_SUBRC.

013830 WHEN 0.

013840 WHEN 4.

013960 MOVE: <L_LOW> TO <L_WH_LOW>,

013970 <L_HIGH> TO <L_WH_HIGH>.

013980 ENDIF.

013990

014000 CASE L_ACTION.

014010 WHEN 'M'. " Modify

014020 MODIFY P_SEL INDEX P_INDEX-INDEX.

-


> WHEN 'A'. " Append

014040 MOVE P_I_OR_E TO P_SIGN.

014050 APPEND P_SEL.

014060 MOVE SY-TABIX TO P_INDEX-INDEX.

014070 APPEND P_INDEX.

014080 ADD 1 TO P_INFO-FILL.

014090 WHEN 'I'. " Insert

014100 PERFORM INSERT_SELTAB_LINE

014110 TABLES P_SEL P_INDEX

014120 USING L_LINENUMBER.

014130 ADD 1 TO P_INFO-FILL.

014140 CLEAR P_INFO-OLD_INSERT_INDEX.

014150 WHEN 'D'. " Delete

014160 PERFORM DELETE_SELTAB_LINE

014170 TABLES P_SEL P_INDEX

014180 USING L_LINENUMBER.

014190 ADD 1 TO P_INFO-DEL_COUNT.

014200 SUBTRACT 1 FROM P_INFO-FILL.

014210 CLEAR: P_LOW, P_HIGH, P_SIGN, P_OPTION.

014220 EXIT.

17 REPLIES 17
Read only

matt
Active Contributor
0 Likes
2,013

The value of P_INDEX-INDEX is -2. Find out why and your problem is solved.

matt

Read only

Former Member
0 Likes
2,013

Hello Matt,

Thank you for Answering me, but i am not getting these words "Find out why and your problem is solved" Kindly tell me what you actual want to speak and please tell me that, up to when the value of P_INDEX-INDEX is -2 upto that time i will get this same problem or here we can use any notes because the program in which i am facing problem that program is standard program.

With Regards,

Rahul Asthana.

Edited by: Rahul Asthana on Jun 29, 2011 12:01 PM

Read only

Former Member
0 Likes
2,013

Hi,

What is ZDOC_LAST_READ?

Read only

Former Member
0 Likes
2,013

Hello vinraaj,

while i am searching this "ZDOC_LAST_READ" in the program i didn't get it. so i am sending you data which i get in the error analysis.

Error analysis

When changing or deleting one or more lines of the internal table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]" or when inserting in the

table "\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]", "-2" was used as

the line index. An index less than or equal to zero is not

allowed.

The error can occur when using the following options:

1. "INDEX idx" for specifying the line number in the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]"

where you want to change, insert or delete.

2. "FROM idx" for specifying the start index when deleting a line

area from or inserting a line area into the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]".

3. "TO idx" for specifying the end index when deleting a line

area from or inserting a line area into the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]".

Read only

matt
Active Contributor
0 Likes
2,013

Simply repeating your request won't get you anywhere. What are you doing that produces this dump? Is it all standard SAP code? Have you searched OSS for a note? (If not, why not?) If this truly is an error in sap standard, then you should raise a message in the support portal.

matt

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,013

while i am searching this "ZDOC_LAST_READ" in the program i didn't get it.

Hello Rahul,

From the name of the program PROG=AQW8MACHINES====ZDOC_LAST_READ (and the transaction code as well) i understand that ZDOC_LAST_READ is an SAP query. Check if there was any customisation made on this query which might be causing this error!

As Matt has mentioned try to search for existing SAP notes & if you don't find any relevant one raise the message to SAP.

BR,

Suhas

Edited by: Suhas Saha on Jun 29, 2011 5:36 PM

Read only

Former Member
0 Likes
2,013

Hello Matt,

yes it all standard SAP code, I had search the note for this dump but still i didn't get so that i repeated it.

With Regards,

Rahul Asthan

Read only

Former Member
0 Likes
2,013

Hi,

Did u refer the snote 1167546?

Regards,

Dhina..

Read only

Former Member
0 Likes
2,013

Hello Dhina DMD,

Thank you for sending me SAP Note and Currently i reading the Note:1167546, but this note is written for other different programs and i am searching for program "SAPLALDB".

With Regards,

Rahul Asthana

Read only

Former Member
0 Likes
2,013

Hello Matt,

As you told me earlier that the value of P_INDEX-INDEX is -2, and we know that the value of index less than or equal to zero is not allowed, but can you tell me that "SAPLALD" is a stadard program then is this coding is wrong. Kindly tell me.

With Regards,

Rahul Asthana.

Read only

Former Member
0 Likes
2,013

Did you try to regenerate the query program...just in case you made some changes and did not generate....

Read only

Former Member
0 Likes
2,013

Hello ,

After your sugestion i search 'AQW8MACHINES====ZDOC_LAST_READ\DATA" i found it as a Query, kindly Guide me how i solve this Issue

Thanking You,

Rahul Asthana.

Read only

Former Member
0 Likes
2,013

Dear Friends,

Please give me a perfect soluction, links or SAP Notes to solve this ABAP Runtime error as soon as possible.

ABAP runtime errors : TABLE_INVALID_INDEX

Program Name: SAPLALDB

Include Name: LALDBF02

Subroutine: TAKE_ONE_LINE_TABC

Transaction :"SQ01 "

Information on where termination occurred

The termination occurred in the ABAP/4 program "SAPLALDB " in

"TAKE_ONE_LINE_TABC".

The main program was "AQW8MACHINES====ZDOC_LAST_READ ".

The termination occurred in line 1403

of the source code of program "LALDBF02 " (when calling the editor 14030).

Error analysis

When chaging or deleting one or more lines of the internal table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]" or when inserting in the

table "\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]", "-2" was used as

the line index. An index less than or equal to zero is not

allowed.

The error can occur when using the following options:

1. "INDEX idx" for specifying the line number in the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]"

where you want to change, insert or delete.

2. "FROM idx" for specifying the start index when deleting a line

area from or inserting a line area into the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]".

3. "TO idx" for specifying the end index when deleting a line

area from or inserting a line area into the table

"\PROG=AQW8MACHINES====ZDOC_LAST_READ\DATA=SP$00004[]".

Source code extract

013730 IMPORTING

013740 SIGN = P_SIGN

013750 OPTION = P_OPTION

013760 EXCEPTIONS

013770 NOT_EXECUTED = 4

013780 DELETE_LINE = 8.

013790

013800 L_SUBRC = SY-SUBRC.

013810 FCODE = L_FCODE.

013820 CASE L_SUBRC.

013830 WHEN 0.

013840 WHEN 4.

013960 MOVE: <L_LOW> TO <L_WH_LOW>,

013970 <L_HIGH> TO <L_WH_HIGH>.

013980 ENDIF.

013990

014000 CASE L_ACTION.

014010 WHEN 'M'. " Modify

014020 MODIFY P_SEL INDEX P_INDEX-INDEX.

-


> WHEN 'A'. " Append

014040 MOVE P_I_OR_E TO P_SIGN.

014050 APPEND P_SEL.

014060 MOVE SY-TABIX TO P_INDEX-INDEX.

014070 APPEND P_INDEX.

014080 ADD 1 TO P_INFO-FILL.

014090 WHEN 'I'. " Insert

014100 PERFORM INSERT_SELTAB_LINE

014110 TABLES P_SEL P_INDEX

014120 USING L_LINENUMBER.

014130 ADD 1 TO P_INFO-FILL.

014140 CLEAR P_INFO-OLD_INSERT_INDEX.

014150 WHEN 'D'. " Delete

014160 PERFORM DELETE_SELTAB_LINE

014170 TABLES P_SEL P_INDEX

014180 USING L_LINENUMBER.

014190 ADD 1 TO P_INFO-DEL_COUNT.

014200 SUBTRACT 1 FROM P_INFO-FILL.

014210 CLEAR: P_LOW, P_HIGH, P_SIGN, P_OPTION.

014220 EXIT.

<Urgency downgraded.>

Edited by: Suhas Saha on Jun 29, 2011 4:52 PM

Read only

0 Likes
2,013

Please, implement note 1167546.

Please refer the following link.

<Irrelevant link farm removed>

Regards,

Dhina.

Moderator Message: Please avoid posting irrelevant links.

Edited by: Suhas Saha on Jun 29, 2011 5:01 PM

Read only

matt
Active Contributor
0 Likes
2,013

SAPLALDB is a sap standard program. Maybe you should persue this through the support portal (service.sap.com).

matt

Read only

rajesh_kumar2
Product and Topic Expert
Product and Topic Expert
0 Likes
2,013

Hello Rahul,

You may try this note 1079303 and see the issue is resolved or not:

Regards,

Rajesh

Read only

matt
Active Contributor
0 Likes
2,013

If the next reply from Rahul does not contain an explanation of exactly what he does to get this dump. I will lock the thread

Until that important piece of information is given, anything else is guesswork.

matt