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

Code Inspector

Former Member
0 Likes
1,893

Hi Friends,

I have written a program to generate a report using the table EKBE and during releasing to transport (SE10), I am getting the following Errors in the Code Inspector.

1. Message code 0502.

Large table EKBE. No field of table index in where condition.

2. Message code 0503.

Prog xxxxxxx include xxxxxx Row xxx column xx.

Large table EKBE. No first field of a table indes in where condition.

Kinldy could you explain me what is index problem and how to do the same.

TIA.

Regards,

Mark K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,088

Have a look in your WHERE condition of your select statements. There is no field of the primary key or from a index of ekbe. So your response time will be bad, try to select the fields

EBELN

EBELP

ZEKKN

VGABE

GJAHR

BELNR

BUZEI

which are the primary key of table ekbe. (Fields that are check in the column key in transaction se11/se12)

Kind regards

Matthias

5 REPLIES 5
Read only

Former Member
0 Likes
1,088

The message 1 implies

In coding reading large table EKBE without any where statement which is very time consuming.

The message 2 implies

In reading large table EKBE, first field of indexes (primary key) is not being used in where statement.

Hope this helps

anya

Read only

Former Member
0 Likes
1,089

Have a look in your WHERE condition of your select statements. There is no field of the primary key or from a index of ekbe. So your response time will be bad, try to select the fields

EBELN

EBELP

ZEKKN

VGABE

GJAHR

BELNR

BUZEI

which are the primary key of table ekbe. (Fields that are check in the column key in transaction se11/se12)

Kind regards

Matthias

Read only

Former Member
0 Likes
1,088

Hi

just in that where condition put one primary field so that this will remove

that error

Read only

Former Member
0 Likes
1,088

your SELECT is not index supported and therefore slow if the table is large.

That is what the code inspector tells you, either accept it, there youi can add an escape seqeuence to override the code inspector or change it, i.e. specify an index field, better a first index field in the WHERE condition or create an index with your fields of the WHERE condition.

Siegfried

Read only

0 Likes
1,088

Could you pls tell me as to how to create index.

Regards,