<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: F4 Value Request FM Using Fieldnames in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265921#M1215913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_bukrs TYPE bukrs.

DATA : BEGIN OF itab OCCURS 0,
         bukrs TYPE bukrs,
       END OF itab.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.

  PERFORM f4_bukrs_help USING p_bukrs.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f4_bukrs_help
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_BUKRS text
*----------------------------------------------------------------------*
FORM f4_bukrs_help USING p_bukrs.

  SELECT bukrs from &amp;lt;db_table&amp;gt; INTO TABLE itab.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield               = 'BURKS' "internal table field
      dynpprog               = 'Z_F4' "program name
      dynpnr                 = '1000' "screen number
      dynprofield            = 'P_BUKRS' "screen field name
      value_org              = 'S'
    TABLES
      value_tab              = itab "internal table
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

ENDFORM.                    " f4_bukrs_help
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2009 07:02:11 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2009-03-16T07:02:11Z</dc:date>
    <item>
      <title>F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265915#M1215907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any for F4 value request function module using Field name as input? For example BUKRS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265915#M1215907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265916#M1215908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/EACC/F4HELP_FIELDNAME&lt;/P&gt;&lt;P&gt;ACE_BUKRS_F4_VALUES_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lakshman N on Mar 16, 2009 7:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265916#M1215908</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-03-16T06:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265917#M1215909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi use following ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Input help for Cost Center Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST   FOR p_ccgrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_ccenter_group,&lt;/P&gt;&lt;P&gt;setname TYPE setnamenew,&lt;/P&gt;&lt;P&gt;descript TYPE settext,&lt;/P&gt;&lt;P&gt;END OF ty_ccenter_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR it_ccenter_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a~setname&lt;/P&gt;&lt;P&gt;b~descript&lt;/P&gt;&lt;P&gt;INTO TABLE it_ccenter_group&lt;/P&gt;&lt;P&gt;FROM setheader AS a INNER JOIN&lt;/P&gt;&lt;P&gt;setheadert AS b ON&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;subclass EQ b&lt;/SUB&gt;subclass AND&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;setname EQ b&lt;/SUB&gt;setname&lt;/P&gt;&lt;P&gt;WHERE a~setclass EQ '0101' AND&lt;/P&gt;&lt;P&gt;b~langu EQ sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION  &lt;/P&gt;&lt;P&gt;'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ret field        =  'SETNAME'&lt;/P&gt;&lt;P&gt;dynpprog     =  v_repid&lt;/P&gt;&lt;P&gt;dynpnr         =    SY-DYNR&lt;/P&gt;&lt;P&gt;dynprofield = 'P_CCGRP'&lt;/P&gt;&lt;P&gt;value_org    = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;value_tab   = it_ccenter_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three&lt;/P&gt;&lt;P&gt;parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = table/structure&lt;/P&gt;&lt;P&gt;FIELDNAME = 'field name'&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN_TAB = table of type DYNPREAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265917#M1215909</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2009-03-16T06:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265918#M1215910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;F4_IF_FIELD_VALUE_REQUEST:&lt;/STRONG&gt;Use values from a DDIC table to provide a list of possible values.   TABNAME and FIELDNAME are required fields, and when MULTIPLE_CHOICE is selected, more than one value can be returned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            retfield        = &lt;/P&gt;&lt;P&gt;            value_org       = &lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            value_tab       = &lt;/P&gt;&lt;P&gt;            return_tab      = &lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            parameter_error = 1&lt;/P&gt;&lt;P&gt;            no_values_found = 2&lt;/P&gt;&lt;P&gt;            others          = 3.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;NNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265918#M1215910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T07:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265919#M1215911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MArc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this FM &lt;STRONG&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/STRONG&gt; or &lt;STRONG&gt;F4IF_FIELD_VALUE_REQUEST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265919#M1215911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T07:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265920#M1215912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Function Module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;F4IF_FIELD_VALUE_REQUEST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265920#M1215912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265921#M1215913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_bukrs TYPE bukrs.

DATA : BEGIN OF itab OCCURS 0,
         bukrs TYPE bukrs,
       END OF itab.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.

  PERFORM f4_bukrs_help USING p_bukrs.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f4_bukrs_help
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_BUKRS text
*----------------------------------------------------------------------*
FORM f4_bukrs_help USING p_bukrs.

  SELECT bukrs from &amp;lt;db_table&amp;gt; INTO TABLE itab.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield               = 'BURKS' "internal table field
      dynpprog               = 'Z_F4' "program name
      dynpnr                 = '1000' "screen number
      dynprofield            = 'P_BUKRS' "screen field name
      value_org              = 'S'
    TABLES
      value_tab              = itab "internal table
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

