Application Development 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: 

F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

5 REPLIES 5

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

krzysztof_konitz4
Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi,

Check this link

0 Kudos

How do we add our own colum heading instead of it taking from data dic? when i pass field tab it gives me dump?