Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Working with actions on drop down

Hi Gurus,

I have created a drop down box dynamically with fixed values using add_parameter_field. Now i want is when user selects particular value from the drop down box few fields should be disabled on the screen. Can you please help how to do this. i have added the code below

l_defdate_range-key = '1'."'01DAY'.

l_defdate_range-value = 'Yesterday'.

APPEND l_defdate_range TO lt_defdate_range.

l_defdate_range-key = '2'."'15DAY'.

l_defdate_range-value = 'Since 15 Days'.

APPEND l_defdate_range TO lt_defdate_range.

l_defdate_range-key = '3'."'30DAY'.

l_defdate_range-value = 'Since 30 Days'.

APPEND l_defdate_range TO lt_defdate_range.

l_defdate_range-key = '4'."'MONTH'.

l_defdate_range-value = 'Last Month'.

APPEND l_defdate_range TO lt_defdate_range.

*--Default date range

wd_this->m_handler->add_parameter_field(

i_id = 'P_DEF_DT_RANGE'

i_description = 'Default date range'

it_value_set = lt_defdate_range

i_as_dropdown = abap_true

i_within_block = 'DATES'

i_value = l_value ).

Thanks in advance

Former Member
Not what you were looking for? View more on this topic or Ask a question