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

F4IF_INT_TABLE_VALUE_REQUEST

Hi All,

I have called the FM F4IF_INT_TABLE_VALUE_REQUEST

to provide f4 help.but not getting any values for the field when f4 is pressed.it's because return table doesn't contain any value.

my code is as follows please tell me wether i hav to pass any other parameters to this FM.

data : begin of f4tab occurs 0,

empid like zempl-empid,

end of f4tab.

data : ret_tab like ddshretval occurs 0 with header line.

Parameters : pa_empid like zempl-empid .

AT SELECTION-SCREEN ON VALUE-REQUEST for pa_empid .

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'PA_EMPID'

VALUE = '*'

VALUE_ORG = 'S'

tables

value_tab = f4tab

RETURN_TAB = ret_tab

IF sy-subrc eq 0.

read table ret_tab index 1.

move ret_tab-fieldval to pa_empid .

ENDIF.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jun 15, 2005 at 06:25 AM

    Hi,

    Actually, we are using the function module for the F4 help that returns the values selected in an internal table. Very handy when programming your very own F4 help for a field.

    <b>You should append values in f4tab.</b>

    Here is the sample code.

    tables kna1.

    data:

    begin of t_values occurs 2,

    value like kna1-begru,

    end of t_values,

    t_return like ddshretval occurs 0 with header line.

    select-options s_begru for kna1-begru.

    at selection-screen on value-request for s_begru-low.

    t_values = 'PAR*'.

    append t_values.

    t_values = 'UGG'.

    append t_values.

    call function 'F4IF_INT_TABLE_VALUE_REQUEST'

    exporting

    retfield = 'BEGRU'

    value_org = 'S'

    tables

    value_tab = t_values

    return_tab = t_return

    exceptions

    parameter_error = 1

    no_values_found = 2

    others = 3.

    if sy-subrc = 0.

    read table t_return index 1.

    endif.

    If your problem solved,Kindly reward points and close the thread.If not,get back.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 15, 2005 at 06:32 AM

    Hi,

    Does your table f4tab contain any data before FM call ?

    I don't know what is your intention but I usually use this FM with following parameters:

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
     EXPORTING
      retfield = 'PA_EMPID'
      VALUE_ORG = 'S'
     tables
      value_tab = f4tab.

    and it works...

    Krzys

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2005 at 06:32 AM

    check with the functional docuemtnation conce,still if u r not getting then get back

    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.