Skip to Content
0

Decimal Issue ALV in SAP ABAP

Nov 23, 2017 at 07:22 AM

96

avatar image
Former Member

Hi experts,

I need one help here, one standard report where using REUSE ALV GRID DISPLAY Fm

In internal table of std table i have one custom field P_AMT here its passing value- Example: 984.00/ 984.12 (decimal value) but in ALV its coming as 984,00/ 984,12 (comma value), i want same as decimal value.

I have checked data type as well its correct in table.

Kindly help me how to solve this issue. Its a Standard Report and in Reuse ALV FM field catalog is commented they are passing table Structure

call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = gc_status_set_s
i_callback_user_command = gc_user_command_s
i_structure_name = 'IBROSTMS'
is_layout = gs_layout
i_grid_title = g_title
* it_fieldcat = gt_fieldcat_s " field catalog commented in std report
it_sort = gt_sort_s
i_save = 'A'
is_variant = vari
tables
t_outtab = gt_ibrostms
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.

endif.

Thanks and Regards.

Niraj Sinha

10 |10000 characters needed characters left characters exceeded
Former Member

Hi ,

I have checked Data type and User Profile as well.. its correct there, but no effect in ALV :(

Regards.

Niraj.

0
Former Member

Hi,

but did you have modify the settings of the decimal values in SU3 or SU01 for your user ?

regards

Fred

0
Former Member
Former Member

Hi Fred,

Yes i alrady did in SU3.. but no effect in ALV.

Regards.

Niraj

0
Former Member
Former Member

Implisit enhancment option is there in report, but what to enhance before REUSE ALV GRID DISPLAY Fm becuase field catalog is commented in report.

0
Former Member
Former Member

how is define your field ?

0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raymond Giuseppi
Nov 23, 2017 at 10:01 AM
0

Check with SE11 in your append structure of IBROSTMS for your field definition, P_AMT looks like an amount field name, its data type must be CURR in fields tab and you must have provided a reference to a currency field (IBROSTMS-WAERS) in currency/quantity tab. (Look in online help for ALV value display currency)

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Raymond,

Data type is CURR only in P_AMT field and Reference table and field is there is there but its not working as well.

Regards.

Niraj

0

Can you check the generated field catalog with the The Consistency Check, look for differrence with other amounts fields, standard ones.

0
avatar image
Former Member Nov 23, 2017 at 09:51 AM
0

What is the data type of P_AMT?

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Waseem,

Data type is CURR in P_AMT field and Reference table and field is there is there but its not working.

Regards.

Niraj

0
Sandra Rossi Nov 24, 2017 at 07:35 AM
0

Is your question about comma versus dot representation of the decimal point? It's defined in the user profile (transaction SU3 or SU01).

Share
10 |10000 characters needed characters left characters exceeded