‎2009 Sep 04 2:00 AM
Dear All ,
Any idea how can i convert the values 1,342,760 (in character ) to Interger value ??
Because i want to sum the value ...
THanks.
‎2009 Sep 04 3:42 AM
Hi Olrang,
check this code.
PARAMETERS : c TYPE char10 DEFAULT '1,234,5670'.
DATA: i TYPE i.
REPLACE all occurrences of ',' IN c WITH ''.
i = c.
WRITE: i.thanks,
Sakthi sri.
‎2009 Sep 04 2:13 AM
‎2009 Sep 04 3:29 AM
If you able to remove ',' then
DATA ABC(10) TYPE C VALUE '1342760'.
DATA IN TYPE I.
IN = ABC.
WRITE IN.
Remember If ABC has any char other then 1234567890 , System will through dump error.
‎2009 Sep 04 3:42 AM
Hi Olrang,
check this code.
PARAMETERS : c TYPE char10 DEFAULT '1,234,5670'.
DATA: i TYPE i.
REPLACE all occurrences of ',' IN c WITH ''.
i = c.
WRITE: i.thanks,
Sakthi sri.