Skip to Content
author's profile photo Former Member
Former Member

How to use FM ' F4IF_INT_TABLE_VALUE_REQUEST'

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 02: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.

    (There are plenty samples on sdn look at f4if_int_table_value_request" target="_blank">www.sdn.sap.com/irj/sdn/advancedsearch?query=f4if_int_table_value_request++sample&cat=sdn_all">f4if_int_table_value_request at sdn)

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 03: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^

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.