Skip to Content
0
Oct 20, 2022 at 12:14 PM

Reading the data from ALV OUT PUT CELL with 3 decimals

114 Views

How to read the data from ALV output cell which contains 3 decimals.

Am using REUSE_ALV_GRID_DISPLAY_LVC for displaying the data . In the field catalogue am passing

wa_fcat-fieldname = 'KBETR'.
wa_fcat-tabname = 'IT_VBAP'.
wa_fcat-row_pos = '1'.
wa_fcat-col_pos = '14'.
IF lt_agr_users IS NOT INITIAL.
wa_fcat-edit = 'X'.
ENDIF.
wa_fcat-scrtext_m = 'ZAIP(percentage)%'.

wa_fcat-decimals = 3.

To read data from alv output for the field KBETR using

IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.

IF NOT ref_grid IS INITIAL.


CALL METHOD ref_grid->check_changed_data .
ENDIF.

When am checking internal table data if I enter 1 in the output of alv after calling check_changed_data method am getting the value as .001 Not sure why it is getting divided by 10

Is there any thing that missing the field catalogue??