‎2007 Nov 12 5:45 AM
hi,
i have a generic reference variable say lv_ref of type ref to data.
Currently it references a table of some type say X.
Now i want to display the table referenced by the above generic reference variable.
Could any1 plz help me out in this regard.
Useful replies will certainly be rewarded.
Thanx in advance.
‎2007 Nov 12 5:53 AM
Hello Shankar
Depending on whether the referenced object is a table or a structure you need an appropriate field symbol:
FIELD-SYMBOLS:
<ls_struc> TYPE ANY,
<lt_itab> TYPE table.
ASSIGN lv_ref->* TO <ls_struc>. " de-referencing structure
ASSIGN lv_ref->* TO <lt_Itab>. " de-referencing table type [itab]Regards
Uwe
‎2007 Nov 12 5:53 AM
Hello Shankar
Depending on whether the referenced object is a table or a structure you need an appropriate field symbol:
FIELD-SYMBOLS:
<ls_struc> TYPE ANY,
<lt_itab> TYPE table.
ASSIGN lv_ref->* TO <ls_struc>. " de-referencing structure
ASSIGN lv_ref->* TO <lt_Itab>. " de-referencing table type [itab]Regards
Uwe