‎2007 Jan 04 1:44 PM
how to get the minus sign( - ) preceding the number in the output. Is there any syntax for that?
‎2007 Jan 04 1:58 PM
Hi,
chk this:
data num type p decimals 2 value -673.
data: v type p decimals 2 value 10.
data: ch(10), ch1(10).
ch = num.
write ch.
skip 2.
call function 'CLOI_PUT_SIGN_IN_FRONT'
changing
value = ch.
write ch.
regards,
keerthi
‎2007 Jan 04 1:46 PM
Hi Priyanka,
Use FM - CLOI_PUT_SIGN_IN_FRONT
OR
If in screen input/output field with -ve sign -
->Simply put an uppercase V at the end of the underscores in the text box.
>Example ________V This will allow negative numbers.
Reward points if this Helps.
Manish
‎2007 Jan 04 1:46 PM
Hi Priyanka ,
Use the FM <b>CLOI_PUT_SIGN_IN_FRONT</b> , if you give the input as 36.2- you get -36.2 as input .
Regards
Arun
Assign points if reply is helpful
‎2007 Jan 04 1:49 PM
‎2007 Jan 04 1:58 PM
Hi,
chk this:
data num type p decimals 2 value -673.
data: v type p decimals 2 value 10.
data: ch(10), ch1(10).
ch = num.
write ch.
skip 2.
call function 'CLOI_PUT_SIGN_IN_FRONT'
changing
value = ch.
write ch.
regards,
keerthi