11-10-2007 7:07 AM
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!!!
11-10-2007 7:49 AM
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
11-10-2007 7:49 AM
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
11-10-2007 8:24 AM
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?
11-10-2007 8:40 AM
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