<?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 F4 help for a select option selection screen without table reference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438921#M208967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;My requirement is to have a single char field as a select option in the selection screen. When i press F4 i should get values a, b, c, ...... to z from there i should be able to select the value for the select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have a table field referrenece for declaring the select option. i search for a single char field in few tables and used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2006 09:50:29 GMT</pubDate>
    <dc:creator>former_member764673</dc:creator>
    <dc:date>2006-06-23T09:50:29Z</dc:date>
    <item>
      <title>F4 help for a select option selection screen without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438921#M208967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;My requirement is to have a single char field as a select option in the selection screen. When i press F4 i should get values a, b, c, ...... to z from there i should be able to select the value for the select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have a table field referrenece for declaring the select option. i search for a single char field in few tables and used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438921#M208967</guid>
      <dc:creator>former_member764673</dc:creator>
      <dc:date>2006-06-23T09:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for a select option selection screen without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438922#M208968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajanidhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can handle this using the event &amp;lt;b&amp;gt;At selection-screen ON VALUE-REQUEST FOR psel_low_high&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the values use an internal table and add the values to itab and pass to the below FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this FM F4IF_INT_TABLE_VALUE_REQUEST ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the above one doesnt work then&lt;/P&gt;&lt;P&gt;look this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/value-request-for-parameter.htm" target="test_blank"&gt;http://www.sap-img.com/abap/value-request-for-parameter.htm&lt;/A&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;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438922#M208968</guid>
      <dc:creator>sridharreddy_kondam</dc:creator>
      <dc:date>2006-06-23T09:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for a select option selection screen without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438923#M208969</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 Demo program &amp;lt;b&amp;gt;DEMO_SELECTION_SCREEN_F4&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also you can use the FM in the event at selection-screen on value-request for p_matnr.&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;F4IF_INT_TABLE_VALUE_REQUEST&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438923#M208969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T09:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for a select option selection screen without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438924#M208970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rajasekeran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : MARA.&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF IT_MARA OCCURS 0,&lt;/P&gt;&lt;P&gt;        MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;        MTART LIKE MARA-MTART,&lt;/P&gt;&lt;P&gt;     END OF IT_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;parameters : P_MATNR LIKE MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MATNR MTART FROM MARA INTO table it_mara where MTART = 'ROH'.&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               = 'MATNR'&lt;/P&gt;&lt;P&gt;    DYNPPROG               = SY-REPID&lt;/P&gt;&lt;P&gt;    DYNPNR                 = '1000'&lt;/P&gt;&lt;P&gt;    DYNPROFIELD            = 'P_MATNR'&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_mara&lt;/P&gt;&lt;P&gt;    RETURN_TAB             = T_RETURN&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;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438924#M208970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T09:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for a select option selection screen without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438925#M208971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1) &amp;lt;b&amp;gt;F4IF_INT_TABLE_VALUE_REQUEST --&amp;gt; &amp;lt;/b&amp;gt; F4 help that returns the values selected in an internal table. Very handy when programming your very own F4 help for a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) create a MATCHCODE object for your field ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MATCHCODE OBJECT mobj&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt;On the selection screen, assigns the matchcode object mobj to the parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; On the selection screen, the matchcode object mobj is assigned to the left range limit of the selection criterion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The name of the matchcode object must be a constant, i.e. a value specified without quotation marks, and can be up to 4 characters long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438925#M208971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T09:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for a select option selection screen without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438926#M208972</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 sample..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  zvalue_help.
data: v_plant type werks_d.
data: begin of t_marc occurs 0,
        material type matnr,
        werks type werks_d,
      end of t_marc.


parameters: plant type werks_d,
            material type matnr.


at selection-screen on value-request for material.

  data:
    l_dynfieldtab           like dynpread occurs 1,
    l_dynfieldtab_wa        like dynpread,
    l_repid                 like sy-repid,
    l_dynnr                 like sy-dynnr.


  move : sy-repid to l_repid,
         sy-dynnr to l_dynnr.

* move selected entry to screen
* fill internal table with screen fields
  clear   l_dynfieldtab.
  refresh l_dynfieldtab.

  move 'PLANT' to l_dynfieldtab_wa-fieldname.
  append l_dynfieldtab_wa to l_dynfieldtab.


  call function 'DYNP_VALUES_READ'
    exporting
      dyname                         = l_repid
      dynumb                         = l_dynnr
    tables
      dynpfields                     = l_dynfieldtab
* 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.

  if sy-subrc &amp;lt;&amp;gt; 0.
    message i711(qp).    "internal error: system. adm.
  else.
  read table l_dynfieldtab into l_dynfieldtab_wa index 1.
    v_plant  = l_dynfieldtab_wa-fieldvalue.
  endif.

  select matnr werks into table t_marc
         from marc
         where werks = v_plant.

*--local data declaration
  data: lv_retfield type  dfies-fieldname,     " Field Name
        lv_maxline type i,                     " Maximum no of records
        lt_return_tab like ddshretval occurs 0 with header line.

  lv_retfield = 'MATERIAL'.
*--Calling the function module for F4 help.
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield        = lv_retfield
      value_org       = 'S'
    tables
      value_tab       = t_marc[]
      return_tab      = lt_return_tab
    exceptions
      parameter_error = 1
      no_values_found = 2
      others          = 3.
  if sy-subrc = 0.
    read table lt_return_tab  index 1.
    material = lt_return_tab-fieldval.
  endif.

start-of-selection.
  write:/ 'F4 VALUE HELP TEST PROGRA'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-a-select-option-selection-screen-without-table-reference/m-p/1438926#M208972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T09:58:44Z</dc:date>
    </item>
  </channel>
</rss>

