Hello,
There is a GROUP, which has a CAPTION and a TABLE.
I hope the CAPTION has value, then GROUP display, else GROUP not display.
Now,My question is, when CAPTION no value, I no way to set the GROUP is not displayed.
code:
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_i_text LIKE ls_context-i_text.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `I_TEXT`
IMPORTING
value = lv_i_text ).
constants: lc_visible type wdui_visibility value '02',
lc_hidden type wdui_visibility value '01'.
if lv_i_text is initial.
How to set GROUP not display.
endif.