cancel
Showing results for 
Search instead for 
Did you mean: 

unable to see select options in view

Former Member
0 Kudos

HI ,

I have the following code in the WdDOINIT method of my view for viewing a field as a select option...

DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.

l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).

IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.

l_ref_cmp_usage->create_component( ).

ENDIF.

DATA: l_ref_interfacecontroller1 TYPE REF TO iwci_wdr_select_options .

l_ref_interfacecontroller1 = wd_this->wd_cpifc_select_options( ).

DATA:

l_r_helper_class TYPE REF TO if_wd_select_options.

l_r_helper_class = l_ref_interfacecontroller1->init_selection_screen(

).

data lt_range_table type ref to data.

CALL METHOD l_r_helper_class->create_range_table

EXPORTING

i_typename = 'BUKRS'

  • i_length =

  • i_decimals =

receiving

rt_range_table = lt_range_table

.

CALL METHOD l_r_helper_class->add_selection_field

EXPORTING

i_id = 'BUKRS'

  • i_within_block = mc_id_main_block

i_description = 'Empresa'

  • i_is_auto_description = abap_true

it_result = lt_range_table

  • i_obligatory = abap_false

  • i_complex_restrictions =

  • i_use_complex_restriction = abap_false

  • i_value_help_type = if_wd_value_help_handler=>co_prefix_none

  • i_value_help_id =

  • i_value_help_mode =

  • i_value_help_structure =

  • i_value_help_structure_field =

  • i_help_request_handler =

  • i_lower_case =

  • i_memory_id =

  • i_no_extension = abap_false

  • i_no_intervals = abap_false

  • i_as_checkbox = abap_false

  • i_as_dropdown = abap_false

  • it_value_set =

  • i_read_only = abap_false

  • i_dont_care_value =

.

Besides this, the WND_SELECTION_SCREEN view is embedded in the respective container as follows...

Tray - >Container - this container has the WND_SELECTION_SCREEN.

I can see the tray in the view cannot see any field (expectation was to see a select-option for BUKRS.

Any hints? Am i missing something. I have followed the tutorial for select options in webdynpro abap.

regards,

Priyank

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Priyank.

Do you see the buttons of the selection view (copy, reset, ...) ?

The view is embedded in the respective VIEW_CONTAINER_UIELEMENT?

Cheers,

Sascha

Former Member
0 Kudos

Hi Sascha,

No i cannot see the buttons either.

Following is how the view is embedded.

View - > Tray - >viewcontaineruielement-> wnd_selection_screen.

Am i missing something?

regards,

Priyank

Former Member
0 Kudos

Hi Priyank.

I justed tested your code and it works without problem.

May sound strange but do you have the tray expanded? Have

a look at the expanded property of the tray and try

clicking the tray button.

Cheers,

Sascha

Former Member
0 Kudos

Hi Sascha,

The tray is indeed expanded. What i did was to add another button through the layout. I can see that button which i added on my own but could not see the select options.

Browser problems? Any further hints?

regards,

Priyank

Former Member
0 Kudos

Hi Pri.

I do not have a clue at the moment. Seems that something is not set up proberly.

I just could guess. Maybe you did not embedd the view correctly in the window or

forgot to activate the window after embedding the view ? Thats the only thing I

could imagine. What SP are u using?

Cheers,

Sascha

Former Member
0 Kudos

Well,

just some temporary internet files cleared and it works now!!!

Thanks for your inputs !!

regards,

Priyank

Former Member
0 Kudos

LOL ... Sometimes you look for a needle in a haystack ..

But lucky you have found it ...

Well done .. please close this thread ...

Cheers,

Sascha