Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

field symbol

Former Member
0 Kudos

hi all,

what is mean by field symbol? why we r using ? pl, explain breifly with small understanding ex.

thanks.

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

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>.

Former Member
0 Kudos

Hi,

please refer also to thread .

Regards Rudi

Former Member
0 Kudos

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