09-26-2008 8:37 AM
hi
just wanted to confirm
if we use field symbol in a loop
loop at gi_result assigning <fs_result>.
we dont need to use the command modify to change a field in the internal table, right?
09-26-2008 8:39 AM
09-26-2008 8:39 AM
09-26-2008 8:42 AM
Of course right. When you are using field-symbols you are accessing the memory directly. So within a LOOP AT ... ASSIGNING, you're handling the row in the table directly.
matt
09-26-2008 8:42 AM
Yes...we don't have to use modify statement as the after field symbol assignment the field-symbol will point to the memory location of the current internal table index.
09-26-2008 8:45 AM
Just to be more precise: a field symbol is not a pointer, and you are writing directly into the storage location. So modify is obsolete and in addition the loop will be much more performant because no memory-to-memory copy is necessary.
09-26-2008 8:53 AM