<?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 Need Help on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507414#M1422914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have Two parameters on selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   P1&lt;/P&gt;&lt;P&gt;   P2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have F4 help for both parameters .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i have selected one value for P1 through F4 ,Depending on that  second parameter will get values ,Which is my requirement also ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But issue is , when I selected P1 through F4 then only i am getting F4 for p1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose If user enters manually on P1 I am not getting F4 for P2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please suggest me how to do both things .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if did not get requirement i will explain it again&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 09:27:07 GMT</pubDate>
    <dc:creator>kamesh_g</dc:creator>
    <dc:date>2010-01-21T09:27:07Z</dc:date>
    <item>
      <title>Need Help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507414#M1422914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have Two parameters on selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   P1&lt;/P&gt;&lt;P&gt;   P2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have F4 help for both parameters .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i have selected one value for P1 through F4 ,Depending on that  second parameter will get values ,Which is my requirement also ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But issue is , when I selected P1 through F4 then only i am getting F4 for p1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose If user enters manually on P1 I am not getting F4 for P2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please suggest me how to do both things .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if did not get requirement i will explain it again&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507414#M1422914</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2010-01-21T09:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507415#M1422915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data t_return like ddshretval occurs 0 with header line.
&amp;lt;declare parameters p1 and p2&amp;gt;
at selection-screen on value-request for p1.

refresh t_p1.

SELECT &amp;lt;your fields&amp;gt; from &amp;lt;table&amp;gt;  INTO CORRESPONDING FIELDS OF TABLE T_p1.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'field1'
value_org = 'S'
tables
value_tab = t_values                  " the selected values passed to FM
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.

if sy-subrc = 0.
read table t_return index 1.
p1 = t_return-fieldval.
endif.

 at selection-screen on value-request for p2.

SELECT &amp;lt;your fields&amp;gt; from &amp;lt;table&amp;gt;  INTO CORRESPONDING FIELDS OF TABLE T_p2.

refresh t_p1.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'field2'
value_org = 'S'
tables
value_tab = t_values                  " the selected values passed to FM
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.


if sy-subrc = 0.
read table t_return index 1.
p2 = t_return-fieldval.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507415#M1422915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T09:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507416#M1422916</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 Field Mapping to get F4 based on First Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second use DYNP_VALUES_READ to get the Value entered( Not F4) in first parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM gives the Value entered in First parameter whenever you take F4 help based on this you can get the F4 for second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use correct flags to differenitate to know whether first field entered or F4 help has been taken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take F1 helps on key words.&lt;/P&gt;&lt;P&gt;or Take Where used list on F4 Help Function Module and DYNP_VALUES_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507416#M1422916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T09:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507417#M1422917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the input of one parameter based on which the serach help of the second parameter will populate then in that case you will have to create the search help exit by exporting the value in the memory and importing the value in the in the serach help exit .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jatender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507417#M1422917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T09:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507418#M1422918</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 run this program and you will be able to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_t399i TYPE t399i OCCURS 0.
DATA: it_return_tab TYPE ddshretval OCCURS 0,
      wa_return LIKE LINE OF it_return_tab.

PARAMETER : p_swerk TYPE iloa-swerk.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_swerk.
  IF it_t399i[] IS INITIAL.
    SELECT * FROM t399i INTO TABLE it_t399i.
  ENDIF.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'IWERK'
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = 'P_SWERK'
      value_org   = 'S'
    TABLES
      value_tab   = it_t399i
      return_tab  = it_return_tab.
  IF sy-subrc EQ 0.
    READ TABLE it_return_tab INTO wa_return INDEX 1.
    IF sy-subrc EQ 0.
      p_swerk = wa_return-fieldval.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anshul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507418#M1422918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507419#M1422919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is question is answered with some inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 12:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/6507419#M1422919</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2010-01-21T12:09:38Z</dc:date>
    </item>
  </channel>
</rss>

