Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

itab_illegal_component

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

former_member181995
Active Contributor
0 Kudos

thread_illegal_for_SCN

0 Kudos

hım your answer thanks

ı do it.

i define EXPAD type c on internal table .