on 06-23-2009 1:36 PM
Hi all,
Can u please help me in solving the problem,
i have a value called 5987.45
and decimal places are 45 that is 2 numbers
2) 765.987
number of digits in decimals are 3.
3) 67543.1
number of digits in decimals are 1.
for this i need a coding
thanks.
Hi,
Use FM SWA_DETERMINE_DECIMALS to calculate the decimal count value.
Hope this may be useful..
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
split your value at '.' into two variables and find the number of characters of the decimal part.
eg.
if value = '123.567'.
split value at '.' into integer_part decimal_part.
no_of_decimals = numofchar( decimal_part.) .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the FM SWA_DETERMINE_DECIMALS.
regards,
Ankur Parab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
While printing your text element give as;
&wa_tab-dec_value(.2C)&
This will always print everything with 2 decimals.
Regards
Karthik D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.