08-17-2007 10:33 AM
Hi All,
I wanted a help in using the FM "F4IF_INT_TABLE_VALUE_REQUEST" with the following parameters :
-> value_tab
-> dynpfld_mapping
-> field_tab
Thanks,
Rupesh
08-17-2007 10:37 AM
Hi Rupesh,
F4IF_INT_TABLE_VALUE_REQUEST F4 help that returns the values selected in an internal table. Very handy when programming your very own F4 help for a field.
Example:
data:
begin of t_values occurs 2,
value like kna1-begru,
end of t_values,
t_return like ddshretval occurs 0 with header line.
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.
o_begru-low = t_return-fieldval.
if o_begru-low = 'PAR*'.
o_begru-option = 'CP'.
else.
o_begru-option = 'EQ'.
endif.
o_begru-sign = 'I'.
append o_begru to s_begru.
else.
o_begru = i_begru.
endif.
08-17-2007 10:38 AM
hi rupesh,
value_tab - it is table, that will be displayed for ur f4 help
dynpfld_mapping - when a value is selected in the f4 help, the value is copied to the cell
field_tab - type of the field
Regards,
Prasant
*Reward if useful
08-17-2007 10:42 AM
Hi Sathiya/Prasant,
Thanks for your inputs.
Can you please help me with an example on using the
Dynpro and Field_tab.
Since I want to get some values back to the screen from the F4 help.
Regards,
Rupesh R Nair.
08-17-2007 10:50 AM
Hi All,
Please help me in using the FM.Its quite urgent.
Regards,
Rupesh
08-17-2007 10:51 AM
Hi Nair
PERFORM F4function_call USING 'ATNAM' 'IT_MAINT2-ATNAM'.
PERFORM F4function_call USING 'ATNAM' 'IT_MAINT2-ATNAM1'.
The second one is the 'screen filed name' you have to change the screen field name only.
In this way it will take the same search help for both the fields
form F4function_call using (p_0319)
value(p_0320).
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = p_0319
PVALKEY = ' '
DYNPPROG = progname
DYNPNR = dynnum
DYNPROFIELD = p_0320
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = 'F'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = it_value2.
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " F4function_call
reward points to all helpful answers
kiran.M
08-17-2007 10:54 AM
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
FIELD_TAB =
RETURN_TAB = RETURN_TAB
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
.
08-17-2007 10:57 AM
Hi all,
Any code for using the Field_tab and Dynpro parameters.
Regards,
Rupesh