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

'F4IF_FIELD_VALUE_REQUEST' not returning value to screen

Hi all,

I have a field t_matnr(18) type c on a screen and i am trying to get a F4 help for that.

I am getting the F4 help and when i select a record the field in the screen is not getting populated

Let me know

Here is my code

call function 'F4IF_FIELD_VALUE_REQUEST'

exporting

tabname = 'MARA'

fieldname = 'MATNR'

  • SHLPPARAM = ' '

dynpprog = 'SAPMZSRI'

  • dynpnr = dynnum

DYNPROFIELD = 'T_MATNR'

  • STEPL = 0

  • VALUE = ' '

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • SUPPRESS_RECORDLIST = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • EXCEPTIONS

  • FIELD_NOT_FOUND = 1

  • NO_HELP_FOR_FIELD = 2

  • INCONSISTENT_HELP = 3

  • NO_VALUES_FOUND = 4

  • OTHERS = 5

.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 17, 2008 at 05:00 AM

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    retfield = 'KUNNR'

    dynpprog = w_progname

    dynpnr = w_scr_num

    dynprofield = 'TB_WA-KUNNR'

    value_org = 'S'

    TABLES

    value_tab = int_f4

    return_tab = return_values

    EXCEPTIONS

    parameter_error = 1

    no_values_found = 2

    OTHERS = 3.

    IF sy-subrc <> 0.

    MESSAGE s000(zsn) WITH 'could not find the values'.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ELSE .

    kunnr = return_values-fieldval.

    ENDIF.

    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.