Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownList event issue

Former Member
0 Kudos

hi,

i want to change some input fields to uneditable when i select a value from a dropdownlist, how can i do it?

i know use AT SELECTION-SCREEN OUTPUT can change screen elements attributes,but this is triggered after you press 'enter'. when a list value selected, this event doesn't triggered.experts, would you show me what events triggered after a list valued selected? hunger for your advices, thanks!!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

declare the list box with user command

parameters : p_matnr like mara-matnr as listbox visible length 18 <b>user-command ucom.</b>

now when you will select any value from list it will trigger at selection-screen and at selection-screen output respectively.

regards

shiba dutta

3 REPLIES 3

Former Member
0 Kudos

declare the list box with user command

parameters : p_matnr like mara-matnr as listbox visible length 18 <b>user-command ucom.</b>

now when you will select any value from list it will trigger at selection-screen and at selection-screen output respectively.

regards

shiba dutta

0 Kudos

hi,thanks for your advice,but i try your code and get compile error

my code is below:

PARAMETERS: SELXMZT like zfi_budget-pbukr AS LISTBOX visible length 18 user-command ucom.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR SELXMZT.

PERFORM XXX.

AT SELECTION-SCREEN OUTPUT .

XXX...

and get the compile error:

The addition "ON VALUE-REQUEST FOR" is not allowed with parameters or select-options if matchcode object is present.

i need the "on value-request for",how can i solve the problem?

0 Kudos

may i know what are you doing in

AT SELECTION-SCREEN ON VALUE-REQUEST FOR SELXMZT.

PERFORM XXX.

if you are trying to fill the data in list box you can fill it in INITIALIZATION or

AT SELECTION-SCREEN OUTPUT event also. So you can avoid at selection-screen on value-request event.

If you can pls paste the full code also.

regards

shiba dutta