Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

decimal filed in ALV

Former Member
0 Kudos

Hi Abaper,

I am showing one field in ALV of likp LGMNG which is using refrence of data element LGMNG (QUAN 13 3). it is displaying with 3 decimal places.

I want to display the value of LGMNG with 2 decimal place, how?

Thanks,

Rajesh.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use

ls_fieldcat-decimals    = '000003'.

in the fieldcatalog. please let me know if problem not solved.

Thanks

former_member188685
Active Contributor
0 Kudos

you can use decimal_out = 2 , specify in the fieldcatalog.

fieldcat-decimals_out = 2.

Former Member
0 Kudos

giving value to decimals_out = 2 in field catalog will solve your problem.

0 Kudos

No..this is not working.

Thanks,

Rajesh

Former Member
0 Kudos

Try assigning the value to a field having data type packed and decimal 2 and just modify the table you are passing to the alv. check this ok.

Regards,

Midhun Abraham

Edited by: Midhun Abraham on Sep 30, 2008 6:31 PM