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

Avoid Decimals

Former Member
0 Likes
372

Hi all,

In my report I need to diaplay the amout fields with out decimal I tried with moving to integer and using type n.. but I am facing problem to display the amount in TWD currency, I could not able to use paked decimal, If I use paked decimal I could able to see the result in debugging but output screen is blank..

To avoid decimal points what is the way..

Please help me in this..

Thank you

2 REPLIES 2
Read only

Former Member
0 Likes
339

Hi,

Defined a new variable of type p and decimals 0. Check this code.

DATA: l_value TYPE vbap-netwr VALUE '123.45'.
DATA: l_disp TYPE p DECIMALS 0.

l_disp = l_currency.

WRITE:/ l_disp.

"No decimal value on output

Let me know if you have any question.

Regards,

Rs

Read only

Former Member
0 Likes
339

hi Haritha,

do this way ...


data : v_p(13) type p decimals 0,
          v_f      type f .

v_p = v_f.

write : v_p.

Regards,

Santosh