<?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: Using IF statement with a select-option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040416#M1899272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Car&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure someone may have a better response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my option would be to loop through select_options and perform your check on each entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at the end of the loop, the required condition is met/not met, perform your deletion of the "Somethings" &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1273/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 01:12:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-07T01:12:57Z</dc:date>
    <item>
      <title>Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040415#M1899271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is killing me and I am sure that it is something simple but for some reason, I can't get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a select options field. I need to compare it to a field from a structure. For some reason, even though the if should work, it is not working. What can the problem be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF structure-field NOT IN select_options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete something.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 01:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040415#M1899271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T01:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040416#M1899272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Car&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure someone may have a better response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my option would be to loop through select_options and perform your check on each entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at the end of the loop, the required condition is met/not met, perform your deletion of the "Somethings" &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1273/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 01:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040416#M1899272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T01:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040417#M1899273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Car,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's absolute no reason this IF doesn't work, so my guess is it works, but your content is "problematic". Please share the actual contents of the structure field AND the select-options and we might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 01:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040417#M1899273</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2015-05-07T01:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040418#M1899274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing we are doing to the value entered is adding leading zeroes to it since that is how the table is saving the data. This could be a problem? When I debug, the value in the table and the value from the select options is the same (with the leading zeroes both) so I don't know why it is failing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 01:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040418#M1899274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T01:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040419#M1899275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the values are the same probably not the problem but I insist, if you share the EXACTLY values (including sign, option, low and high for select-options) it would be easier for us to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 02:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040419#M1899275</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2015-05-07T02:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040420#M1899276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;The select options has IEQ000714 and the value in the table is 000714.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 02:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040420#M1899276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T02:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040421#M1899277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that's why the IF "is not working" (actually it is).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;IF structure-field (&lt;SPAN style="color: #333333; font-size: 12px;"&gt;000714) &lt;/SPAN&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt; IN select_options (Include equal 000714).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Obviously it will not get into the if. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;you can fix it 3 ways: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;- use EEQ00714&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;- use INE000714&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;- use &lt;SPAN style="color: #333333; font-size: 12px;"&gt;IF structure-field NOT IN select_options.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Custodio &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 02:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040421#M1899277</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2015-05-07T02:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040422#M1899278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is that it is entering the delete statement when they are the same. My code is like your third suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF structure-field NOT IN select_options.&lt;/P&gt;&lt;P&gt;delete&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should not enter when they are the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 03:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040422#M1899278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T03:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040423#M1899279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I meant to say &lt;SPAN style="color: #333333; font-size: 12px;"&gt;IF structure-field IN select_options.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Anyway, is this value IEQ00714 in the select-option header line only or as a line in the select option "internal table" (it should be).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/699869" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 03:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040423#M1899279</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2015-05-07T03:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040424#M1899280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Car,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check, that there is always '000714', Because 'OOO714', 'O00714' ... may look like it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the hex content of the structure field and the select option in debugger. Are they identical?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 04:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040424#M1899280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T04:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF statement with a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040425#M1899281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use same type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-if-statement-with-a-select-option/m-p/11040425#M1899281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T11:45:17Z</dc:date>
    </item>
  </channel>
</rss>

