<?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 Selection Screen Problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350217#M803592</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;1.On a selection-screen with four select -options as s_vbeln,s_vkorg,s_vtweg,s_spart. I need to validate and write a error message ' enter atleast one field' if it is executed without any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Also validation should be done that the entered value is correct or incorrect and if it is incorrect it should show the error message concerned to the fields for example if the vkorg value is entered incorrect , it should display'' please enter valid entry' respectively to all the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone send me a code on how to perform this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stalin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2008 02:55:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-06T02:55:34Z</dc:date>
    <item>
      <title>Selection Screen Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350217#M803592</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;1.On a selection-screen with four select -options as s_vbeln,s_vkorg,s_vtweg,s_spart. I need to validate and write a error message ' enter atleast one field' if it is executed without any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Also validation should be done that the entered value is correct or incorrect and if it is incorrect it should show the error message concerned to the fields for example if the vkorg value is entered incorrect , it should display'' please enter valid entry' respectively to all the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone send me a code on how to perform this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stalin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 02:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350217#M803592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T02:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350218#M803593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : vbak.
SELECT-OPTIONS : so_vbeln FOR vbak-vbeln,
                 so_vkorg FOR vbak-vkorg,
                 so_vtweg FOR vbak-vtweg,
                 so_spart FOR vbak-spart.

AT SELECTION-SCREEN.

  IF so_vbeln IS INITIAL AND
     so_vkorg IS INITIAL AND
     so_vtweg IS INITIAL AND
     so_spart IS INITIAL.
    MESSAGE e000(zam) WITH 'Enter atleast one'.
  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>Wed, 06 Feb 2008 03:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350218#M803593</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-02-06T03:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350219#M803594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can check whether the entered values in select-options is a valid entry.If the entry is invalid...it should display' enter a valid entry'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to check the valid entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stalin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 03:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350219#M803594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T03:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350220#M803595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : vbak.

DATA : it_vbak TYPE TABLE OF vbak.

SELECT-OPTIONS : so_vbeln FOR vbak-vbeln,
                 so_vkorg FOR vbak-vkorg,
                 so_vtweg FOR vbak-vtweg,
                 so_spart FOR vbak-spart.

AT SELECTION-SCREEN.

  IF so_vbeln IS INITIAL AND
     so_vkorg IS INITIAL AND
     so_vtweg IS INITIAL AND
     so_spart IS INITIAL.
    MESSAGE e000(zam) WITH 'Enter atleast one'.
  ENDIF.
 " Similarly you can check for the remaining Select Options as done below
  IF NOT so_vbeln[] IS INITIAL.
    SELECT * FROM vbak
             INTO TABLE it_vbak
             WHERE vbeln IN so_vbeln.
    IF sy-subrc NE 0.
      MESSAGE e000(zam) WITH 'Incorrect Sales Order Number'.
    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>Wed, 06 Feb 2008 04:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problems/m-p/3350220#M803595</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-02-06T04:09:27Z</dc:date>
    </item>
  </channel>
</rss>

