2012 Aug 10 6:38 PM
Hi Experts,
I am developing a screen program.
Actually I want to disable a field in such a way that user not be able to type anything in the input field but still be able to select the item from F4 help.
In orde words, I want to select the item with F4 but doesn't let the user type into the input field and mess around the input.
I have found and used screen-input = '0', I can select the item from F4 but after that the selected item will not ne shown in the field.
If you have such a experience on this I would be grateful if you share it with me.
Thanks in advance.
Richard
2012 Aug 10 10:08 PM
First a question: Are you developing a selection screen, or a dynpro?
If you're using a selection screen, you can use the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field> to write custom logic for responding to an F4 on the field <field>. Here you can call the search-help directly and populate the field yourself.
If you're using a dynpro, you can define a module to respond to the F4 with the statement FIELD <field> MODULE <module> ON VALUE-REQUEST. Again, in the module you can call the search-help directly and populate the field yourself.
One other thing to consider: It sounds like a dropdown is more appropriate for your needs, but I can understand how you'd want to use the search help for advanced functionality.
Hi Richard,
thats's standard. You can use F4 wherever it is enabled just to show the possible values. Only editable fields (edit = 1) will update with selected value.
Regards
Clemens
2012 Aug 10 10:08 PM
First a question: Are you developing a selection screen, or a dynpro?
If you're using a selection screen, you can use the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field> to write custom logic for responding to an F4 on the field <field>. Here you can call the search-help directly and populate the field yourself.
If you're using a dynpro, you can define a module to respond to the F4 with the statement FIELD <field> MODULE <module> ON VALUE-REQUEST. Again, in the module you can call the search-help directly and populate the field yourself.
One other thing to consider: It sounds like a dropdown is more appropriate for your needs, but I can understand how you'd want to use the search help for advanced functionality.
2012 Aug 10 10:38 PM
Hi Richard,
thats's standard. You can use F4 wherever it is enabled just to show the possible values. Only editable fields (edit = 1) will update with selected value.
Regards
Clemens
2012 Aug 11 11:10 AM
Use below function module in process on value request , then user selected values are in RETURN you can read this value and assign your particular field.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'ARBPL'
value_org = 'S'
tables
value_tab = IT_WC
return_tab = RETURN.
READ ATBLE RETURN INDEX 1.
zhapes-arbpl = return-fieldval.
2012 Aug 11 8:07 PM
2012 Aug 12 6:21 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |