Application Development 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: 

EXPONENT VALUE BEING DISPALYED.

Former Member
0 Kudos

i have defined a percentage (type F-because i want all the decimals so that sum of all percentages add up to 100 else it comes to 99.99 0r 100.01 etc) field in my internal table .Now passing this same table for alv_grid display.I dont want the exponent appearing i want the full number with all its decimals so that alll the percentages add up to 100.Three is an "exponent" option in fieldcatalog i have tried giving 0 to it, but hasnt worked.Any help

3 REPLIES 3

Former Member
0 Kudos

Hi!

You might try out the TYPE p, instead of f...

Regards

Tamá

suresh_datti
Active Contributor
0 Kudos

You can also use the <i>decimals_out</i> property of the field catalog.

~Suresh

martinborda
Explorer
0 Kudos

Tha data should be declared as type f.

Both fields in catalog must be set:

decimals_out (numbers of decimals to be shown)

exponent (fixed exponent for floating point)

For example:

fieldcat-decimals_out = 2.

fieldcat-exponent = 0.

number '3.5087719298245612E+00' will be shown as '3.51'

but in calculations, the floating point number will be used (and sum of percentages will be 100%)