RE:[sap-dev] Field-symbols question
Posted by
Admin at
|
Share this post:
|
0 Comments
| | Posted by horacio zapettini on May 13 at 4:26 PM | |
Wes,
a hashed table would perform such changes really faster.
The only difference you have, is that the table must have a unique key.
But you'll gain in performance.
Anyway, if you're talking about 13 mins.... I'd like to know more about the table structure, and the loop. If You'd post them, maybe we could help you better. (otherwise, the profesional network of toolbox is a good place to talk, you're invited to join it)
HTH
Horacio
---------------Original Message---------------
From: sapwes
Sent: Thursday, May 13, 2010 9:27 AM
Subject: Field-symbols question
> The SAP performance guide indicates that using the assigning command when looping on an internal table improves performance.
> eg LOOP AT ITAB ASSIGNING <WA>
> <WA>-FLAG = 'X'.
> ENDLOOP.
> I have seen this to be true.
> I'm working with a devloper who insists on derefencing the field symbol and using the dereferenced varible
> eg
> LOOP AT ITAB ASSIGNING <WA>
> DerefVal = <WA>
> DerefVal-Flag = 'X'.
> ENDLOOP.
> Other than style issues do you folks have any thoughts how it will affect performance? or any other general thoughts about whether this is a good idea or not?
> Thanks
> Wes
__.____._ a hashed table would perform such changes really faster.
The only difference you have, is that the table must have a unique key.
But you'll gain in performance.
Anyway, if you're talking about 13 mins.... I'd like to know more about the table structure, and the loop. If You'd post them, maybe we could help you better. (otherwise, the profesional network of toolbox is a good place to talk, you're invited to join it)
HTH
Horacio
---------------Original Message---------------
From: sapwes
Sent: Thursday, May 13, 2010 9:27 AM
Subject: Field-symbols question
> The SAP performance guide indicates that using the assigning command when looping on an internal table improves performance.
> eg LOOP AT ITAB ASSIGNING <WA>
> <WA>-FLAG = 'X'.
> ENDLOOP.
> I have seen this to be true.
> I'm working with a devloper who insists on derefencing the field symbol and using the dereferenced varible
> eg
> LOOP AT ITAB ASSIGNING <WA>
> DerefVal = <WA>
> DerefVal-Flag = 'X'.
> ENDLOOP.
> Other than style issues do you folks have any thoughts how it will affect performance? or any other general thoughts about whether this is a good idea or not?
> Thanks
> Wes
Copyright © 2010 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
SAP Development Helper
Posted helpful replies on 5 threads in a group to earn a Bronze Achievement
In the Spotlight
Your SAP Security is at Risk...Learn How to Stay Protected. Read the free white paper from SenSage
View this thread online
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion