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

Issue in read statment

Former Member
0 Likes
654

Hi Guys,

Iam using read stment , iam hving issue that it is asking to involve all key fields in internal table I_Final.Iam hving 5 key fields in Final itab.but i have only one plant vaue .

Loop at i_plant into ls_plant.

Read table I_Final with table key ZWerks = ls_plant-bukrs

Endloop.

Can any one rectfiy me how to correct this error,

Regards,

Sri

Hi Guys,

Iam using read stment , iam hving issue that it is asking to involve all key fields in internal table I_Final.Iam hving 5 key fields in Final itab.but i have only one plant vaue .

Loop at i_plant into ls_plant.

Read table I_Final with table key ZWerks = ls_plant-bukrs

Endloop.

Can any one rectfiy me how to correct this error,

Regards,

Sri

5 REPLIES 5
Read only

Former Member
0 Likes
631

read table i_final with key xxx....

delete the "TABLE" keyword from ur read stmt!!!

Read only

Former Member
0 Likes
631

Hi,

Use this one

READ TABLE itab WITH KEY k1 = v1

Remove TABLE

Regards

Krishna

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
631

Read table I_Final with key ZWerks = ls_plant-bukrs

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
631

hi,

if i_final is a table with header line then use the below syntax.

Read table I_Final with  key ZWerks = ls_plant-bukrs. "--> remove TABLE key word

if i_final is a table without header line then use the below syntax.

Read table I_Final INTO w_final with  key ZWerks = ls_plant-bukrs.

Thanks

Read only

Former Member
0 Likes
631

Hi,

Try This

Loop at i_plant into ls_plant.

Read table Is_plant with table key ZWerks = ls_plant-bukrs

Endloop.

Else send me ur code then i can aable to rectify...