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

READ TABLE itab WITH KEY

Former Member
0 Likes
511

Hi Experts,

I have a problem with reading internal table.

Generally it is ok to read internal table with one key but

now I have an internal table based on the table has plural primary keys.

in this case I can I let it read the internal table?

Ex) General example

READ TABLE itab WITH KEY valiable1 = value1. <-- No problem

Ex) What I want.

READ TABLE itab WITH KEY valiable1 = value1 AND valiable2 = value2

I've tried to use parenthesis like

READ TABLE itab WITH KEY ( valiable1 = value1 AND valiable2 = value2 ) but it didn't work either.

Please help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

Hi

Use Read table itab with key variable1 = value1 variable2 = value2.....

Dont use AND instead give space....

erase AND it will work

thnx

sravani

PLZ REWARD POINTS

Edited by: sravani batchu on Apr 25, 2008 5:34 AM

2 REPLIES 2
Read only

Former Member
0 Likes
466

God I erased 'AND' then it worked.

Read only

Former Member
0 Likes
467

Hi

Use Read table itab with key variable1 = value1 variable2 = value2.....

Dont use AND instead give space....

erase AND it will work

thnx

sravani

PLZ REWARD POINTS

Edited by: sravani batchu on Apr 25, 2008 5:34 AM