Application Development and Automation 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: 
Read only

Screen Programming

Former Member
0 Likes
783

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

1 ACCEPTED SOLUTION
Read only

alex_campbell
Contributor
0 Likes
745

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.

5 REPLIES 5
Read only

alex_campbell
Contributor
0 Likes
746

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.

Read only

Clemenss
Active Contributor
0 Likes
745

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

Read only

Former Member
0 Likes
745

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.

Read only

0 Likes
745

Hi

Silambarasan Ashok kumar       

Nonsense!

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
745

HI,

Please use my response in this discussion

The parameter (display = 'F' "F = Force) does that.