We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE: [sap-newbies-l] Performance Issue With Select Single * Inside Loop

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from horacio zapettini on Dec 6 at 1:05 PM
We don't know if this is totally true. Perhaps, abaper is inserting a new record into gt_tcurf if the value is not found in the table after that select.
A more appropiated answer would be to know all the facts.

Abaper: hope you get a solution. Anyway, use the debug on an step by step basis with the response time turned on to evaluate where the program is spending more time. Once you get that ranking, you can decide where to point your fingers and start solving.

If the internal tables have a lot of records, then a hashed table would do well. If the tables hold a few records (up to 10000) then a sorted table could be of help. Read by TABLE key not by key. You could also check how long takes each complete iteration of the loop. And if you have a lot of rows in that table, multiply the iteration time by the number of rows. Perhaps, the problem is there .... We need more info in order to suggest a good solution.


Regards and good luck.
Horacio

---------------Original Message---------------
From: Kalyani Udare
Sent: Friday, December 06, 2013 12:45 PM
Subject: Performance Issue With Select Single * Inside Loop

Hi Abaper,

Try not to use select query inside the loop.

You are already reading gt_tcurf table using read statement and again after
that statement you have written select query on TCURF table. There is
absolutely no need of this select statement unless and until your internal
table doesn't contain required fields. These fields however can be included
in your internal table itself.

Regards,
Kalyani

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2013 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
horacio zapettini  

13 achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have a technical question? Need to find IT solutions? Ask your peers in the Toolbox for IT community.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language