<?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: Getting error in using character data type in select options. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924625#M940046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u explain it clearly actually what u require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2008 10:26:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-27T10:26:45Z</dc:date>
    <item>
      <title>Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924620#M940041</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;  Having a field in the selection screen of type char, declared using select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If i give value for lower limit smaller than &lt;/P&gt;&lt;P&gt;higher limit i am getting error as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   'Lower limit greater than higher limit'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg: if give 8 and 20&lt;/P&gt;&lt;P&gt;                   1 and 20...etc.. i am getting that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i give the input as &lt;/P&gt;&lt;P&gt;                  08 and 20&lt;/P&gt;&lt;P&gt;                 01 and 20 i am not getting any error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to solve this.&lt;/P&gt;&lt;P&gt;Pls help regarding this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924620#M940041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924621#M940042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try converting the lower and higher limit first to an integer type of variable, then u compare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benedict&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924621#M940042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924622#M940043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pls copy paste ur code in SDN so that we can identify exact problem in u r code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924622#M940043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924623#M940044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jean,&lt;/P&gt;&lt;P&gt;It might be better to define the selection field as a number, and if you need it to be char in your program, then do the typecasting in the program itself. You should use the MOVE command (for example) to move the value to a character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924623#M940044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924624#M940045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the variables of type n instead of c. It will solve your purpose. The same thing happened to me few days back when I was checking whether the value( defined in character) lies between 1 and 255. I got erroneous result. I changed the data type to type n that solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mallick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924624#M940045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924625#M940046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u explain it clearly actually what u require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924625#M940046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924626#M940047</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;Having a field in the selection screen of type char, declared using select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i give value for lower limit smaller than &lt;/P&gt;&lt;P&gt;higher limit i am getting error as &lt;/P&gt;&lt;P&gt;'Lower limit greater than higher limit'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg: if give&lt;/P&gt;&lt;P&gt; 8 and 20&lt;/P&gt;&lt;P&gt;1 and 20...etc.. i am getting that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i give the input as &lt;/P&gt;&lt;P&gt;08 and 20&lt;/P&gt;&lt;P&gt;01 and 20 i am not getting any error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use data type n or  i or p, then the default value for that variable will be 0 (zero) even if i didnt pass any value. But it should not happen, if i left blank the the variable should not have any value including zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help regarding this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 11:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924626#M940047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924627#M940048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi then wht u do is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first use type i in select options then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write llike this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_low is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_char_low = ' '.&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;  s_char_low = s_low.&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;do the same one for high also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u r problem gets solves..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do rerward if helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details see my business card..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil Kumar Mutyala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 11:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924627#M940048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T11:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924628#M940049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks for the rply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur code,&lt;/P&gt;&lt;P&gt;If we dont pass any value for s_low, the s_char_low wont have any value, that is fine.&lt;/P&gt;&lt;P&gt;but if we pass '0'  (zero)  to s_low then also s_char_low wont have any value. It should not be happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i pass blank to s_low then s_char_low should be blank,&lt;/P&gt;&lt;P&gt;if i pass zero to s_low  then s_char_low should have value as zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help reg this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 12:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924628#M940049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T12:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924629#M940050</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;can you pls tell me how u declared your select-option??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean wat variable and its type.???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 12:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924629#M940050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924630#M940051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data : lv_char(4) type c.&lt;/P&gt;&lt;P&gt;select-option : s_char type lv_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i declared as char and if i give input as &lt;/P&gt;&lt;P&gt;(for eg.)&lt;/P&gt;&lt;P&gt;lower limit : s_char-low = 1. &lt;/P&gt;&lt;P&gt;upper limit : s_char-low = 20.&lt;/P&gt;&lt;P&gt;I will get the error message as 'Lower limit is greater than higher limit'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : lv_int type int2.&lt;/P&gt;&lt;P&gt;select-option : s_int type lv_int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i declared as integer and if i pass zero or if i left blank its value will be,  &lt;/P&gt;&lt;P&gt;s_int-low = 0&lt;/P&gt;&lt;P&gt;s_int-high = 0. but what i need is if we pass zero it should take zero or if i left blank it should not be equal to zero, it should be blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 12:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924630#M940051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T12:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924631#M940052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;Here's another solution then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare your field as a character type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT event lets you evaluate the high and low portions of the variable, so here you should determine the length of the high portion, and then pad the low portion with zeroes - so if you have entered 3 and 200, using the function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi_len = STRLEN (s_opt-high) - you will get 3 as a result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;low_len = STRLEN(s_opt-low) and it will return 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From here you get the number of leading zeroes with which you need to pad the low portion, and that's 2. &lt;/P&gt;&lt;P&gt;(padding = hi_len - low_len)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a concatenate command in a loop, for instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO padding TIMES.&lt;/P&gt;&lt;P&gt;  CONCATENATE '0' s_opt-low INTO s_opt-low.&lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end do a MODIFY SCREEN and finish the LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to code this, and do get back with the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 14:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924631#M940052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in using character data type in select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924632#M940053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of SELECT-OPTIONS, use PARAMETERS and create two input fields. This way they will be separated from each other, and you can implement your own logic in the program, later on during the selection.. You will have to use PAI/PBO events to evaluate user input (i.e. check if the lower limit is really greater than higher limit). Use the logic from my previous answer in combination with this, and I'm sure you'll manage to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 09:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-using-character-data-type-in-select-options/m-p/3924632#M940053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T09:41:45Z</dc:date>
    </item>
  </channel>
</rss>

