Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SALV Decimals Round

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

Former Member
Former Member replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question