<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871601#M673763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you want to check the low and high values individually&lt;/P&gt;&lt;P&gt;Check this sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : vbak.
SELECT-OPTIONS : so_vbeln FOR vbak-vbeln.

AT SELECTION-SCREEN.

  IF NOT so_vbeln-low IS INITIAL.
    SELECT SINGLE * FROM vbak WHERE vbeln = so_vbeln-low.
    IF sy-subrc NE 0.
      MESSAGE e000(ztest_gopi) WITH 'Low value not avaialble'.
    ENDIF.
  ENDIF.
  IF NOT so_vbeln-high IS INITIAL.
    SELECT SINGLE * FROM vbak WHERE vbeln = so_vbeln-high.
    IF sy-subrc NE 0.
      MESSAGE e000(ztest_gopi) WITH 'High value not avaialble'.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2007 09:05:32 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2007-10-08T09:05:32Z</dc:date>
    <item>
      <title>at- selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871596#M673758</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;I have a select-option in my selection screen.&lt;/P&gt;&lt;P&gt;Ex: s_vstel for likp-vstel.&lt;/P&gt;&lt;P&gt;I want to validate the values entered in the selection-screen for the field vstel.&lt;/P&gt;&lt;P&gt;What is the efficient way to do it? I want to check both low and high and rane values exists in database..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 08:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871596#M673758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T08:58:01Z</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/2871597#M673759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;select single field from databasetable where field in s_field.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*invalid values&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is best way to do validation.....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871597#M673759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:00:02Z</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/2871598#M673760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/db992335c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/9f/db992335c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871598#M673760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:00:20Z</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/2871599#M673761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN ON S_VSTEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(*) from LIKP into gv_count where VSTEL eq S_VSTEL-low.&lt;/P&gt;&lt;P&gt;select count(*) from LIKP into gv_count where VSTEL eq S_VSTEL-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If gv_count &amp;gt; 0.&lt;/P&gt;&lt;P&gt;then valid..&lt;/P&gt;&lt;P&gt;otherwise throw an error message stating invalid&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871599#M673761</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2007-10-08T09:00:42Z</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/2871600#M673762</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 a select query&lt;/P&gt;&lt;P&gt;table: likp.&lt;/P&gt;&lt;P&gt;select  *  from likp where vstel in s_vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871600#M673762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:01:57Z</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/2871601#M673763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you want to check the low and high values individually&lt;/P&gt;&lt;P&gt;Check this sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : vbak.
SELECT-OPTIONS : so_vbeln FOR vbak-vbeln.

AT SELECTION-SCREEN.

  IF NOT so_vbeln-low IS INITIAL.
    SELECT SINGLE * FROM vbak WHERE vbeln = so_vbeln-low.
    IF sy-subrc NE 0.
      MESSAGE e000(ztest_gopi) WITH 'Low value not avaialble'.
    ENDIF.
  ENDIF.
  IF NOT so_vbeln-high IS INITIAL.
    SELECT SINGLE * FROM vbak WHERE vbeln = so_vbeln-high.
    IF sy-subrc NE 0.
      MESSAGE e000(ztest_gopi) WITH 'High value not avaialble'.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871601#M673763</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-08T09:05:32Z</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/2871602#M673764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Main program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation Shipping Point/Receiving Point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;AT SELECTION-SCREEN ON s_vstel.&lt;/P&gt;&lt;P&gt;  PERFORM sub_valid_Point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;______________________________________________________&lt;/P&gt;&lt;P&gt;Inside the subroutine &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_valid_point&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Validation for Point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_valid_point .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation for Shipping Point/Receiving Point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TYPES: BEGIN OF lty_vstel,&lt;/P&gt;&lt;P&gt;          vstel TYPE tvst-vstel,           " Shipping Point/Receiving Point&lt;/P&gt;&lt;P&gt;          END OF lty_vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_svstel  LIKE LINE OF s_vstel,&lt;/P&gt;&lt;P&gt;        ls_vstel   TYPE lty_vstel,&lt;/P&gt;&lt;P&gt;        ls_vstel_n TYPE lty_vstel,&lt;/P&gt;&lt;P&gt;        lt_vstel   TYPE TABLE OF lty_vstel,&lt;/P&gt;&lt;P&gt;        lt_vstel_n TYPE TABLE OF lty_vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build internal table with all values in S_vstel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT s_vstel[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT s_vstel INTO ls_svstel.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FROM value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF NOT ls_svstel-low IS INITIAL.&lt;/P&gt;&lt;P&gt;        ls_vstel = ls_svstel-low.&lt;/P&gt;&lt;P&gt;        APPEND ls_vstel TO lt_vstel.&lt;/P&gt;&lt;P&gt;        CLEAR ls_vstel.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TO Value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF NOT ls_svstel-high IS INITIAL.&lt;/P&gt;&lt;P&gt;        ls_vstel = ls_svstel-high.&lt;/P&gt;&lt;P&gt;        APPEND ls_vstel TO lt_vstel.&lt;/P&gt;&lt;P&gt;        CLEAR ls_vstel.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get data from table TVST&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF NOT lt_vstel[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SORT lt_vstel BY vstel.&lt;/P&gt;&lt;P&gt;    SELECT vstel&lt;/P&gt;&lt;P&gt;           INTO TABLE lt_vstel_n&lt;/P&gt;&lt;P&gt;           FROM tvst&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN lt_vstel&lt;/P&gt;&lt;P&gt;           WHERE vstel = lt_vstel-vstel.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e019 WITH space.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Shipping Point/Receiving Point &amp;amp; not found, Please enter the valid  Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    SORT lt_vstel_n BY vstel.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate Payer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT lt_vstel INTO ls_vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR ls_vstel_n.&lt;/P&gt;&lt;P&gt;      READ TABLE lt_vstel_n INTO ls_vstel_n WITH KEY vstel = ls_vstel-vstel&lt;/P&gt;&lt;P&gt;                                             BINARY SEARCH.&lt;/P&gt;&lt;P&gt;      IF ls_vstel-vstel &amp;lt;&amp;gt; ls_vstel_n-vstel.&lt;/P&gt;&lt;P&gt;        MESSAGE e019 WITH ls_vstel-vstel.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Shipping Point/Receiving Point &amp;amp; not found, Please enter the valid  Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sub_valid_point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful..............&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871602#M673764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:16:16Z</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/2871603#M673765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871603#M673765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:32: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/2871604#M673766</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;Validation means "checking whether the input which u are gining to the selection secreen is valid or not". means...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets take your example only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:p_vkorg like vbak-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in selection screen you will give inout in that parameter.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;users can give any input... lets suppose I'll give input as ABC... which is not in the table VBAK. No need to excute the code once we came to know that the input is not there in the table. So we will do validation like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_vkorg.&lt;/P&gt;&lt;P&gt;select * from vbak where vkorg = p+vkorg. " This is the case with Parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_vkorg.&lt;/P&gt;&lt;P&gt;Select * from vbak where vkorg = p+vkorg. " This is the case with Selct-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the input that u r giving is present in the table... the above stmt will execute successfully, otherwise not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of System variable SY-SUBRC and you can go ahead with ur coding...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward If Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/2871604#M673766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:33:10Z</dc:date>
    </item>
  </channel>
</rss>

