Field symbol and data reference concept in ABAP

后端 未结 4 1986
野性不改
野性不改 2021-02-06 02:03

If we compare ABAP field symbols and data references with the pointer in C, we observe :-

In C, say we declare a variable \"var\" type \"integer\" with default value \"5

4条回答
  •  梦如初夏
    2021-02-06 02:46

    A field symbol is - nomen est omen - a symbol for a field. You assign it to a variable and it becomes an alias for that variable.

    The main difference between a reference and a field symbol is that a reference can point to anonymous data created by CREATE DATA or CREATE OBJECT. Field symbols must always be assigned to an existing variable.

提交回复
热议问题