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

string to decimal point problem

Former Member
0 Likes
517

Hi gurns,

i have problem with decimal point when i concatenate this into one sting in that situation the vale is rounding but i want to output with out roundup ( i am taking i bcoz in the concatenate statement it is not taking packed decimal ) how to slove this problem ?

CONCATENATE

total

total1

itab-vat_rat into v_string.

present output :

total : 501

expet output:

500.5400

thanks for advance

regards

sai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
484

Hi Sai Ram,

Try this.

data : total_ch(10) type c,

total1_ch(10) type c,

var(10) type c,

total_ch = total.

total1_ch = total1.

var = itab-vat_rat.

Concatenate total_ch

total1_ch var

into v_string.

condense v_string.

Note : If your values are huge define variables with more number of characters.

Regards,

Mohaiyuddin

3 REPLIES 3
Read only

Former Member
0 Likes
484

Hi,

Do like this,

CONCATENATE

total

total1

itab-vat_rat into v_string

separated by '.'.

Rgds,

Bujji

Read only

Former Member
0 Likes
485

Hi Sai Ram,

Try this.

data : total_ch(10) type c,

total1_ch(10) type c,

var(10) type c,

total_ch = total.

total1_ch = total1.

var = itab-vat_rat.

Concatenate total_ch

total1_ch var

into v_string.

condense v_string.

Note : If your values are huge define variables with more number of characters.

Regards,

Mohaiyuddin

Read only

0 Likes
484

Hi

Thank you thank you

regards

sai