Hi Santosh, thanks but It not works.
Here a example code my problem: The correct value is 12500.15 but numeric.
REPORT zprueba3.
TYPES: BEGIN OF ty_test,
t_curr TYPE PRBETRG,
t_c TYPE char15,
t_f TYPE f,
t_i TYPE i,
t_p TYPE p LENGTH 15 DECIMALS 2,
END OF ty_test.
DATA tt_test TYPE TABLE OF ty_test.
FIELD-SYMBOLS <fs> TYPE ty_test.
DATA:
lo_alv_table TYPE REF TO cl_salv_table.
append INITIAL LINE TO tt_test ASSIGNING <fs>.
<fs>-t_curr = '12500.15'.
<fs>-t_c = <fs>-t_curr.
<fs>-t_f = <fs>-t_c.
<fs>-t_i = <fs>-t_c.
<fs>-t_p = <fs>-t_c.
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = lo_alv_table
CHANGING
t_table = tt_test.
lo_alv_table->display( ).