Skip to Content
0
Former Member
Feb 14, 2006 at 08:27 PM

ALV table different for display and output

105 Views

Hello,

I'm having trouble displaying an ALV table. The screen display is showing the qty fields with 3 decimal places. When I print or use print preview the qty fields are shown with no decimal places which is what I want.

Here's what I'm doing:

*showing the display in a grid, not the classic list

list_display = if_salv_c_bool_sap=>false

*---CUSTOMIZE COLUMNS

lr_columns = gr_table->get_columns( ).

lr_columns->set_optimize( abap_true ).

columns_table = lr_columns->get( ).

*---set the output to zero decimals

column-r_column->set_decimals( '0' ).

How do I set what shows on the screen to be the same as what's in the output? Thanks in advance for any help.