cancel
Showing results for 
Search instead for 
Did you mean: 

Two different Select Options should be created in Two Containers

abhishek_nms
Participant
0 Kudos

Hi ,

In a View I have two Containers ( Container 1 , Container 2 ) on the screen.

I wana create two Select options of type ABTEI & BUKRS in two different Containers.

When I create select options , i happen to get both the Select Options in first container.

Can you please tell me how to Assign the Second Select options (BUKRS) to our Second Container ( View container UI Element )

Can you please write Code Snippet if possible?

Accepted Solutions (0)

Answers (1)

Answers (1)

abhishek_nms
Participant
0 Kudos

Since we embed the Component in the Window, We are forced to use two Select options Component having two different Usages namely Select1 and Select2.

These Select options should be made available to the Controller where we are creating the Dynamic Ranges.

NOTE the below two variables can be able to access both the Select-options ( NO Need to create another 2 Variable for Handling the Select Options )

Create a Interface handler type ref to IF_WD_SELECT_OPTIONS.

M_WD_SELECT_OPTIONS type ref to IWCI_WDR_SELECT_OPTIONS.

Now Assign the Select 1 to the Interface Handler

*--Get Interface Handler

wd_this->m_wd_select_options = wd_this->wd_cpifc_select1( ).

*--Initiate the select screen

wd_this->m_handler =

wd_this->m_wd_select_options->init_selection_screen( ).

create Ranges...

.....

Now Assign the Select 2 to the Interface Handler

*--Get Interface Handler

wd_this->m_wd_select_options = wd_this->wd_cpifc_select2( ).

*--Initiate the select screen

wd_this->m_handler =

wd_this->m_wd_select_options->init_selection_screen( ).

and create the BUKRS ranges in this one

Former Member
0 Kudos

Hi Abhishek,

Were you able to create select options in different view container?

I have similar requirement. But I am not getting how can we design the same.

It will be helpful if you will share the code- snippet.

Thanks,

Puneet