<?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: Select-option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189456#M1001480</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;Write this way-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

If field1 is initial and field2 is initial .
 message 'Check the input' type 'I'.

elseif field1 is not initial and field2 is not initial .
 message 'Check input' type 'I'.
Endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First one for Both the field is blank and second one for both the fields is filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2008 06:56:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-25T06:56:12Z</dc:date>
    <item>
      <title>Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189454#M1001478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields on select options say FIELD1 &amp;amp; FIELD2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to check the following condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOTH should NOT BE BLANK&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;BOTH should not be FILLED&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;EITHER of them MUST BE FILLED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW can I write the logic for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189454#M1001478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T06:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189455#M1001479</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;  You can use the radio buttons for it.Based on radio-button you can give the selection-screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189455#M1001479</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2008-07-25T06:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189456#M1001480</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;Write this way-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

If field1 is initial and field2 is initial .
 message 'Check the input' type 'I'.

elseif field1 is not initial and field2 is not initial .
 message 'Check input' type 'I'.
Endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First one for Both the field is blank and second one for both the fields is filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189456#M1001480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T06:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189457#M1001481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write the following check in AT SELECTION-SCREEN and issue error message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  ( FIELD1 is initial and FIELD2 is initial ) OR  ( FIELD1 is not initial and FIELD2 is not initial )&lt;/P&gt;&lt;P&gt;   Message 'XXXXXXXXXXXXXXXXXXXX type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189457#M1001481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T06:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189458#M1001482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just search in SDN with term &lt;STRONG&gt;loop at screen&lt;/STRONG&gt; you will get your answer.dont expect spoon feeding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189458#M1001482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T06:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189459#M1001483</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;maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES mara.

SELECT-OPTIONS:
  so1 FOR mara-matnr,
  so2 FOR mara-matnr.

AT SELECTION-SCREEN.
  IF ( so1[] IS INITIAL AND
     so2[] IS INITIAL ) OR
     ( NOT so1[] IS INITIAL AND
     NOT so2[] IS INITIAL ).
    MESSAGE 'Invalid input' TYPE 'E'.
  ENDIF.

START-OF-SELECTION.
  MESSAGE 'Input is valid' TYPE 'S'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards Rudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189459#M1001483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T06:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189460#M1001484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi M N,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  you can try with a IF condition like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF field1 IS INITIAL AND field2 IS INITIAL.&lt;/P&gt;&lt;P&gt;    .................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ELSEIF field1 IS NOT INITIAL AND field2 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ELSEIF field1 IS NOT INITIAL OR field2 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;........................&lt;/P&gt;&lt;P&gt; &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;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 07:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189460#M1001484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T07:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189461#M1001485</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;You can use logic like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define two parameters....p_var1 &amp;amp; p_var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give condition like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_var1 is initial and p_var2 is initial.&lt;/P&gt;&lt;P&gt;    message 'stop' type 'E'.&lt;/P&gt;&lt;P&gt;    elseif  p_var1 is not initial and p_var2 is not initial.    message 'stop' type 'E'.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point if usefull....&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;Smit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 07:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189461#M1001485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T07:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189462#M1001486</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;There are 2 approaches to do this :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) REPORT  ztesgggg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : matnr TYPE mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : field1 FOR matnr obligatory,&lt;/P&gt;&lt;P&gt;                 field2 FOR matnr obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) REPORT  ztesgggg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : matnr TYPE mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : field1 FOR matnr ,&lt;/P&gt;&lt;P&gt;                 field2 FOR matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if its ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 07:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189462#M1001486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T07:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189463#M1001487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF (field1 is initial and field2 is initial)&lt;/P&gt;&lt;P&gt;       OR ( not field1 is initial and not field1 is initial ).&lt;/P&gt;&lt;P&gt;     Message 'Enter any one Field only'  TYPE 'I'.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;    &amp;lt;Process&amp;gt;&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 07:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189463#M1001487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T07:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189464#M1001488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Check out this sample code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_sdn.

TABLES:
  scarr,
  spfli.

SELECT-OPTIONS:
  s_carrid FOR scarr-carrid,
  s_connid FOR spfli-connid.


AT SELECTION-SCREEN.

IF s_carrid IS NOT INITIAL AND s_connid IS NOT INITIAL.
  MESSAGE 'ENTER ONLY 1 VALUE' TYPE 'E'.
ELSEIF s_carrid IS NOT INITIAL AND s_connid IS INITIAL.
  MESSAGE 'GOTO LIST DISPLAY' TYPE 'I'.
ELSEIF s_connid IS NOT INITIAL AND s_carrid IS INITIAL.
  MESSAGE 'GOTO LIST DISPLAY' TYPE 'I'.
ELSEIF s_carrid IS INITIAL AND s_connid IS INITIAL.
  MESSAGE 'You cannot proceed further without entering any value' TYPE
'E'.
ENDIF.


START-OF-SELECTION.

IF s_carrid IS NOT INITIAL AND s_connid IS INITIAL.
  WRITE: / s_carrid-low,
           s_carrid-high.
ELSEIF s_connid IS NOT INITIAL AND s_carrid IS INITIAL.
  WRITE: / s_connid-low,
           s_connid-high.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 07:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4189464#M1001488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T07:10:29Z</dc:date>
    </item>
  </channel>
</rss>

