Application Development and Automation 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: 
Read only

How to avoid decimal numbers?

Former Member
0 Likes
614

Hi Experts,

I am picking PO Quantity(MENGE) field from RSEG table and displaying in the report output. It is displaying the value has '13.000' , but I need to display the same value has '13' in the report output.

Just I need to avoid the decimals characters.

Please help me out, useful answer rewarded with points.

Thanks,

Raju

1 ACCEPTED SOLUTION
Read only

Azeemquadri
Contributor
0 Likes
571

You can use variable of type P decimals 0 or use an integer to show this field.

Hi Experts,

I am picking PO Quantity(MENGE) field from RSEG table and displaying in the report output. It is displaying the value has '13.000' , but I need to display the same value has '13' in the report output.

Just I need to avoid the decimals characters.

Please help me out, useful answer rewarded with points.

Thanks,

Raju

2 REPLIES 2
Read only

Azeemquadri
Contributor
0 Likes
572

You can use variable of type P decimals 0 or use an integer to show this field.

Read only

Former Member
0 Likes
571

Hi Raju

If ur using basic list

use DECIMALS addition with WRITE statement

ex: WRITE rseg-menge DECIMALS 0.

elseif ur using ALV

populate the fieldcatalog table with the following parameter & value for that particular field

parameter : DECIMALS_OUT

value : 0 (Zero)

ex:

WA_FIELDCAT-DECIMALS_OUT = 0.

reward if useful.

Regards

Prabumanoharan