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

Time Out

Former Member
0 Likes
364

I am running a query as follows:

SELECT bukrs day_a racct prctr per_day average_m accumulate average

FROM zavg_bal_table

INTO CORRESPONDING FIELDS OF TABLE it_zavg

WHERE bukrs IN app_ref->company_code_range

AND day_a BETWEEN start_month AND param_date

AND prctr IN p_prctr.

When I only specify bukrs, the query runs fine. But when I specify both

a company code (bukrs) and profit center (prctr), the application

times out.

Company code (bukrs) and profit center (prctr) are key fields in the

zavg_bal_table.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
341

Hi,

By using ST05 run the report and get where exactly , it would have taken more time(dump out) , If suppose you cant define primary key in select query, define it .

Otherwise go for creating INDEXES for respective database table.

Thanks,

Krishna Rao

2 REPLIES 2
Read only

Former Member
0 Likes
341

is that select statement the exact point of the coding where you get the time-out? please check the dump ...

Read only

Former Member
0 Likes
342

Hi,

By using ST05 run the report and get where exactly , it would have taken more time(dump out) , If suppose you cant define primary key in select query, define it .

Otherwise go for creating INDEXES for respective database table.

Thanks,

Krishna Rao