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

Extended check error i use read table statement on sorted table.

MNaveen
Product and Topic Expert
Product and Topic Expert
0 Likes
1,542

HI,

I am getting an extended check error when i use the following statement

Read table <sorted_table> Into <structure> with key <field_name> = <constant>.

This works fine. but the problem is it gives some extended check error.

Can u pls suggest a solution.

Warm Regards,

Naveen M

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,010

Hello Naveen

Looking at the ABAP keyword documentation the correct statement is


READ TABLE itab [INTO ls_structure] WITH TABLE KEY k1 = v1 ... kn = vn

Regards

Uwe

HI,

I am getting an extended check error when i use the following statement

Read table <sorted_table> Into <structure> with key <field_name> = <constant>.

This works fine. but the problem is it gives some extended check error.

Can u pls suggest a solution.

Warm Regards,

Naveen M

5 REPLIES 5
Read only

Sm1tje
Active Contributor
0 Likes
1,010

And what might that error be? That you are not using one of the fields on which this internal table is sorted? If so, type the internal differently.

Read only

Former Member
0 Likes
1,010

Hi:

either you can hide it by the text given during the check or move data of sorted table into an internal table, sort it and then read.

Regards

Shashi

Read only

Former Member
0 Likes
1,010

Does really reading with key by the field which is not part of the key or by which it is not sorted give EPC error ?

Can we know the EPC error ?

Thanks

Read only

MNaveen
Product and Topic Expert
Product and Topic Expert
0 Likes
1,010

Hi,

The error shown is possible sequential read access to sorted table.

Any inputs on how to overcome this will be welcome.

Warm Regards,

Naveen M

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,011

Hello Naveen

Looking at the ABAP keyword documentation the correct statement is


READ TABLE itab [INTO ls_structure] WITH TABLE KEY k1 = v1 ... kn = vn

Regards

Uwe