Symptom
An issue arises when attempting to open the transaction code CL24N in change mode to update Char values, resulting in a runtime error.
Category ABAP programming error
Runtime Errors TABLE_INVALID_INDEX
ABAP: Program SAPLCLCD
Application Component SD-MD-MM
Short Text
Error in ABAP statement while processing an internal table.
What happened?
Error in the ABAP application program.
The current ABAP program "SAPLCLCD" had to be terminated because it found a
statement that could not be executed.
Error analysis
When changing or deleting one or more rows in internal table
"\FUNCTION-POOL=CLFM\FORM=LESEN_KSSK_INDEX\DATA=L_OBJ1[]"
or when inserting rows into table
"\FUNCTION-POOL=CLFM\FORM=LESEN_KSSK_INDEX\DATA=L_OBJ1[]", 0 was used as t
row
index. An index less than or equal to zero is not allowed.
The error can occur when using the following additions:
1. "INDEX idx" for specifying the row number in table
"\FUNCTION-POOL=CLFM\FORM=LESEN_KSSK_INDEX\DATA=L_OBJ1[]" where
the row is to be changed, inserted or deleted.
2. "FROM idx" for specifying the start index when deleting a row area
from or inserting a row area into table
"\FUNCTION-POOL=CLFM\FORM=LESEN_KSSK_INDEX\DATA=L_OBJ1[]".
3. "TO idx" for specifying the end index when deleting a row area from
or inserting a row area into table
"\FUNCTION-POOL=CLFM\FORM=LESEN_KSSK_INDEX\DATA=L_OBJ1[]".
When the program terminated, the table contained 3846 rows.
Trigger Location of Runtime Error
(Program) SAPLCLCD
(Include) LCLCDU01
(Row) 140
(Module Type) (FUNCTION)
(Module Name) OBJECT_CHECK_KNA1
Source Code Extract
Line Code
110
111 READ TABLE OTAB WITH KEY KNA1-KUNNR BINARY SEARCH.
112 CHECK SYST-SUBRC = 0.
113
114 IF I_AUTH_CHK = LC_X.
115 "To check if the user has the search help authorization to DC for a customer in DEBI
116 CL_MDBPCV_DCP_UTIL=>AUTH_CHECK_CUST_DC_HEADER(
117 EXPORTING
118 IV_KUNNR = KNA1-KUNNR
119 IV_ACTVT = LC_F4
120 IMPORTING
121 ES_ERROR = LS_ERROR
122 ).
123 IF LS_ERROR-IS_ERROR EQ LC_X.
124 OTAB-NO_AUTHORITY = LC_X.
125 ENDIF.
126 ENDIF.
127
128 LV_TABIX = SYST-TABIX.
129 IF I_AUTH_CHK = 'X' AND CL_CV_SEARCH_HELP_AUTH=>CHECK_AUTH_CUSTOMER(
130 IV_KTOKD = KNA1-KTOKD
131 IV_BEGRU = KNA1-BEGRU ) NE 0.
132
133 OTAB-NO_AUTHORITY = 'X'.
134 ELSE.
135 OTAB-OBTXT = KNA1-NAME1.
136 ENDIF.
137
138 MODIFY OTAB INDEX LV_TABIX.
139
>>>>> ENDSELECT.
Read more...
Environment
SAP S/4HANA
Product
Keywords
SAP S/4HANA, SD-MD-MM, CL24N, ABAP programming error, TABLE_INVALID_INDEX, runtime error, change mode, Char values, SAP Note 3383554. , KBA , LO-MD-BP , Business Partners , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.