2007 Dec 06 11:55 AM
Hi,
Can any one tell me what is the data referencing and dereferencing. and what is the use of it.
Thanks.
Hi,
Can any one tell me what is the data referencing and dereferencing. and what is the use of it.
Thanks.
2007 Dec 06 11:58 AM
2007 Dec 06 12:57 PM
DEREFERNCING
To access the contents of the data object to which a data reference is pointing, you must dereference it.
ASSIGN dref->* TO <fs> [CASTING ...].
This statement assigns the data object to the FIELD SYMBOLl <fs> which the data reference in the reference variable <dref> points to. If the assignment is successful, sy-subrc is set to zero.
If the field symbol is fully generic, it adopts the data type of the data object. If the field symbol is partially or fully typed, the system checks the data types for compatibility. CASTING is also possible for the assigned data object.
If the data reference in <dref> is initial or invalid, you cannot dereference it. The field symbol remains unchanged, and sy-subrc is set to 4.
If you create a data object dynamically, the only way to access its contents is to use dereferencing
If the data reference in <dref> is initial or invalid, you cannot dereference it. The field symbol remains unchanged, and sy-subrc is set to 4. ...
DATA REFERENCE
The unary prefix operator, &, may be used to create a reference to an object, which is similar to a pointer in other languages. References are commonly used as a mechanism to pass a function as an argument to another function
Award points if found usefull.
Cheers,
Chandra Sekhar.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |