Skip to Content
Feb 09, 2022 at 04:51 PM

Inline Declaration for 'TYPE HANDLE'

66 Views Last edit Feb 09, 2022 at 04:53 PM 2 rev


I was wondering if there is any way to do an inline declaration of 'TYPE HANDLE' for the creation of data object described by RTTS object. I am using the following code:

DATA:lo_data  TYPE REF TO data.

"Data to handle the new table type
CREATE DATA lo_data TYPE HANDLE lo_new_tab.
"New internal table in fieldsymbol
ASSIGN lo_data->* TO <fs_table>

Is it possible to skip the lo_Data declaration and use inline declaration instead? There is the reference operator(REF) but does not seem to work for type handle statements.

Thank you in advance