Application Development 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: 

Hi reg fetch from View CAUFV

Former Member
0 Kudos

Hi Experts,

below query is taking a long time, what is the fix to tune this,

SELECT aufnr auart kdauf FROM caufv

INTO TABLE tl_caufv

WHERE kdauf EQ i_viqmel-vbeln.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Your problem is that the SELECT cannot use any index. I don't think you can fix this as it stands

But since KDAUF is the sales order number, you might try to approach it from the sales document flow perspective (VBFA).

Rob

2 REPLIES 2

Former Member
0 Kudos

Hi

try to some more condtions in where clause

Regards

Shiva

Former Member
0 Kudos

Your problem is that the SELECT cannot use any index. I don't think you can fix this as it stands

But since KDAUF is the sales order number, you might try to approach it from the sales document flow perspective (VBFA).

Rob