Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

variable display

Former Member
0 Likes
426

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

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

3 REPLIES 3
Read only

Former Member
0 Likes
400

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

Read only

Former Member
0 Likes
399

try REPLACE.

REPLACE '.' IN STR WITH SPACE.

then use

CONDENSE.

Sameer

Read only

Former Member
0 Likes
399

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.