‎2006 Oct 05 7:12 PM
HI ,
I have 2 strings
DATA :lv_numeric TYPE string VALUE '123456789.'.
DATA :lv_capamount TYPE string value '-34.45'.
IF NOT lv_capamount CO lv_numeric.
validation is here."invalid amount
endif.
I need to allow -ve values here.
‎2006 Oct 05 7:20 PM
‎2006 Oct 05 7:26 PM
Hi,
In the lv_numeric string add the '-' sign also..
lv_numeric = '1234567890.-'.
Thanks,
Naren
‎2006 Oct 05 7:32 PM
Hi Srinivas,
To allow negative values only then <b>include character - into your LV_NUMERIC string.</b>
DATA :lv_numeric TYPE string VALUE <b>'123456789.-'</b>.
DATA :lv_capamount TYPE string value '-34.45'.
IF NOT lv_capamount CO lv_numeric.
validation is here."invalid amount
endif.
Thanks,
Vinay
‎2006 Oct 05 9:19 PM
Hi,
Assign the string lv_numeric as,
lv_numeric = '1234567890.-'.
Regards,
Azaz.