<?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 At Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142213#M451401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have selection screen like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_WERKS LIKE MSEG-WERKS,&lt;/P&gt;&lt;P&gt;                              S_LGORT LIKE MSEG-LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will validate this one.&lt;/P&gt;&lt;P&gt;i have plants 1110, 1220, 1310, 1210, 1310, 1210, 1120, 1130, 1410.&lt;/P&gt;&lt;P&gt;Storage locations are 1222, 1224,1225,1226,1227.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need this plants &amp;amp; storage locations only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sreedhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 05:27:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T05:27:25Z</dc:date>
    <item>
      <title>At Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142213#M451401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have selection screen like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_WERKS LIKE MSEG-WERKS,&lt;/P&gt;&lt;P&gt;                              S_LGORT LIKE MSEG-LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will validate this one.&lt;/P&gt;&lt;P&gt;i have plants 1110, 1220, 1310, 1210, 1310, 1210, 1120, 1130, 1410.&lt;/P&gt;&lt;P&gt;Storage locations are 1222, 1224,1225,1226,1227.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need this plants &amp;amp; storage locations only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sreedhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142213#M451401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142214#M451402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi create an itab for a plant with the required values in INITIALISATION event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; AT SELECTION SCREEN, u can check the values of select options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142214#M451402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142215#M451403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Declare first&lt;/P&gt;&lt;P&gt;tables: t001w, t001l.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_WERKS LIKE t001w-WERKS,&lt;/P&gt;&lt;P&gt;S_LGORT LIKE t001l-LGORT.&lt;/P&gt;&lt;P&gt;in AT selection Screen write the code:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear t001w.&lt;/P&gt;&lt;P&gt;  if not s_werks is initial.&lt;/P&gt;&lt;P&gt;    select werks from t001w up to 1 rows&lt;/P&gt;&lt;P&gt;           into t001w-werks&lt;/P&gt;&lt;P&gt;           where werks in s_werks.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      message e004.    " Invalid Plant Number&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Storage Location&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear t001l.&lt;/P&gt;&lt;P&gt;  if not s_lgort is initial.&lt;/P&gt;&lt;P&gt;    select lgort from t001l up to 1 rows&lt;/P&gt;&lt;P&gt;           into t001l-lgort&lt;/P&gt;&lt;P&gt;           where lgort in s_lgort.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      message e004.    " Invalid Storage Location Number&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142215#M451403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142216#M451404</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;First of all change the syntax..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_WERKS for MSEG-WERKS,&lt;/P&gt;&lt;P&gt;                              S_LGORT for MSEG-LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can validate at selection screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select werks from mseg into v_werks up to 1 rows&lt;/P&gt;&lt;P&gt;where werks in s_werks.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;throw error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142216#M451404</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-04-17T05:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142217#M451405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreedhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  Initially, push this plants and storage location inot the separate internal tables.&lt;/P&gt;&lt;P&gt;Say for example t_plants and t_storage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT WERKS&lt;/P&gt;&lt;P&gt;FROM MSEG&lt;/P&gt;&lt;P&gt;INTO fs_mseg&lt;/P&gt;&lt;P&gt;WHERE s_werks IN  t_plants.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;  MESSAGE 'Enter valid plant' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it works fine,if not it is must and should to write the logic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V.Raghavender.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142217#M451405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142218#M451406</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;at selection-screen.&lt;/P&gt;&lt;P&gt;  if S_WERKS ne 1110 or &lt;/P&gt;&lt;P&gt;     S_WERKS ne 1220 or.....1410.&lt;/P&gt;&lt;P&gt;     message 'invalid werks' type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if S_LGORT ne 1222 or ......, 1224,1225,1226,1227.&lt;/P&gt;&lt;P&gt;     message 'invalid lgort' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2142218#M451406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:41:46Z</dc:date>
    </item>
  </channel>
</rss>

