Application Development 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 table i_regis2 with key cid eq s_validate-cid error

Former Member
0 Kudos

hi everyone:

im new to abap development and i am currently in the process of validating the fields  on one table comparing them to another table.

right now this is the loop im using but i keep geting the same error when i try to assiociate a key field.

loop at i_index into s_validate.

     read table i_regist2 with key cid eq s_validate-cid      <------ "eq s_validate-cid" is not expected (Error message)

     transporting no fields.

if sy_subrc eq 0.

...

...

...

please clarify why this is happening and what is needed to correct this error.

thanks in advance

2 REPLIES 2

BTP_Architect
Participant
0 Kudos

Hi,

Try using a work area in your read instruction as follow: INTO wa [transport_options]

Moez.

thanga_prakash
Active Contributor
0 Kudos

Hello Irving,

You cannot use EQ in the READ statement. You have to use = in the read statement.

Regards,

Thanga