cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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' ).

lr_container->add_child(
        EXPORTING
          index     = sy-tabix
          the_child = lr_check_box

Taken reference from below threads.

https://archive.sap.com/discussions/thread/630107

https://archive.sap.com/discussions/thread/3246709

Please help on this.

Thanks in advance,

Manoj

0 Likes
View Entire Topic
MKM
Active Participant
0 Likes

Hello Matthew,

Now i am able to design my selection screen as below.

Now struggling with making check box side by side having caption.

I have created a transparent container to align checkbox.

Thanks,

Manoj