2007 Aug 03 10:17 AM
Hi,
How to change the value from '0002' to '02'. Can anybody plz give sample code.
Regards,
bindazme
2007 Aug 03 10:19 AM
Hi,
Just assign it as follows.
DATA: char4(4) type n value '0002',
char2(2) type n.
char2 = char4+2(2).
Regards
Sesh
2007 Aug 03 10:19 AM
2007 Aug 03 10:19 AM
Hi,
Just assign it as follows.
DATA: char4(4) type n value '0002',
char2(2) type n.
char2 = char4+2(2).
Regards
Sesh
2007 Aug 03 10:19 AM
Hi, you can use type N data :
data : data2(2) type n,
data4(4) type n.
data4 = '0002'.
move data4 TO data2.
write data2.
Mathieu
2007 Aug 03 10:23 AM
2007 Aug 03 10:25 AM
Hi,
var1 = '0002'.
var2 = var1+2(2).
writre var2.
o/p will be 02.
rgds
harris
2007 Aug 03 10:34 AM