2010 Jan 27 6:21 AM
Hello,
I have a list box and a output only field in my screen. I want to display a value in the output only field as soon as a vlue is selected from the list box. Now i am doing it by placing a button and selecting a value from the listbox and then clicking on the button displays the value in the output only field. Please help me how to achieve my requirement.
thanks.
2010 Jan 27 6:25 AM
Hi,
Give a function code to the list box field. Now in the PAI of your screen write the code to display the data in the output only field. See the example code.
In PAI.
CASE sy-ucomm.
WHEN 'FUN_LIST'.
IF list_ value = '1'.
output_field = 'One'.
ELSEIF list_ value = '2'.
output_field = 'Two'.
ENDIF.
ENDCASE.Thanks,
Sri.
Hello,
I have a list box and a output only field in my screen. I want to display a value in the output only field as soon as a vlue is selected from the list box. Now i am doing it by placing a button and selecting a value from the listbox and then clicking on the button displays the value in the output only field. Please help me how to achieve my requirement.
thanks.
2010 Jan 27 6:24 AM
2010 Jan 27 6:25 AM
Hi,
Give a function code to the list box field. Now in the PAI of your screen write the code to display the data in the output only field. See the example code.
In PAI.
CASE sy-ucomm.
WHEN 'FUN_LIST'.
IF list_ value = '1'.
output_field = 'One'.
ELSEIF list_ value = '2'.
output_field = 'Two'.
ENDIF.
ENDCASE.Thanks,
Sri.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |