12-03-2007 2:51 PM
Hi all experts ...
I am using F M 'F4IF_INT_TABLE_VALUE_REQUEST' but it is not displaying ...
it will show me value when I press F4 but after selecting a value it is not showing any thing....i am using field from ztable and that field is not having dataelement...
i am sending my code plz check this ......and tell me exactly what is problem ...
Thanx in advance...
***********************
DATA : BEGIN OF IT_CASE1 OCCURS 2,
NUM LIKE ZSUPPL_CONTRACTS-BILL_MONTH,
MON LIKE ZSUPPL_CONTRACTS-MATERIAL,
END OF IT_CASE1.
DATA : t_return like ddshretval occurs 0 with header line.
SELECT-OPTIONS S_MONTH FOR ZSUPPL_CONTRACTS-BILL_MONTH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH-LOW.
REFRESH it_case1.
IT_CASE1-NUM = '11'.
IT_CASE1-MON = 'NOV'.
APPEND IT_CASE1.
IT_CASE1-NUM = '12'.
IT_CASE1-MON = 'DEC'.
APPEND IT_CASE1.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'NUM'
value_org = 'S'
tables
value_tab = IT_CASE1
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
*BREAK-POINT.
*shift t_return-fieldval left deleting leading space.
if sy-subrc = 0.
read table t_return index 1.
S_MONTH = t_return-fieldval.
endif.
Thanx in advance
12-03-2007 2:53 PM
Hi,
This example is for search help for material type .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_mtart-low .
select all material types you want to display in search help into table i_mtart.
PERFORM select_material_type.
PERFORM help_material_type.
*&---------------------------------------------------------------------*
*& Form help_material_type
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM help_material_type .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'MTART'
* PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'S_MTART-LOW'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = i_mtart
* 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. " help_material_type
Hope this helps you.
Regards,
Satish
12-03-2007 2:57 PM
If you don't give the field name on the screen to update to the function module (parameters DYNPPROG, DYNPNR and DYNPROFIELD) you have to do it by using Function module DYNP_VALUES_UPDATE. Else the PAI read data from screen again after the POV event and write over your selected value with the value previously on screen.
<i>(There are plenty samples on sdn look at</i> <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/advancedsearch?query=f4if_int_table_value_request++sample&cat=sdn_all">f4if_int_table_value_request at sdn</a><i>)</i>
Regards
12-03-2007 3:03 PM
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'NUM'
<b>dynprofield = 'S_MONTH-LOW' </b>
value_org = 'S'
tables
value_tab = IT_CASE1
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
12-03-2007 3:09 PM
hi
good
go through this link this ll give you clear idea about F4IF_INT_TABLE_VALUE_REQUEST.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
thanks
mrutyun^