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

FM to Write Off amount

Former Member
0 Likes
560

Hi All,

Is there any function module to write off amount 0.1 to 0.4.

Thanks

Hi All,

Is there any function module to write off amount 0.1 to 0.4.

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
505

Hi Abhishek,

Why do you need FM for this. Its simple mathematical operation.

Write small code.

IF fact(var) < 0.5.

   * Round off value (you can use Ceil or Floor functions)

else.

* rest opearations.

ENDF


Read only

former_member182354
Contributor
0 Likes
505

Hello,

         Use CEIL statement as below:

DATA: V_INPUT TYPE NETPR VALUE '0.1'.

DATA: V_OUTPUT TYPE I.

v_ouput = CEIL( v_input ).

write: / v_output.

Raghav