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

performance error for select single * statement

Former Member
0 Likes
295

Sir,

SELECT SINGLE * FROM zqcs INTO wa_zqcs WHERE coll_no = pr_coll.

              on this particular statement i am getting the performance error in the code inspector of one program.

              any aletrnative statement can be written to reslove this issue.

Thanks & Regards.ng

Moderator message : Not enough re-search before posting, discussion locked

Message was edited by: Vinod Kumar

1 REPLY 1
Read only

vinoth_aruldass
Contributor
0 Likes
263

hi satish,

Make sure that the above statement is not used inside the loop.

if you are using inside the loop it will be performance error.

the alternate is select * from zqcs into table it_zqcs where coll_no = pr_coll.

then you can use

read table it_zqcs into wa_zqcs index 1.

Regards,

Vinoth