Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

numeric values not getting compared properly

$
0
0

Hi All,

 

I have one parameter on my selection screen, and other is global variable of the type  Z-table field which is having a numeric value and the  parameter is of type char but can have only numeric values, therefore I applied a numeric check for that and applied condense statement so that it compares it with the numeric field correctly.

 

Declaration:

Data : gv_value type ZZVALUEL (it is the numeric field)

Parameters : p_days(5)  type c

 

The problem is when I am executing the statement :

if p_days LT gv_value .

Message 'the value should be greater or equal to <gv_value>' .

endif.

 

gv_value is 720 in the table

entering p_days = 999

error is not coming , but when entering 1000 or above it displays the error even though it is the greater value than gv_value.


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>