09-13-2008 9:01 AM
hi
ı 'm use REUSE_ALV_HIERSEQ_LIST_DISPLAY.
ı m add belowing row in layout
ls_layout-expand_fieldname = g_expandname .7
return error : itab_illegal_component .
the row type "u" of internal table "t_outtab_master[] does not contain a component "EXPAND". . . . .
mycode:
DATA: LS_LAYOUT TYPE SLIS_LAYOUT_ALV.
FORM build_ls_layout .
ls_layout-group_change_edit = 'X' .
ls_layout-zebra = 'X' .
ls_layout-detail_popup = 'X' .
ls_layout-get_selinfos = 'X' .
ls_layout-expand_fieldname = g_expandname .
ENDFORM. " build_ls_layout
09-13-2008 11:28 AM
U need to define the field (EXPAND)in the final output table(t_outtab_master) .Only then u can use it in the layout structure.
Ex:
Data: g_expand_fieldname type slis_fieldname value 'EXPAND'.
Final out put header table:
data: begin of gt_pbimout occurs 0.
include structure pbimout.
data: end of gt_pbimout.
in the structure pbimout field EXPAND is defined as
EXPAND CHAR1 CHAR 1 0 Single-Character Flag
rs_layout-expand_fieldname = g_expand_fieldname.
For details see the include RM60XALV.
Edited by: Joyjit Ghosh on Sep 13, 2008 12:37 PM
09-13-2008 11:36 AM
09-13-2008 12:25 PM
hım your answer thanks
ı do it.
i define EXPAD type c on internal table .