<?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: a simple problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510481#M567754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Make the fields mandatory by using keyword obligatory .&lt;/P&gt;&lt;P&gt;select-options : s1 type x obligatory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will take care of displaying error message even if one parameter is not entered . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display the error message if values are not in database table . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen . &lt;/P&gt;&lt;P&gt;select from the data base table . &lt;/P&gt;&lt;P&gt;if not success . &lt;/P&gt;&lt;P&gt;display a message .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s1 type x obligatory &lt;/P&gt;&lt;P&gt;s2 type x obligatory &lt;/P&gt;&lt;P&gt;s3 type x obligatory . &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 * from table into itab  where X1 in S1 and x2 in S2 and X3 in s3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0 . &lt;/P&gt;&lt;P&gt;message "text" type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for all helpfull answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2007 06:03:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-12T06:03:17Z</dc:date>
    <item>
      <title>a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510479#M567752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to put validation checks that if the 3 select-options on my selection screen in combination does not match from the database table content, then it should give pop the message..............also when one of the fields are not filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ GIVE THE SOLUTION &amp;lt;b&amp;gt;NOT IN OOABAP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;           DS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 05:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510479#M567752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T05:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510480#M567753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;to validate the fields u can use the condition...&lt;/P&gt;&lt;P&gt;if s_fl1 or s_fl2 ors_fld3 is initial.&lt;/P&gt;&lt;P&gt;  message............&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510480#M567753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510481#M567754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Make the fields mandatory by using keyword obligatory .&lt;/P&gt;&lt;P&gt;select-options : s1 type x obligatory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will take care of displaying error message even if one parameter is not entered . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display the error message if values are not in database table . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen . &lt;/P&gt;&lt;P&gt;select from the data base table . &lt;/P&gt;&lt;P&gt;if not success . &lt;/P&gt;&lt;P&gt;display a message .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s1 type x obligatory &lt;/P&gt;&lt;P&gt;s2 type x obligatory &lt;/P&gt;&lt;P&gt;s3 type x obligatory . &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 * from table into itab  where X1 in S1 and x2 in S2 and X3 in s3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0 . &lt;/P&gt;&lt;P&gt;message "text" type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for all helpfull answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510481#M567754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510482#M567755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Lets say your Select-options are FIELD1, FIELD2 and FILED3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE * FORM TABLE1 where FIELD = FIELD1. " First field chacking
IF SY-SUBRC = 0.
 SELECT SINGLE * FORM TABLE2 where FIELD = FIELD2. " Second Field checking
IF SY-SUBRC = 0.
 SELECT SINGLE * FORM TABLE3 where FIELD = FIELD3. " Third Field Checking
ELSE.
 Call the funtion POPUP_TO_CONFIRM function module to give the message
ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same thing, if any field is Blank then call the same function module to give the popup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510482#M567755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510483#M567756</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;&lt;/P&gt;&lt;P&gt;if s_matnr is intial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display error&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;select * from vbap into table itab where vbekn in s_vbeln &lt;/P&gt;&lt;P&gt;                              and posnr in s_posnr &lt;/P&gt;&lt;P&gt;                              and matnr in s_matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display error&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;where s_vbeln , s_posnr &amp;amp; s_matnr are the select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510483#M567756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510484#M567757</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;if ( s_f1 is initial ) or&lt;/P&gt;&lt;P&gt;  (  s_f2 is initial ) or&lt;/P&gt;&lt;P&gt;  ( s_f3 is initial ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message s000 with text-001.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( s_f1 = 'X' ) and&lt;/P&gt;&lt;P&gt;   ( s_f2 = 'Y' ).&lt;/P&gt;&lt;P&gt;Messsage s000 with text-002.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510484#M567757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510485#M567758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF s_select1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;  IF s_select2 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF s_select3 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * FROM database table INTO (structure)&lt;/P&gt;&lt;P&gt;                WHERE field1 IN s_select1 AND&lt;/P&gt;&lt;P&gt;                          field2 IN s_select2 AND&lt;/P&gt;&lt;P&gt;                          field3 IN s_select3.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE 'no entries found' TYPE 'I'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE 's_select3 is not filled' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE 's_select2 is not filled' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  MESSAGE 's_select 1 is not filled' TYPE 'I'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510485#M567758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: a simple problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510486#M567759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At selection-screen.  " This is the Event to check the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( field1 is initial ) or ( field2 is initial ) or ( field3 is initial ).  "Check fields if empty&lt;/P&gt;&lt;P&gt;      message i001 with text-001.   " This will give u the pop up &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-simple-problem/m-p/2510486#M567759</guid>
      <dc:creator>Mustameer_Khan</dc:creator>
      <dc:date>2007-07-12T06:17:13Z</dc:date>
    </item>
  </channel>
</rss>

