<?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: Selection-screen fields f4 help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178348#M1198801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use this function modile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP_START &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP_VALUES_GET_WITH_TABLE&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;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2009 12:41:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-16T12:41:09Z</dc:date>
    <item>
      <title>Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178340#M1198793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;      I have two fields,plant and location.&lt;/P&gt;&lt;P&gt;based on the plant selection,the location f4 should get..&lt;/P&gt;&lt;P&gt;how to read the selected plant in at selection-screen on value-request for location??.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178340#M1198793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178341#M1198794</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;THIS IS A WORKING EXAMPLE...YOU CAN GO LIKE THIS WITH YOUR REQUIRED FIELDS&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;TABLES:&lt;/P&gt;&lt;P&gt;  sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;  p_conn TYPE sflight-connid,&lt;/P&gt;&lt;P&gt;  p_carr TYPE sflight-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  w_field TYPE dfies-fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  BEGIN OF type_s_carr,&lt;/P&gt;&lt;P&gt;    carrid TYPE sflight-carrid,&lt;/P&gt;&lt;P&gt;  END OF type_s_carr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  t_table TYPE&lt;/P&gt;&lt;P&gt; STANDARD TABLE&lt;/P&gt;&lt;P&gt;       OF type_s_carr&lt;/P&gt;&lt;P&gt;     WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT carrid&lt;/P&gt;&lt;P&gt;    FROM sflight&lt;/P&gt;&lt;P&gt;    INTO TABLE t_table&lt;/P&gt;&lt;P&gt;   UP TO 1 ROWS.&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;    ddic_structure         = ' '&lt;/P&gt;&lt;P&gt;      retfield               = 'CARRID'&lt;/P&gt;&lt;P&gt;    pvalkey                = ' '&lt;/P&gt;&lt;P&gt;    dynpprog               = ' '&lt;/P&gt;&lt;P&gt;    dynpnr                 = ' '&lt;/P&gt;&lt;P&gt;    dynprofield            = ' '&lt;/P&gt;&lt;P&gt;    stepl                  = 0&lt;/P&gt;&lt;P&gt;    window_title           =&lt;/P&gt;&lt;P&gt;    value                  = ' '&lt;/P&gt;&lt;P&gt;    value_org              = 'C'&lt;/P&gt;&lt;P&gt;    multiple_choice        = ' '&lt;/P&gt;&lt;P&gt;    display                = ' '&lt;/P&gt;&lt;P&gt;    callback_program       = ' '&lt;/P&gt;&lt;P&gt;    callback_form          = ' '&lt;/P&gt;&lt;P&gt;    mark_tab               =&lt;/P&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;    user_reset             =&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab              = t_table&lt;/P&gt;&lt;P&gt;    field_tab              =&lt;/P&gt;&lt;P&gt;    return_tab             =&lt;/P&gt;&lt;P&gt;    dynpfld_mapping        =&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;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178341#M1198794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178342#M1198795</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;PRE&gt;&lt;CODE&gt;
*internal table made to populate the value of werks when pressing f4
DATA: BEGIN OF IT_FINAL OCCURS 0,
      WERKS TYPE MARC-WERKS,
      END OF IT_FINAL.

data: IT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH header line.

parameters: p_werks(10) type c.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.

  select  werks from marc
  into table IT_FINAL.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*   DDIC_STRUCTURE         = ' '
      RETFIELD               = 'WERKS'   "field of internal table
     VALUE_ORG              = 'S'
    TABLES
      VALUE_TAB              = IT_FINAL
*   FIELD_TAB              =
     RETURN_TAB             = IT_RETURN

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178342#M1198795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178343#M1198796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Function module will decrease with performance of your program because Function group will be loaded into your program's memory at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selectION-screen ON VALUE-REQUEST FOR FIELDNAME.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  object_f4help
*&amp;amp;---------------------------------------------------------------------*
*  Provides the possible values for pa_obj
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM object_f4help.
* Refresh the internal table. This helps in reusing these tables and variables in * other subroutines.
  CLEAR:   tb_dynpfields,
           tb_object_range.
  REFRESH: tb_dynpfields,
           tb_object_range.
* Define Internal tables.
  DATA: tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE.
* Define constants.
  CONSTANTS: co_retfield  TYPE  dfies-fieldname VALUE 'OBJECT',
             co_dynprog   LIKE sy-repid
                                 VALUE '/DCSEA/Z_AIS_NUM_RESET_PAJERO',
             co_s         TYPE c VALUE 'S',
             co_field(27) TYPE c VALUE 'PA_OBJ'.
* Assigning the values of program name and screen to the variables.
  wf_dyname = sy-repid.   " PROGRAM NAME
  wf_dynumb = sy-dynnr.   " SCREEN NUMBER
  wf_dynpro = co_field. 
* Move the field name to tb_dynpfields.
  MOVE 'PA_WERKS' TO
            tb_dynpfields-fieldname.
  APPEND tb_dynpfields.
* Read screen field values before PAI field transport. This FM is used for dynamically * reading a value from the selection screen field .
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            dyname               = wf_dyname
            dynumb               = wf_dynumb
       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 the tbale tb_dynpfields to read the dynamic value of pa_werks
  READ TABLE tb_dynpfields INDEX 1.
  IF sy-subrc = 0.
    wf_werks = tb_dynpfields-fieldvalue.
  ENDIF.
