<?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 Know when select option is empty in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098447#M1183192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want know when the value of several select options are empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF I1 or I2 or I3 or I4 GE '1'.
   fill = 'X'
END IF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF I1 or I2 or I3 or I4 IS INITIAL.
   fill = 'X'
END IF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this code always fill = X, I used GT '0' too; the values of the select options are empty all except I3 and other that the value are '   000000' or '0000   ' the value changed in function select option that is used..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me , please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordial greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 12:09:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-03T12:09:05Z</dc:date>
    <item>
      <title>Know when select option is empty</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098447#M1183192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want know when the value of several select options are empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF I1 or I2 or I3 or I4 GE '1'.
   fill = 'X'
END IF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF I1 or I2 or I3 or I4 IS INITIAL.
   fill = 'X'
END IF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this code always fill = X, I used GT '0' too; the values of the select options are empty all except I3 and other that the value are '   000000' or '0000   ' the value changed in function select option that is used..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me , please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordial greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098447#M1183192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Know when select option is empty</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098448#M1183193</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;IF YOU ARE USING A CONDIOTION IN 'IF' STATEMENT&lt;/P&gt;&lt;P&gt;IT SHOULD BE LIKE....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i1 ge '1' or i2 ge  '1'  or i3 ge '1' or i4 ge '1'.&lt;/P&gt;&lt;P&gt;  (your  statement)&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similar case when you use any logical condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098448#M1183193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Know when select option is empty</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098449#M1183194</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;Since you want to find when all SELECT OPTIONS is empty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use as AND operation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I1 IS INITIAL and I2 IS INITIAL and I3 IS INITIAL and I4 IS INITIAL&lt;/P&gt;&lt;P&gt;   FILL = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I1 GE 1 and I2 GE 1  and I3 GE 1  and I4 GE 1 &lt;/P&gt;&lt;P&gt;   FILL = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098449#M1183194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Know when select option is empty</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098450#M1183195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to check if a select-options is empty, use the following way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IF i1[] is initial  OR  i2[] is initial OR
   i3[] is initial  OR  i4[] is initial.
       fill = 'X'.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With select options you need to use the square brackets because select options are internally stored in internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : The above code will have fill = 'X' even if one of the select option is empty. If you want to check if all select options are empty , then use &lt;STRONG&gt;AND&lt;/STRONG&gt; instead of  &lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Feb 3, 2009 2:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/know-when-select-option-is-empty/m-p/5098450#M1183195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:42:28Z</dc:date>
    </item>
  </channel>
</rss>

