Skip to Content

Prevent user from typing in an input field with search help


I have a screen with a step loop on an input/output field and I use the FM F4IF_FIELD_VALUE_REQUEST in the POV event to assign a search help element to each input field.

What I want to do is to prevent the user from typing text in the input fields but just using search helps to fill the fields.

I would also like to be able to change the width of each input field dynamiclly depending on the length of elements in the search help.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Apr 04, 2015 at 11:12 AM


    Regarding your first question:

    What you should do is set the screen field to input only, then fill the desired field at POV using

    FM DYNP_VALUES_UPDATE. (Simple value assignment for the field won't work!)

    Regarding your second question:

    Do you mean changing the field to the possible maximum length, or always chaning it based on the value the user has choosen?



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 04, 2015 at 10:25 AM

    Hello Occoro,

    I am just hinting at an idea here, I am not sure it will work.
    I do not have access to SAP system right now to test it .

    What if, you set the input box as an output field only, and fill in data only using the search help.?

    I am assuming your requirement is that user has to use the F4 help only ..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.