* Populate the table tb_object_range. Make sure that we filter out null values as it * might appear on the screen.
  SELECT werks object
    INTO TABLE tb_object_range
    FROM zais_mmg
    WHERE werks  EQ wf_werks
      and object NE ' '.
* Sorting is always done before dlete adjacent duplicate.
  sort tb_object_range.
* This will delete all duplicate entries. Or else when you press F4, it will display * the duplicates also.
  delete adjacent duplicates from tb_object_range comparing object.
* F4 help also returning the value to be displayed in internal table. If the internal table is empty, it will display the message saying 'Values are not found'.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            retfield        = co_retfield
            dynpprog        = co_dynprog
            dynpnr          = sy-dynnr
            dynprofield     = wf_dynpro
            value_org       = co_s
       TABLES
            value_tab       = tb_object_range
       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.                    " object_f4help&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: Bukrs TYPE spfli-carrid,
name1 TYPE spfli-carrid.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR name1.
CALL SCREEN 100 STARTING AT 10 5
ENDING AT 50 10.

MODULE value_list OUTPUT.
SUPPRESS DIALOG.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
SET PF-STATUS space.
NEW-PAGE NO-TITLE.

select single bukrs from &amp;lt;Databasetable&amp;gt; into &amp;lt;ITAB&amp;gt;-BUkrs
where name1 = name1.

Write : / Itab-bukrs.
hide bukrs.
Endselect.
ENDMODULE.

AT LINE-SELECTION.
CHECK NOT name1 IS INITIAL.
LEAVE TO SCREEN 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178343#M1198796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178344#M1198797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Have a look at my Sample Code in the following Thread hope will help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Filter in F4 Functionallity |&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1187782"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178344#M1198797</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-16T12:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178345#M1198798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   Please check this sample program&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;demo_dynpro_dropdown_listbox.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178345#M1198798</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-16T12:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178346#M1198799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;First create a search-help for the second field(location) and this Search help use &lt;STRONG&gt;Plant field as a Import parameter&lt;/STRONG&gt;  and &lt;STRONG&gt;location as Export Parameter&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This way you will get the Location according the plant .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178346#M1198799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178347#M1198800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me tell u clearly..&lt;/P&gt;&lt;P&gt;for the plant i mentioned it as p_werks type t001w-werks.(f4 comes default without any coding)&lt;/P&gt;&lt;P&gt;data:g_lgort type lgort_d.&lt;/P&gt;&lt;P&gt;for location select-options: s_lgort for g_lgort no-extension no intervals.&lt;/P&gt;&lt;P&gt;now i had selected a plant 1100 in the screen.&lt;/P&gt;&lt;P&gt;then f4 should come for the location only for the plant 1100.&lt;/P&gt;&lt;P&gt;now how should i read it while selecting location data from too1L?..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178347#M1198800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178348#M1198801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use this function modile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP_START &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP_VALUES_GET_WITH_TABLE&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;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178348#M1198801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178349#M1198802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just call like this...&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          fieldname                 = 'WERKS'&lt;/P&gt;&lt;P&gt;          tabname                   = 'T001W'&lt;/P&gt;&lt;P&gt;          title_in_values_list      = 'Select a value'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          select_value              = lc_werks&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          fields                    =    ltab_fields&lt;/P&gt;&lt;P&gt;          valuetab                  = ltab_values&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          field_not_in_ddic         = 01&lt;/P&gt;&lt;P&gt;          more_then_one_selectfield = 02&lt;/P&gt;&lt;P&gt;          no_selectfield            = 03.&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;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178349#M1198802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178350#M1198803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here wat are  ltab_values and ltab_fields??..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 12:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178350#M1198803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T12:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178351#M1198804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Test the following Sample Code. I have test and it is working fine as your requirement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: t001w, t001l.

SELECT-OPTIONS p_werks FOR t001w-werks NO-EXTENSION NO INTERVALS.
SELECT-OPTIONS g_lgort FOR t001l-lgort NO-EXTENSION NO INTERVALS.

DATA: i_return TYPE ddshretval OCCURS 0 WITH HEADER LINE,
      c TYPE c VALUE 'S'.

* Search Help for LGORT
AT SELECTION-SCREEN ON VALUE-REQUEST FOR g_lgort-low.

  TYPES: BEGIN OF t_lgort,
    lgort LIKE t001l-lgort,
  END OF t_lgort.

  DATA: it_lgort TYPE STANDARD TABLE OF t_lgort WITH HEADER LINE.

  SELECT DISTINCT lgort
    INTO CORRESPONDING FIELDS OF TABLE it_lgort
    FROM t001l
    WHERE werks = p_werks-low.

  SORT it_lgort BY lgort.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'P_WERKS'
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = 'P_WERKS'
      value_org   = c
    TABLES
      value_tab   = it_lgort
      return_tab  = i_return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one thing more don't forget to Press the enter Button after enter the Plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if any Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 13:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178351#M1198804</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-16T13:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen fields f4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178352#M1198805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;parameters:     p_werks type t001l-werks obligatory memory id pw,&lt;/P&gt;&lt;P&gt;                p_lgort type t001l-lgort.&lt;/P&gt;&lt;P&gt;this is what i did..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 13:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-f4-help/m-p/5178352#M1198805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T13:29:01Z</dc:date>
    </item>
  </channel>
</rss>

