Named includes for ALV
Hi, I'm trying to pass an internal table for display using ALV, something like the following:
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid it_fieldcat = gt_fieldcat TABLES t_outtab = it_sbook.
I tried to declare it_sbook using a named include like below, but it didn't work. I got the error "Field symbol has not yet been assigned".
DATA: BEGIN OF wa_sbook. INCLUDE TYPE sbook. DATA: phone(10) TYPE p, END OF wa_sbook, it_sbook LIKE TABLE OF wa_sbook.
Is there a particular reason for this?