Может быть, вы можете преобразовать свой код следующим образом
types: begin of ty_main,
bukrs like bseg-bukrs,
fstyl type lvc_t_styl,
end of ty_main.
data: it_main type table of ty_main,
wa_main like line of it_main.
APPEND INITIAL LINE TO it_main REFERENCE INTO data(lr_main).
lr_main->bukrs = 'ESES'.
data lv_lvc_t_styl TYPE lvc_t_styl.
data lv_lvc_t_styl_line LIKE LINE OF lv_lvc_t_styl.
lv_lvc_t_styl_line-style = cl_gui_alv_grid=>mc_style_disabled.
append lv_lvc_t_styl_line to lv_lvc_t_styl.
lr_main->fstyl = lv_lvc_t_styl.
loop at it_main into wa_main WHERE fstyl IS NOT INITIAL.
LOOP AT wa_main-fstyl REFERENCE INTO data(lr_line) WHERE style = cl_gui_alv_grid=>mc_style_disabled.
break yilmaz-e.
ENDLOOP.
endloop.