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

Function 'F4IF_INT_TABLE_VALUE_REQUEST'

Hi ,

Can some one please explain the working of the function F4IF_INT_TABLE_VALUE_REQUEST.

Regards

Arun

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2004 at 05:01 AM

    Hi Poornanand,

    I have created an internal table (IT_1)with only one feild 'MNO' to store material number.

    the internal table is populated with material numbers from 1 to 100.

    In the selection screen i have a parameter(MATNR) to select the material numbers , i want to display the material numbers in this internal table.

    I am using AT SELECTION-SCREEN ON VALUES-REQUEST MATNR.

    I have read the doucmentation and on trying it out , i get the message 'NO VALUES SELECTED'.

    Kindly help me to solve this problem.

    Regards

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2004 at 11:55 AM

    Hi Arun,

    The Function Module that you specified provides an F4 help that returns the values that have selected in an internal table.

    This FM(Function Module) is quite useful when you are programming your own F4 help for a field.

    the following example may be of some help to you:

    DATA: lf_repid LIKE sy-repid,

    lf_dynnr LIKE sy-dynnr,

    lf_dynprofield LIKE help_info-dynprofld,

    lf_retfield LIKE dfies-fieldname.

    MOVE sy-repid TO lf_repid.

    MOVE sy-dynnr TO lf_dynnr.

    MOVE 'PA_DPROF' TO lf_dynprofield.

    MOVE 'PROFILNAME' TO lf_retfield.

    PERFORM prepare_gt_value_tab.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    retfield = lf_retfield

    dynpprog = lf_repid

    dynpnr = lf_dynnr

    dynprofield = lf_dynprofield

    value_org = 'S'

    TABLES

    value_tab = it_value_tab

    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.

    I hope this helps.

    Hafeez

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Arun

      To retrieve the selected field add the following after Hafeez's code:

      READ TABLE it_value_tab INDEX 1 .
      IF sy-subrc = 0 .
      <field_to_get_Fvalue> = it_value_tab-fieldval .
      ENDIF .

      Search the forum for the keyword "F4IF_INT_TABLE_VALUE_REQUEST" to find out some other info.

      Regards...

      *--Serdar

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2004 at 04:48 AM

    Hello Arun,

    The documentation for this Function Module is very well written. Just go and find it in SE37. In case you are not able to do that, please let me know, I will post it for you.

    Regards,

    Anand Mandalika.

    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.