cancel
Showing results for 
Search instead for 
Did you mean: 

validation of select options

former_member199125
Active Contributor
0 Kudos

Hi guys,

Can anyone tell me , how we can validate the select options data.

Regards

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi srinivas,

If you didnt enter any value in select options it will fetch all the records in the entire Range.., but if u want to make it as mandatory field pls add the below parameters..

  • add a new field to the selection

wd_this->m_handler->add_selection_field(

i_id = 'ZDE_PERNR'

it_result = lt_range_table

i_read_only = read_only

i_no_intervals = 'X' -


> this for no intervals.., only low

i_obligatory = abap_true ). -


> this to make it as mandatory..

Then in onActionSubmit it ll automatically raise an error message if u didnt enter any value.,

hope this will help u.,

Thanks & Regards

Kiran

former_member199125
Active Contributor
0 Kudos

Hi kiran,

your info is helpful to me but i need to validate the select options data, like in module pool we will use separate modules for validation . In that way is there any way to validate the select options?

Regards

srinivas

former_member184578
Active Contributor
0 Kudos

Hi Srinivas,.

In WDA there are no PBO PAI modules.., u have to do validation in methods., In OnActionSubmit or OnEnter events or whatever action you created., you can read the lt_range_table in that action or event and can do validations which you want..

Thanks & Regards

Kiran

Former Member
0 Kudos

Hello,

in select-option ,

Please use IF_WD_SELECT_OPTIONS~CHECK_ALL_SELECTION_FIELDS method.

This is used for validation checks.

Best regards,

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sana,

Please go through this.. it might solves.

Cheers,

Kris.