Skip to Content
Jul 21, 2017 at 03:03 PM

Dynamic Selection screen with checkbox on WebDynpro View

881 Views Last edit Jul 25, 2017 at 10:04 AM 2 rev

Hi Experts,

I have a requirement to design a selection screen as below.

I have used ViewContainerUIElement element named 'VIEW_CONTAINER'.

Created Dynamic Selection screen using component WDR_SELECT_OPTIONS inside WDDOINIT method under my main view. Used flow layout for my design.

Then trying to create Labels with check box as given above dynamically inside WDDOMODIFYVIEW method. But not able to align the elements as per requirement.

I have created check boxes. but not able to bring it under my dynamic selection parameter (as shown below).

I have to take container w.r.t ROOTUIELEMENTCONTAINER.

If i am taking VIEW_CONTAINER as reference, it is giving error for add_child method as it is not available in cl_wd_view_container_uielement.

Data lr_container TYPE REF TO cl_wd_uielement_container.

lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).

          index     = sy-tabix
          the_child = lr_check_box

Taken reference from below threads.

Please help on this.

Thanks in advance,



untitled.png (6.1 kB)
capture.png (8.7 kB)
allign.png (5.0 kB)
allign.png (5.0 kB)