‎2008 Jan 23 9:30 AM
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
‎2008 Jan 23 9:45 AM
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
‎2008 Jan 23 9:33 AM
Hi,
Do like this,
CONCATENATE
total
total1
itab-vat_rat into v_string
separated by '.'.
Rgds,
Bujji
‎2008 Jan 23 9:45 AM
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
‎2008 Jan 24 5:51 AM