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

select --endselect

Former Member
0 Likes
705

i heard that select---endselect it not good for performance.

how i can edit to it table with select single

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
685

u can use

select xxx from dbtab into <b>TABLE</b> itab where xxx

hope it helps,

Regards,

Bikash

6 REPLIES 6
Read only

andreas_mann3
Active Contributor
0 Likes
685

hi,

look in online-docu for:

select (fields) from dbtable into itab

where ....

or if you search a single item:

select single field from dbtable into hfield

where .... (complete primary key)

Andreas

Read only

Former Member
0 Likes
685

Hello Rani,

you can try to collect data in a internal table with where condition and read from internal table.

regards,

Kinshuk

Read only

Former Member
0 Likes
686

u can use

select xxx from dbtab into <b>TABLE</b> itab where xxx

hope it helps,

Regards,

Bikash

Read only

Former Member
0 Likes
685

hi Rani,

as an alternative of that you can use

Select * <b>from mara into table Itab</b> Where Matnr = '000000000000000038'...

Regards,

Santosh

Read only

Former Member
0 Likes
685

Hi Rani,

Use select Fields from database table to itab where condition.

or

select * from dbtable into itab where condition.

i think this will help u out Rani..

Thanks,

Regars,

Sreevani

Read only

rainer_hbenthal
Active Contributor
0 Likes
685

1) avoid select *, always type in the columns you need.

2) make extremly use of the where condition, do nout use check of if statements so filter data. Aoid evry unnecassry transfer from database to applaction server.

3) if you only need one row, use select single. in that case, you have to specify the whole primary key in the where condition.