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 query giving Time out dump

Former Member
0 Likes
475

Hi All,

I have written a select query on a table in BW system.The code for the same is attached below.The table contains some 6,00,000 records.This query is giving a time out error.Kindly look into the query and advice ways to make it work.Thanks.

IF NOT lt_temp[] IS INITIAL.

SELECT /bic/zprrmatnr objvers /bic/zprclwynr /bic/zprrmdlr

FROM /bic/pzprrmatnr

INTO CORRESPONDING FIELDS OF TABLE lt_zprrmatnr

FOR ALL ENTRIES IN lt_temp

WHERE /bic/zprclwynr = lt_temp-temp

AND objvers = 'A'.

ENDIF.

Thanks and Regards,

Faisal

Hi All,

I have written a select query on a table in BW system.The code for the same is attached below.The table contains some 6,00,000 records.This query is giving a time out error.Kindly look into the query and advice ways to make it work.Thanks.

IF NOT lt_temp[] IS INITIAL.

SELECT /bic/zprrmatnr objvers /bic/zprclwynr /bic/zprrmdlr

FROM /bic/pzprrmatnr

INTO CORRESPONDING FIELDS OF TABLE lt_zprrmatnr

FOR ALL ENTRIES IN lt_temp

WHERE /bic/zprclwynr = lt_temp-temp

AND objvers = 'A'.

ENDIF.

Thanks and Regards,

Faisal

2 REPLIES 2
Read only

Former Member
0 Likes
388

Hi,

Please see if you can pass the fields of the primary index or some secondary index in your where clause.

This is just a recommendation. Since i do not have access to BW tables and do not know you exact requirement; I can just suggest the above at the moment.

Regards,

Ankur Parab

Read only

ThomasZloch
Active Contributor
0 Likes
388

Not only is it BW, it is also a customer table. Have a look here on how to research yourself:

Thomas