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

restriction at read

Former Member
0 Likes
635

Hello!

Is it to possible to do :

read * from xyz into

corresponding fields of table itab

where evdat in S_DATE

and in ialid in s_kat.

S_DATE and s_kat are select-options fields.

In not what is allowed in that case ?

Regards

sas

1 ACCEPTED SOLUTION
Read only

S0025444845
Active Participant
0 Likes
615

Hi,

If you want to get data from database table u have to use select like

select * from xyz into

corresponding fields of table itab

where evdat in S_DATE

and in ialid in s_kat.

regards,

sudha

Hello!

Is it to possible to do :

read * from xyz into

corresponding fields of table itab

where evdat in S_DATE

and in ialid in s_kat.

S_DATE and s_kat are select-options fields.

In not what is allowed in that case ?

Regards

sas

4 REPLIES 4
Read only

S0025444845
Active Participant
0 Likes
616

Hi,

If you want to get data from database table u have to use select like

select * from xyz into

corresponding fields of table itab

where evdat in S_DATE

and in ialid in s_kat.

regards,

sudha

Read only

Former Member
0 Likes
615

Hi,

read * from xyz into

corresponding fields of table itab

where not evdat in S_DATE

and not ialid in s_kat.

In the above case it will fetch all the records other than what you have given in the select options.

Read only

Former Member
0 Likes
615

You would need to do this in a LOOP


  LOOP AT xyz into xyz_rec
    where evdat in S_DATE
      and inialid in s_kat.
    move-corresponding xyz_rec to itab_rec.
    append itab_rec.
  endloop.

Read only

Former Member
0 Likes
615

I thank you very much.

Regards

sas