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: 

SALV Decimals Round

Former Member
0 Kudos

Hello! I'm developing a application that uses SALV class object!

I would like to round one entire column so that the decimals appear like integers, I've tried to use the methods SET_DECIMALS and SET_ROUND, but with no success! The fields in question are from the type QUANT.

Can any one help me? My last resource would be to create a duplicated field as int or char and duplicate the values, but that would be if there is no other way.

Best Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I've had success with this before. Maybe your issue is the type. Is your field a number? My data element for the column was

type p length 16 decimals 3.

With this type field,

lo_column->set_decimals( 0 ).

worked fine for me.

2 REPLIES 2

Former Member
0 Kudos

I've had success with this before. Maybe your issue is the type. Is your field a number? My data element for the column was

type p length 16 decimals 3.

With this type field,

lo_column->set_decimals( 0 ).

worked fine for me.

Former Member
0 Kudos

Solved!

Tks