Application Development and Automation 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: 
Read only

variable and field symbol

Former Member
0 Likes
1,284

what is the diff bw data variable and field symbols and why we go for field symbol ?

3 REPLIES 3
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
1,192

Hello mohan31

Field symbol is more or less like a pointer. It references / points to a variable.

More on field symbols and data references:

  1. Relation between Data References and Field symbols with examples
  2. SAP Help: Field Symbols

Best regards

Dominik Tylczynski

Read only

ArthurParisius
Contributor
0 Likes
1,192

My understanding of the two is below.

A data variable a fixed piece of memory reserved to contain a value. A field symbol is a reference pointing to a certain piece of reserved memory, so instead of using different parts of memory when you use data variables, you use the same part of memory when using field symbols.

You would go for field symbols to reduce the amount of memory that you reserve in your program.

Just be aware that when you change the value of the piece of memory using a field symbol, that change will be applied to everything that uses that same part of memory.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,192

What don't you understand in the ABAP documentation please?