06-15-2005 6:29 AM
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.
06-15-2005 7: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.
06-15-2005 7: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.
06-15-2005 7: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
06-15-2005 7:32 AM
check with the functional docuemtnation conce,still if u r not getting then get back
06-15-2005 9:07 AM
06-15-2005 9:41 AM
How do we add our own colum heading instead of it taking from data dic? when i pass field tab it gives me dump?