cancel
Showing results for 
Search instead for 
Did you mean: 

Select options with no intervals and no extension in web dynpro abap?

Former Member
0 Kudos

Dear Experts,

                      I have web dynpro application with select options I want to make those select options as no intervals and no extension which can take multiple values. Is it possible if so how?

Note : Please go through the code in attachment in the below for better understanding

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Select options with no interval's and no extension can be achieved using following code.

wd_this->m_handler->add_selection_field(

                                   i_id                      = 'S_CARR_ID'

                                   it_result                 = lt_range_table

                                   i_read_only               = read_only

                                   i_obligatory              = abap_true

                                  i_no_extension            = 'X'

                                   i_no_intervals            = 'X'

                                   i_complex_restrictions    = ls_complex_restrictions

                                   i_use_complex_restriction = abap_true ).

Additionally ,

IS_COMPLEX_RESTRICTIONS-m_exclude-BT = ' '.

IS_COMPLEX_RESTRICTIONS-m_exclude-NB = ' '.

append IS_COMPLEX_RESTRICTIONS to It_COMPLEX_RESTRICTIONS

In ADD_SELECTIONFIELD method apply these settings and check

I_NO_EXTENSION = ABAP_TRUE

I_NO_INTERVALS - ABAP_TRUE

I_USE_COMPLEX_RESTRICTION = ABAP_TRUE

I_COMPLEX_RESTRICTIONS = it_complex_restrictions

Which you already provided in attachment.

Thanks

KH

former_member182915
Active Contributor
0 Kudos

Hi Matala,

you create thread in wrong community, right one is