Skip to Content
author's profile photo Former Member
Former Member

Screen Field value should always come from F4

Hi,

I have a screen field which takes input. It has a f4 hepl attached with it.

I want this screen field to get its input ONLY from F4 and if user wants to type in this screen field he should not be able to do so. That means I want to restrict the values to be input to a certain set of values.

Plz suggest !!

Thanks

~Sid

"Max points a gaurenteed"

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 05:42 AM

    There's another solution - it took me a while to find my old posting because the SDN search is a bit "lite" sometime but here it is:

    [Question of field with input disabled|question-of-field-with-input-disabled;

    ... see the sample code I posted under "zlocal_f4_on_locked_field" ... the trick is to set the DISPLAY parameter on the call to 'F4IF_FIELD_VALUE_REQUEST' - this tells the F4 help it's OK to write the result back to the screen even though it's an output field.

    Jonathan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2008 at 02:35 PM

    Hi Sid ,

    Fill all the values to an internal table.

    And pass that to Fm F4IF_INT_TABLE_VALUE_REQUEST .

    Hope this hepls you.

    Regards,

    Rama.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 03, 2008 at 03:13 PM

    You can change the field to a dropdown box and set the possible values for that dropdown with function module VRM_SET_VALUES in the PBO of your screen. That way the user can only select what is in the dropdown and is not allowed to enter anything manually.

    You can also leave the input field with the F4 help, but since the user can type in whatever he wants you need to add a check in the PAI that checks the value the user typed in against the allowed values and in case it is not allowed clear the field and raise an error message.

    Hope that helps,

    Michael

    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.