ENDFORM.                    " f4_bukrs_help
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265921#M1215913</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-16T07:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265922#M1215914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the FM 'F4IF_INT_TABLE_VALUE_REQUEST' takes the field name and the table name as input parameter for F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search the forum for the good code snippet.&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265922#M1215914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T07:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265923#M1215915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I can have many fieldnames depending on what the user select. I have two fields, Field A has a list of fieldnames... for example, BUKRS, BELNR etc... Field B then will have the F4 value request that depends on the value of Field A. So my F4 value request for Field B is dynamic...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265923#M1215915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T07:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265924#M1215916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, first you need to read the value selected in field A and then pass this selected value as the filedname in te FM for fieldB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:For reading the value selected in the FieldA you need to use the FM 'DYNP_VALUES_READ' and then final value is then passed to F4 search help FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provided above code is absolutely fine and are good for better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pooja Gupta on Mar 16, 2009 8:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265924#M1215916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T07:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265925#M1215917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field A - BELNR &lt;/P&gt;&lt;P&gt;Field B - BUKRS (get f4 help based on field A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_belnr TYPE belnr,
             p_bukrs TYPE bukrs.
 
DATA : BEGIN OF itab OCCURS 0,
         bukrs TYPE bukrs,
       END OF itab.
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
 
  PERFORM f4_bukrs_help USING p_bukrs.
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f4_bukrs_help
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_BUKRS text
*----------------------------------------------------------------------*
FORM f4_bukrs_help USING p_bukrs.

  DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
         tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
         v_belnr TYPE belnr.

  CLEAR:   tb_dynpfields.
  REFRESH: tb_dynpfields.

  MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
  APPEND tb_dynpfields.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname                               = 'Z_F4' "program name
      dynumb                               = '1000' "screen number
    TABLES
      dynpfields                           = tb_dynpfields
    EXCEPTIONS
      INVALID_ABAPWORKAREA                 = 1
      INVALID_DYNPROFIELD                  = 2
      INVALID_DYNPRONAME                   = 3
      INVALID_DYNPRONUMMER                 = 4
      INVALID_REQUEST                      = 5
      NO_FIELDDESCRIPTION                  = 6
      INVALID_PARAMETER                    = 7
      UNDEFIND_ERROR                       = 8
      DOUBLE_CONVERSION                    = 9
      STEPL_NOT_FOUND                      = 10
      OTHERS                               = 11.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  READ TABLE tb_dynpfields INDEX 1.
  IF sy-subrc EQ 0.
    v_belnr = tb_dynpfields-fieldvalue.
  ENDIF.
 
  SELECT bukrs from &amp;lt;db_table&amp;gt; INTO TABLE itab WHERE belnr = v_belnr.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield               = 'BURKS' "internal table field
      dynpprog               = 'Z_F4' "program name
      dynpnr                 = '1000' "screen number
      dynprofield            = 'P_BUKRS' "screen field name
      value_org              = 'S'
    TABLES
      value_tab              = itab "internal table
    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.                    " f4_bukrs_help
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265925#M1215917</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-16T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265926#M1215918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , use the below FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield               = 'BURKS' "internal table field&lt;/P&gt;&lt;P&gt;      dynpprog               = 'zprogram_demo' "program name&lt;/P&gt;&lt;P&gt;      dynpnr                 = '1000' "screen number&lt;/P&gt;&lt;P&gt;      dynprofield            = 'P_BUKRS' "screen field name&lt;/P&gt;&lt;P&gt;      value_org              = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab              = itab_demo "internal table&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      PARAMETER_ERROR        = 1&lt;/P&gt;&lt;P&gt;      NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF sy-subrc  0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 07:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265926#M1215918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T07:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265927#M1215919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for s_bukrs-low.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            retfield    = 'BUKRS'&lt;/P&gt;&lt;P&gt;            dynprofield = 'S_BUKRS'&lt;/P&gt;&lt;P&gt;            dynpprog    = sy-cprog&lt;/P&gt;&lt;P&gt;            dynpnr      = sy-dynnr&lt;/P&gt;&lt;P&gt;            value_org   = 'S'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            value_tab   = it001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anki Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 08:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265927#M1215919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T08:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265928#M1215920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check the below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1824078"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anki Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 08:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265928#M1215920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T08:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265929#M1215921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DISPLAY_BUKRS_MASKIERT_F4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 08:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265929#M1215921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T08:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Value Request FM Using Fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265930#M1215922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this FM 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 08:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-value-request-fm-using-fieldnames/m-p/5265930#M1215922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T08:54:41Z</dc:date>
    </item>
  </channel>
</rss>

