<?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: Problem if Select-Option  is INITIAL. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076060#M96333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why do you want to avoid checking whether select-option is initial. That is the simplest way to handle this.&lt;/P&gt;&lt;P&gt;If you dont want that then my suggestion is use, describe table S_OPTION and get number of lines. You can check whether number of lines is zero or more than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;data : l type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table s_option lines l.&lt;/P&gt;&lt;P&gt;if l = 0.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;else.&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;Still checking for initial is the best option.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2005 16:22:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-09T16:22:42Z</dc:date>
    <item>
      <title>Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076058#M96331</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;&lt;/P&gt;&lt;P&gt;I have a question on how to handle to handle Select-Options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF some_value IN S_value.&lt;/P&gt;&lt;P&gt; Logic1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt; Logic2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem here is when Select-Option S_value is Empty. It is true for all values in 'some_value'. Is there any easy way to handle it, WITHOUT explicitly checking if the Select-Option IS INITIAL or not, it make my code lot simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076058#M96331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076059#M96332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;  Before your IF condition.You can always check for the values in S_value-low &amp;amp; S_value-high,to see whether it is initial or not &amp;amp; then go with your below IF condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076059#M96332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076060#M96333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why do you want to avoid checking whether select-option is initial. That is the simplest way to handle this.&lt;/P&gt;&lt;P&gt;If you dont want that then my suggestion is use, describe table S_OPTION and get number of lines. You can check whether number of lines is zero or more than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;data : l type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table s_option lines l.&lt;/P&gt;&lt;P&gt;if l = 0.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;else.&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;Still checking for initial is the best option.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076060#M96333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076061#M96334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no straight forward way of doing it. Probably you can append a dummy record in the SELECT OPTIONS, a blank record probably. However, you will get only those values that are blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that you don't have an option other than checking the SELECT OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the posts that help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076061#M96334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076062#M96335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you Doing exactly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076062#M96335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076063#M96336</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;I think you can do it without to check th SO, if your SO is obligatory, if it isn't you should check your SO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the easier check is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT SO[] IS INITIAL.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076063#M96336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076064#M96337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without checking the initial condition, I don't think it is possible.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT s_value[] IS INITIAL
   AND some_value IN S_value.
  Logic1.
ELSE.
  Logic2.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just added the [] for s_value to check for the internal table not just the header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076064#M96337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem if Select-Option  is INITIAL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076065#M96338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it has to have some value, make it mandatory. You are not going to save anything or improve anything by not adding the INITIAL check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-if-select-option-is-initial/m-p/1076065#M96338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:28:24Z</dc:date>
    </item>
  </channel>
</rss>

