<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332887#M513488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   To get the value of Dept no ,Dont forget to use the function module 'DYNP_VALUES_READ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on value-request for pname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA :it_dynpread LIKE dynpread OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  REFRESH it_dynpread .&lt;/P&gt;&lt;P&gt;   it_dynpread -fieldname  = 'PNAME'.&lt;/P&gt;&lt;P&gt;  append it_dynpread .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            dyname     = sy-repid&lt;/P&gt;&lt;P&gt;            dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            dynpfields =  it_dynpread&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 08:56:59 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2007-06-05T08:56:59Z</dc:date>
    <item>
      <title>selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332880#M513481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt; need a bit of help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say i have two fields on my selection screen --&lt;/P&gt;&lt;P&gt;dept. number&lt;/P&gt;&lt;P&gt;name of employee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my requirement is such that if i give the &amp;lt;b&amp;gt;dept. number&amp;lt;/b&amp;gt; and press F4 on the &amp;lt;b&amp;gt;name of employee&amp;lt;/b&amp;gt; field, then all employee names corresponding to the &amp;lt;b&amp;gt;dept. numbere&amp;lt;/b&amp;gt; ,that i have entered, should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like for example : i enter dept. numbere as 10.&lt;/P&gt;&lt;P&gt;then the name of employees working in dept. Number 10 should be displayed in the F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reply as soon as possible. and if possible please send me the exact coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332880#M513481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332881#M513482</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;What you can do is using the select statement fetch all the desired records into an internal table i.e. Emplyee name and Deptt.&lt;/P&gt;&lt;P&gt;Now, using function F4IF_FIELD_VALUE_REQUEST you can assign this Internal table as a serach help to your field on the selection screen.&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332881#M513482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332882#M513483</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 the fiollowing 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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     &amp;lt;b&amp;gt; retfield               = 'EBELP'&amp;lt;/b&amp;gt;&amp;lt;b&amp;gt;/ &amp;lt;dept no&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     dynpprog               = sy-repid&lt;/P&gt;&lt;P&gt;     dynpnr                 = sy-dynnr&lt;/P&gt;&lt;P&gt;     dynprofield            = 'DYNPFD'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WINDOW_TITLE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     value_org              = 'S'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_FORM          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MARK_TAB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_RESET             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      &amp;lt;b&amp;gt;value_tab              = it_line_items&amp;lt;/b&amp;gt;/&amp;lt;b&amp;gt;&amp;lt;containig dept no and name of emp&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_TAB              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN_TAB             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332882#M513483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:40: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/2332883#M513484</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;Write select query for selecting the name of the employees corresponding to that Department.For that write select query as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT NAME FROM &amp;lt;table&amp;gt; INTO TABLE &amp;lt;itab&amp;gt; WHERE DEPT = &amp;lt;deptno&amp;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               = 'NAME'&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;    VALUE_TAB              = &amp;lt;itab&amp;gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332883#M513484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332884#M513485</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;data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    begin of t_values occurs 2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      value like kna1-begru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    end of t_values,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_return like ddshretval occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_values = 'PAR*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append t_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_values = 'UGG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append t_values.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            retfield        = 'BEGRU'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            value_org       = 'S'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            value_tab       = t_values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            return_tab      = t_return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            parameter_error = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            no_values_found = 2&lt;/P&gt;&lt;P&gt;&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;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332884#M513485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332885#M513486</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;&lt;/P&gt;&lt;P&gt;At selectiom-screen on value request for p_name.&lt;/P&gt;&lt;P&gt;    SELECT DISTINCT&lt;/P&gt;&lt;P&gt;          EMP_NAME&lt;/P&gt;&lt;P&gt;      FROM Employee INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;      ITAB      WHERE&lt;/P&gt;&lt;P&gt;           DEPT = P_DEPT.&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    = 'EMP_NAME'&lt;/P&gt;&lt;P&gt;        DYNPPROG    = SY-REPID&lt;/P&gt;&lt;P&gt;        DYNPNR      = SY-DYNNR&lt;/P&gt;&lt;P&gt;        DYNPROFIELD = 'P_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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here itab is the internal table with fiel EMP_NAME.&lt;/P&gt;&lt;P&gt;P_NAME is the selection screen parameter for employee nbame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpfl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332885#M513486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332886#M513487</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 code sample by Rahul..&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a07a330f-126c-2910-c684-d2a45f0f37dd" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a07a330f-126c-2910-c684-d2a45f0f37dd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332886#M513487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332887#M513488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   To get the value of Dept no ,Dont forget to use the function module 'DYNP_VALUES_READ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on value-request for pname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA :it_dynpread LIKE dynpread OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  REFRESH it_dynpread .&lt;/P&gt;&lt;P&gt;   it_dynpread -fieldname  = 'PNAME'.&lt;/P&gt;&lt;P&gt;  append it_dynpread .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            dyname     = sy-repid&lt;/P&gt;&lt;P&gt;            dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            dynpfields =  it_dynpread&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332887#M513488</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-05T08:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332888#M513489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;     how can we read the value entered in the dept. number field i'm not getting that please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332888#M513489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332889#M513490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You got to read it_dynpread internal table and then move it to p_dept field.&lt;/P&gt;&lt;P&gt;  Check out hte following Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_dept(5) TYPE c,&lt;/P&gt;&lt;P&gt;            p_ename(40) TYPE c.&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_ename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA :it_dynpread LIKE dynpread OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  REFRESH it_dynpread .&lt;/P&gt;&lt;P&gt;  it_dynpread-fieldname = 'P_DEPT'.&lt;/P&gt;&lt;P&gt;  APPEND it_dynpread .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  dyname = sy-repid&lt;/P&gt;&lt;P&gt;  dynumb = sy-dynnr&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;  dynpfields = it_dynpread&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;  OTHERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;READ TABLE it_dynpread INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  p_dept =  it_dynpread-fieldvalue&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT DISTINCT&lt;/P&gt;&lt;P&gt;  emp_name&lt;/P&gt;&lt;P&gt;  FROM employee INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;  itab WHERE&lt;/P&gt;&lt;P&gt;  dept = p_dept.&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    = 'EMP_NAME'&lt;/P&gt;&lt;P&gt;      dynpprog    = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr      = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield = 'P_ENAME'&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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332889#M513490</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-05T11:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332890#M513491</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to transaction abapdocu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; abapdocu-&amp;gt;screens-&amp;gt;processing screens-&amp;gt;F4 help from screens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this will help u better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2332890#M513491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:19:36Z</dc:date>
    </item>
  </channel>
</rss>

