‎2007 Aug 09 10:58 AM
hi,
i have to display a field if it is having value like this
19.50 into like this 1950, could any one tell me, solution right now i am using split command can any one tell me better solution for this one
‎2007 Aug 09 11:00 AM
if it is a character field
data : text(5) value '19.50'.
REPLACE ALL OCCURRENCES OF '.' IN TEXT WITH SPACE.
CONDENSE TEXT.
WRITE : / text.
regards
shiba dutta
‎2007 Aug 09 11:00 AM
if it is a character field
data : text(5) value '19.50'.
REPLACE ALL OCCURRENCES OF '.' IN TEXT WITH SPACE.
CONDENSE TEXT.
WRITE : / text.
regards
shiba dutta
‎2007 Aug 09 11:03 AM
try REPLACE.
REPLACE '.' IN STR WITH SPACE.
then use
CONDENSE.
Sameer
‎2007 Aug 09 11:07 AM
Hi Dear,
Check this Code...
data: amount(15) type c value '200,000,000.000'.
while sy-subrc = 0.
replace ',' with space into amount.
endwhile.
condense amount no-gaps.
write:/ amount.
Reward Points.
Bohra.