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 poor performance

Former Member
0 Likes
467

Good morning:

I have to select some records from BSAK and i want to have better performance, i am not using all the fields of the table key, i have been seeing in thsi forum some people recomending to create new select-options for this key fields, i want to know if i create renges and left them in blank if it would have better performance.

Thanks in advance.

Regards

Example

ranges r_bukrs like bsak-bukrs."Always empty

select * from bsak into table it_bsak where bukrs in r_bukrs

is better than

select * from bsak into table it_bsak

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

no, an empty range does not help you.

Since you dont have ANY where condition, you always get the full table.

theres heaploads of data in BSAK, what makes the select perform bad.

eihter add where conditions (best case on key fields)

or do not select *, but only the needed fields.

you can do both as well.

3 REPLIES 3
Read only

Former Member
0 Likes
441

no, an empty range does not help you.

Since you dont have ANY where condition, you always get the full table.

theres heaploads of data in BSAK, what makes the select perform bad.

eihter add where conditions (best case on key fields)

or do not select *, but only the needed fields.

you can do both as well.

Read only

Former Member
0 Likes
440

For a start only extract the fields that you are interested in. Remove the SELECT *

Read only

Former Member
0 Likes
440

Hi,

Creating a select-option n leaving blank wont help, instead u can select some value for tht "select-option" n in the "select criteria" u can make use of tht as a "condition".

Ex: S_VTWEG FOR VBAK-VTWEG OBLIGATORY DEFAULT '10'

IF NOT S_VTWEG[] IS INITIAL.

SELECT SINGLE VTWEG

FROM TVKOV

INTO L_VTWEG

WHERE VTWEG IN S_VTWEG.

I think if u r doin this way...it wud help u ....

Do try this n let me know.

Regards,

Ramya Shree M R