<?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 on Selection-Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500602#M842001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I have one query on F4 help for selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I developed a report for displaying warehouse stock.For this in selection-screen i have select-options Plant ,material and Pur.Group are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I wrote F4 help for Plant by using the FM 'F4IF_INT_TABLE_VALUE_REQUEST' .Its working successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     But now i have to write F4help for Material, But here the requiremnet is , when the user gives the plant  after he presses F4 help on Material , he needs to see only the materials and material descriptions into that corresponding plant only.Material other than the above plant will not appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Please can any one suggest me how to do..&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;Thanks and Regards&lt;/P&gt;&lt;P&gt;Siri...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2008 11:38:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-05T11:38:21Z</dc:date>
    <item>
      <title>F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500602#M842001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I have one query on F4 help for selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I developed a report for displaying warehouse stock.For this in selection-screen i have select-options Plant ,material and Pur.Group are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I wrote F4 help for Plant by using the FM 'F4IF_INT_TABLE_VALUE_REQUEST' .Its working successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     But now i have to write F4help for Material, But here the requiremnet is , when the user gives the plant  after he presses F4 help on Material , he needs to see only the materials and material descriptions into that corresponding plant only.Material other than the above plant will not appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Please can any one suggest me how to do..&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;Thanks and Regards&lt;/P&gt;&lt;P&gt;Siri...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 11:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500602#M842001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T11:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500603#M842002</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 think you wrote a select query to retrive values for F4 help 'F4IF_INT_TABLE_VALUE_REQUEST' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mention i where condition what ever u want then it will display no and desc related to that plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter where plant = p_plant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 11:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500603#M842002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T11:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500604#M842003</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;Code like this...&lt;/P&gt;&lt;P&gt;In event AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_matnr.&lt;/P&gt;&lt;P&gt;If p_plant is not initial.&lt;/P&gt;&lt;P&gt;Select Materials based on the plant from respective table.&lt;/P&gt;&lt;P&gt;Pass this table to FM 'F4IF_INT_TABLE_VALUE_REQUEST' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 11:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500604#M842003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T11:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500605#M842004</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;Please refer to the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_WERKS-LOW.

SELECT WERKS NAME1 INTO CORRESPONDING FIELDS OF TABLE KUNNSO_ITAB FROM T001W.

DELETE ADJACENT DUPLICATES FROM KUNNSO_ITAB.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'WERKS'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_WERKS'
VALUE_ORG = 'S'
multiple_choice = 'X'
TABLES
VALUE_TAB = KUNNSO_ITAB
return_tab = return.
IF SY-SUBRC 0.
SORT return BY fieldval DESCENDING.
LOOP AT return.
S_WERKS-low = return-fieldval.
S_WERKS-option = 'EQ'.
S_WERKS-sign = 'I'.
S_WERKS-high = space.

APPEND S_WERKS.
ENDLOOP.

SORT S_WERKS BY low.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 11:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500605#M842004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T11:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500606#M842005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Please can u send me the code , how to select materials based on plant.I need material description also.&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;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Siri..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 11:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500606#M842005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T11:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500607#M842006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Thanks for sending a valuble code , Thats fine.I also get F4 help for werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need F4 help for materials , when the user presses F4 on material, the materials will be displayed for the corresponding Plant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Please suggest me how to do this Requirement.&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;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Siri..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 11:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500607#M842006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T11:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500608#M842007</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;Material text u can fetch from MAKT table.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code where the second fields F4 hit list is dependent on first fields entry...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS : p_state TYPE char20,
             p_city  TYPE char18.

DATA       : BEGIN   OF   t_state OCCURS 0,
             state   TYPE char20,
             END     OF   t_state,
             BEGIN   OF   t_city  OCCURS 0,
             city    TYPE char18,
             END     OF   t_city.

DATA       : r_state TYPE TABLE OF ddshretval WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_state.
  REFRESH t_state.
  APPEND 'Tamil nadu' TO t_state.
  APPEND 'Kerala'     TO t_state.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'STATE'
      dynpprog        = sy-repid
      dynpnr          = '1000'
      dynprofield     = 'P_STATE'
      window_title    = 'State'
      value_org       = 'S'
    TABLES
      value_tab       = t_state[]
      RETURN_TAB      = r_state[]
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_city.
  REFRESH t_city.
  LOOP AT r_state.
    CASE    r_state-fieldval.
      WHEN  'TAMIL NADU'.
        APPEND 'Chennai'    TO t_city.
        APPEND 'Madurai'    TO t_city.
      WHEN  'KERALA'.
        APPEND 'Trivandrum' TO t_city.
        APPEND 'Kochi'      TO t_city.
    ENDCASE.
  ENDLOOP.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'CITY'
      dynpprog        = sy-repid
      dynpnr          = '1000'
      dynprofield     = 'P_CITY'
      window_title    = 'City'
      value_org       = 'S'
    TABLES
      value_tab       = t_city[]
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 12:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500608#M842007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T12:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500609#M842008</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;Select MATNR from MARC into itab where WERKS = p_plant.&lt;/P&gt;&lt;P&gt;You can get the description of Materials fetched from MAKT.&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;Select MATNR MAKTX from V_OLR3_MARACKT into itab where werks = p_plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lokesh Aggarwal on Mar 5, 2008 12:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 12:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500609#M842008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T12:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500610#M842009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Thanks for giving a gud suggestion.But here the plants are not fixed. And also the materials under the plant also not fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         The material are in 1000's for each plant.In that case how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Please suggest me..&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;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Siri....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 12:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500610#M842009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500611#M842010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Thanks to all for providing a helping hand for solving my problem.Its solved about 90%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Means i got the materials for corresponding plants. But the thing is , If I select the plant through F4 help then only it will give the corresponding material under that plant. If I know the plant and i give to manually, that time when i press F4 on material i didnt got the materials. It comes the message as "No values Found" .. Please help me on this issue.&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;Thanks and Regards&lt;/P&gt;&lt;P&gt;Siri....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 12:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen/m-p/3500611#M842010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T12:41:02Z</dc:date>
    </item>
  </channel>
</rss>

