06-18-2008 10:15 AM
hi all,
what is mean by field symbol? why we r using ? pl, explain breifly with small understanding ex.
thanks.
06-18-2008 10:17 AM
Hi,
Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
check the link below:
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
Pls reward if helpfull.
Regards,
Sharath
06-18-2008 10:18 AM
06-18-2008 10:20 AM
Hi,
Field Symbols are similar to pointers in C.
We can access one memory location directly.
EX :
DATA: w_var TYPE char10.
FIELD-SYMBOLS: <fs_var> TYPE char10.
w_var = 'HELLO'.
ASSIGN w_var TO <fs_var>.
WRITE / <fs_var>.
06-18-2008 10:36 AM
06-18-2008 11:06 AM
Hi
What are field symbols?
a) Field symbols are like pointers in C that can point to any data object in ABAP/4 and to structures defined in ABAP/4 dictionary.
b) Field symbols have to be created with type specifications only.
c) You cannot assign one field symbol to another.
d) All operations you have programmed with the field symbol are carried out with the assigned field.
Field-symbols are defined in which of the following ways?
a) field-symbols f1 for f1.
b) field-symbols [f1].
c) field-symbols <f1> like f1.
d) field-symbols (f1) like f1.
e) field-symbols .
u go through this link for example of field symbols:
http://www.saptechnical.com/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm