Skip to Content

loop

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:19 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:15 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 07:26 PM

    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!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.