12-08-2009 11:32 AM
Hi Experts,
I already trying searching for other forum threads for this query but could not find the relevant answers.
I want to convert charcters 970254 to numbers 970,254 that is with , seperated for 1000 etc.
Please suggest.
Thanks
12-08-2009 11:47 AM
Hello,
Will this be sufficient?
data: val1(10) type c,
val2 type p .
val1 = '970254'.
val2 = val1.
write: val2.
Vikranth
12-08-2009 11:46 AM
Hi
Try with Funcation module: ISM_CONVERT_CHAR_TO_CURR
Regards,
Raghu
12-08-2009 11:46 AM
Hi!
The numbers cannot be formatted like this.
Numbers have a restricted format, like NNNNNNNNNNNN,DDD, where N- whole numbers and D-decimals. There can be only 1 comma which separates the whole numbers from the decimals.
However you can format the characters into an another character field, using the WRITE ... USING EDIT MASK ... statement.
Regards
Tamá
12-08-2009 11:47 AM
Hello,
Will this be sufficient?
data: val1(10) type c,
val2 type p .
val1 = '970254'.
val2 = val1.
write: val2.
Vikranth
12-08-2009 12:09 PM
12-08-2009 11:48 AM
Hi
Try with Funcation module: ISM_CONVERT_CHAR_TO_CURR
Regards,
Raghu
12-08-2009 12:11 PM
Try this
data lv_string type char6 VALUE '970254'.
data netwr type netwr .
move lv_string to netwr.
write netwr.
Kanagaraja L