cancel
Showing results for 
Search instead for 
Did you mean: 

Complex Restrictions in Select-options

Former Member
0 Kudos

Hi Team,

I've coded SELECT-OPTIONS in my web dynpro(ABAP) and want to disable the complex selection button/link (displayed just before the actual field). This link takes the user to either "Exclude" the selection or other options like "GE", "BT" etc. I actually want that user should only select ONE value with sign="I" and Option='EQ'. Is there a way to manage this? Please help.

Thanks for your time.

P.S: Points will be awarded for solutions

Accepted Solutions (1)

Accepted Solutions (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Sanjay,

Just enable complex restrictions parameter by setting i_use_complex_restrictions = abap_true and specify the operators/signs you would like to enable in parameter i_complex_restrictions. In case you would only like enable EQ|I, set include-eq = abap_true.

Best regards,

Thomas

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you Thomas. It is working as desired.

Former Member
0 Kudos

Hi Sanjay.

You can switch of intervall and complex restrictions using the

parameters I_USE_COMPLEX_RESTRICTION and I_NO_INTERVALS

of the method ADD_SELECTION_FIELD:


wd_this->mr_selop->add_selection_field(
                         i_id = lv_fieldname
                         i_no_intervals = abap_true
                         i_use_complex_restrictions = abap_false
                        ...
).

Hope this helps.

Cheers,

Sascha