<?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 Selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428919#M205281</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;i have created one Z table. in a report of selection screen i have 2 parameters of Ztable. when i press F4 for first field it is giving all values of main table, but i need the possible values of Ztable only. and after entering first field value then the second parameter should display on selection screen and when i press F4 for second field it should pick the values from Z table corresponding to first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 09:42:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T09:42:18Z</dc:date>
    <item>
      <title>Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428919#M205281</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;i have created one Z table. in a report of selection screen i have 2 parameters of Ztable. when i press F4 for first field it is giving all values of main table, but i need the possible values of Ztable only. and after entering first field value then the second parameter should display on selection screen and when i press F4 for second field it should pick the values from Z table corresponding to first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428919#M205281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428920#M205282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vijay,&lt;/P&gt;&lt;P&gt;  for the second case i.e, picking up the values in field2 based on field 1 code the required logic in &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT SELECTION-SCREEN ON FIELD&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428920#M205282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428921#M205283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;but i need the possible values of Ztable only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) this either u can write using &lt;/P&gt;&lt;P&gt;   F4 functionality (fm F4IF_INT_TABLE_VALUE_REQUEST)&lt;/P&gt;&lt;P&gt;   by selecting distinct values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Or there must be some another Table&lt;/P&gt;&lt;P&gt;   where ALL THE COMBINATIONS OF   FIELD1 &amp;amp; FIELD2&lt;/P&gt;&lt;P&gt;   are maintained&lt;/P&gt;&lt;P&gt;  (just like table T001L - Werks, and Lgort combination)&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. For the 2nd parameter, then,&lt;/P&gt;&lt;P&gt;   U can make a search help,&lt;/P&gt;&lt;P&gt;   based upon your z table (which stores all distinct combinations)&lt;/P&gt;&lt;P&gt;  and make the field1 as IMPORTING parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (then F4 on 2nd field, will give only those&lt;/P&gt;&lt;P&gt;  values, which are filtered on parameter 1 as on screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;3. To get a taste of it, just copy paste in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report ABC.&lt;/P&gt;&lt;P&gt;PARAMETERS : WERKS LIKE T001L-WERKS,&lt;/P&gt;&lt;P&gt;             LGORT LIKE T001L-LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428921#M205283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428922#M205284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;   check the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: itab type table of &amp;lt;table&amp;gt;.
parameter: a like ztable-field1,
           b like ztable-field2.

 at selection-screen on value-request for b.


select * from &amp;lt;table&amp;gt; into table itab
    where field1 = a.


      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
*         DDIC_STRUCTURE         = ' '
          RETFIELD               = 'FIELD'
*         PVALKEY                = ' '
*         DYNPPROG               = ' '
*         DYNPNR                 = ' '
*         DYNPROFIELD            = ' '
*         STEPL                  = 0
*         WINDOW_TITLE           =
*         VALUE                  = ' '
         VALUE_ORG              = 'S'
*         MULTIPLE_CHOICE        = ' '
*         DISPLAY                = ' '
*         CALLBACK_PROGRAM       = ' '
*         CALLBACK_FORM          = ' '
*         MARK_TAB               =
*       IMPORTING
*         USER_RESET             =
        TABLES
          VALUE_TAB              = itab
*         FIELD_TAB              =
*         RETURN_TAB             =
*         DYNPFLD_MAPPING        =
*       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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428922#M205284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428923#M205285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this 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="1789408"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428923#M205285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428924#M205286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These requirements have to be coded under the AT SELECTION SCREEN ON VALUE REQUEST ON &amp;lt;Field&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can populate the an internal table with values you require by using the function module F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428924#M205286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428925#M205287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question has been asked a number of times. You can use a the FM F4IF_FIELD_VALUE_REQUEST and F4IF_INT_TABLE_VALUE_REQUEST to achieve your result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go through this link...It has exactly the same requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="180644"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Related link&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Explaination&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;In the POV (at selection-screen on value-request for field1) for the first field&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just call the FM 'F4IF_FIELD_VALUE_REQUEST' to fill the values in the first field.&lt;/P&gt;&lt;P&gt;Now call the FM 'DYNP_VALUES_READ' to read the selected value of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;In the POV of the second field&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the select statement to select the required second field values.&lt;/P&gt;&lt;P&gt;Now fill the second field values using the FM &lt;/P&gt;&lt;P&gt;'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Close the thread once the problem is solved.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 10:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428925#M205287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428926#M205288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Vinay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following Code&lt;/P&gt;&lt;P&gt;change the table Names as per your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : MARD.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_MARD OCCURS 0,&lt;/P&gt;&lt;P&gt;WERKS LIKE MARD-WERKS,&lt;/P&gt;&lt;P&gt;END OF IT_MARD.&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_WERKS LIKE MARD-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT WERKS FROM MARD UP TO 10 ROWS INTO table IT_MARD.&lt;/P&gt;&lt;P&gt;&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 = 'WERKS'&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_WERKS'&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_MARD&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>Wed, 19 Jul 2006 10:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1428926#M205288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T10:23:03Z</dc:date>
    </item>
  </channel>
</rss>

