on 2013 Jan 28 1:06 PM
Hi Experts,
What is field symbol ? What is the purpose of using it? Can you please explain this along with an example?
Request clarification before answering.
hi,
Field Symbol is just like a pointer in C but more than a pointer bec it ll not only refer the address it also changes the value of it..
Directly its having reference to address of the variable.
We can use the field symbols mostly where we mostly need to update option to the data base.
See the example code.
<fs>-field1 = 'name'.
<fs>-field2 = 'Age'.
append <fs> to itab.
No need of modify.
In the above case append is not needed since it will directly be appended to the internal table. Aslo field symbols can also be used in loops.
Thanks and Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.