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

selection from database tables

Former Member
0 Likes
709

Hi Experts,

In one program I'm selecting data from tables <b>VBAK, VBAP,VBRK,VBRP,LIKP,LIPS</b>. As the tables have huge data, it's taking forever to get the data into internal tables.

Could you please suggest me to better the performance.

Thnx much.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
680

hi dev,

do not use select .. endselect statement and include all the key fields in your select statement.

instead of select .. endselect statement use

select * from <table> into table itab where < conditions)

.

Regards,

Santosh

Message was edited by: Santosh Kumar P

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
680

Make sure that you are selecting data from the tables using the key fields, this will help in performance.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
681

hi dev,

do not use select .. endselect statement and include all the key fields in your select statement.

instead of select .. endselect statement use

select * from <table> into table itab where < conditions)

.

Regards,

Santosh

Message was edited by: Santosh Kumar P

Read only

Former Member
0 Likes
680

Hi

Fetching data is not a problem from this tables.

The only care to be taken is that will using select use index in the where clause & fetch those columns which are required.

Also while joining tables join on the primary keys.

this process will sharply reduce performance issues.

Regards

kapil

Read only

Former Member
0 Likes
680

in the where clause of the select try to give all the key fields ,

do not use select in loop ..... endloop.

Read only

Former Member
0 Likes
680

Hard to say without actually seeing your code. Could you please post it?

Rob

Read only

0 Likes
680

Thnx all.

Read only

0 Likes
680

hi Dev,

If any of the above answers were helpful mark those answers and close the thread if your problem is solved..

Regards,

santosh