07-23-2009 5:34 AM
Hi all,
Can Anyione tell me that what is the difference between looping at internal table using the Assigning <Fs> keyword and Reference to keyword.Thanks in Advance
Rajiv
07-23-2009 5:58 AM
hello Rajiv ,
if you idea about about the C Programming ..then it's simple ..
you can understand Reffrence (Data Reffrence) as pointer .
and assigning is like value at (*) operator in C .
Thanks and Regards ..
Priyank
07-23-2009 6:33 AM
Hi,
Thanks for all ur replies.
can u put a light a on performance statistics b/w the two.
Which is more efficient.
Are there any scenarios when shold be used others should not be.
Which one would u prefer on Looping at Internal Table..?
Which one would u prefer on looping at Nested internal tables..?
Thnaks In Advance..
Rajiv Kanoria
07-23-2009 6:00 AM
Hi,
Please refer the below link,
http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb381a358411d1829f0000e829fbfe/content.htm
Thank U,
Jay....
07-23-2009 6:01 AM
Assigning :
-
try ASSIGN COMPONENT sy-index OF STRUCTURE <fs_recordt> (this need not be a field symbol can be a work area/ internal table) TO <fs_field>.
if u want to assign field symbol on field by field basis use this statement inside do endo.
else use loop at internal_table assigning <FS>. u dont hav 2 unassign the field symbol, the loop statement internally takes care of dat.
refernce :
-
Refernce is used refer the variables for inport and export parameters.
07-23-2009 6:19 AM
Hi,
Thanks for all ur replies.
can Anyone put a light a on performance statistics b/w the two.
Which is more efficient.
Are there any scenarios when shold be used others should not be.
Which one would u prefer on Looping at Internal Table..?
Which one would u prefer on looping at Nested internal tables..?
Thnaks In Advance..
Rajiv Kanoria