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: 

How to use FM ' F4IF_INT_TABLE_VALUE_REQUEST'

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

former_member195698
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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^