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

loop

former_member329386
Participant
0 Likes
591

Hi all

(1) What is the performance issue regarding folowing statement select-endselect inside loop.

Loop -


.

Select -


.

Endselect.

Endloop.

Is there any option to write this statement in other way.

2) In SAP-script se78 is used to upload logo. Then why we need the std programe

RSTXLDMC WHEN UPLOADING LOGO.

tHANKS

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
435

Hi,

1. If you write the select query inside the loop, for each avery record in the loop it will go to db table and fetches the data, so obviously there will be impact on Database. Instead of that Use select Query ouside the loop and use READ statement inside the loop.

2. They are 2 different ways to upload the logo. SE78 also will internally calls RSTXLDMC Program.

<b>Reward Points for helpful answers</b>

Satish

3 REPLIES 3
Read only

Former Member
0 Likes
435

Loop......

Select ....... into (internal table)

endloop.

Regarding SE78 and RSTXLDMC... as far as I know

.TIF file you can upload only using RSTXLDMC program not through se78, it will give you the error.

Read only

Former Member
0 Likes
436

Hi,

1. If you write the select query inside the loop, for each avery record in the loop it will go to db table and fetches the data, so obviously there will be impact on Database. Instead of that Use select Query ouside the loop and use READ statement inside the loop.

2. They are 2 different ways to upload the logo. SE78 also will internally calls RSTXLDMC Program.

<b>Reward Points for helpful answers</b>

Satish

Read only

Former Member
0 Likes
435

1. Isn't a good idea to do select inside a loop statement. Select all data you need into a internal table and inside the loop use read table statement!