<?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: At Selection-Screen Requirement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508331#M1423052</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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTEST_F4
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
REPORT  ztest_f4.

INITIALIZATION.
** Table declaration
  TABLES : t001l, t001w.
** Type declaration
  TYPES : BEGIN OF ty,
            lgort type t001l-lgort,
          END OF ty.

** Internal table declaration
  DATA : int_location TYPE STANDARD TABLE OF ty.
** Internal table memory clear
  REFRESH : int_location.

** Selection Screen Declaration
** Begin of block with frame name
  SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
** Select option declaration of pernr field
  SELECT-OPTIONS : s_plant FOR t001l-werks,
                   s_lgort for t001l-lgort.
** End of block
  SELECTION-SCREEN END OF BLOCK a1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgort-low.
  PERFORM f4help.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgort-high.
  PERFORM f4help.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F4HELP
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM f4help .



  select lgort
  from t001l
  into table int_location
  where werks in s_plant.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'LGORT'
      dynpprog        = sy-repid    " Program name
      dynpnr          = sy-dynnr    " Screen number
      dynprofield     = 'S_LGORT'   " F4 help need field
      value_org       = 'S'
    TABLES
      value_tab       = int_location " F4 help values
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.

ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Bhavesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2009 08:49:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-18T08:49:43Z</dc:date>
    <item>
      <title>At Selection-Screen Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508328#M1423049</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 Plant and Storage Location on the Selection-Screen. After User entering Plant and then on Storage Location When he clicks F4, all the Storage Locations belonging to this entered Plant only should appear. Please guide in meeting this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;K Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 08:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508328#M1423049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T08:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection-Screen Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508329#M1423050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this trick:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: P_WERKS LIKE MSEG-WERKS.
SELECT-OPTIONS S_LGORT FOR MSEG-LGORT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 08:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508329#M1423050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T08:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection-Screen Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508330#M1423051</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 code like ..below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if plant is not initial .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the all storage loacations from the table into internal table. pass the internal table to the for the below FM a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;fieldname = 'CARRID'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SEARCHHELP = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SHLPPARAM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;dynpprog = 'ZDANY_F4_OWN_CALL'&lt;/P&gt;&lt;P&gt;dynpnr = '0100'&lt;/P&gt;&lt;P&gt;dynprofield = 'SFLIGHT-CARRID'&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;/UL&gt;&lt;P&gt;value = 'A*'&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;SUPPRESS_RECORDLIST = ' '&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;TABLES&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;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIELD_NOT_FOUND = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_HELP_FOR_FIELD = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCONSISTENT_HELP = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_VALUES_FOUND = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 5&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;ENDMODULE. " F4_help_for_carrid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 08:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508330#M1423051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T08:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection-Screen Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508331#M1423052</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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTEST_F4
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
REPORT  ztest_f4.

INITIALIZATION.
** Table declaration
  TABLES : t001l, t001w.
** Type declaration
  TYPES : BEGIN OF ty,
            lgort type t001l-lgort,
          END OF ty.

** Internal table declaration
  DATA : int_location TYPE STANDARD TABLE OF ty.
** Internal table memory clear
  REFRESH : int_location.

** Selection Screen Declaration
** Begin of block with frame name
  SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
** Select option declaration of pernr field
  SELECT-OPTIONS : s_plant FOR t001l-werks,
                   s_lgort for t001l-lgort.
** End of block
  SELECTION-SCREEN END OF BLOCK a1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgort-low.
  PERFORM f4help.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgort-high.
  PERFORM f4help.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F4HELP
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM f4help .



  select lgort
  from t001l
  into table int_location
  where werks in s_plant.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'LGORT'
      dynpprog        = sy-repid    " Program name
      dynpnr          = sy-dynnr    " Screen number
      dynprofield     = 'S_LGORT'   " F4 help need field
      value_org       = 'S'
    TABLES
      value_tab       = int_location " F4 help values
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.

ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Bhavesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 08:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508331#M1423052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T08:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection-Screen Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508332#M1423053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple. Just delcare your parameters in this fashion, and system will automatically take care. I tried just now and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report abc.

parameter: werks like t001l-werks.
parameter: lgort like t001l-lgort.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Fri, 18 Dec 2009 08:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508332#M1423053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T08:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection-Screen Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508333#M1423054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 09:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508333#M1423054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T09:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection-Screen Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508334#M1423055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what solution ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 09:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-requirement/m-p/6508334#M1423055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T09:39:04Z</dc:date>
    </item>
  </channel>
</rss>

