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: 

Rounding the decimals in the field "kwert"

Former Member
0 Kudos

Hi,

I have a situation like this...

I need to round the amount in the field kwert in price of the sale order...

for getting the decimal places when i used the standard function FRAC this is not working inside the pricing routine....but its working in test programs (se38)

Anybody worked on this kind to round of the decimal places please pass on the suggestions...also if possible give any function module to do the same...

Thanks

Kathir

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Plz use the function module.

call function 'ROUND'

exporting

DECIMALS = 0

input = v_kwert

SIGN = 'X'

IMPORTING

OUTPUT = v_kwert

EXCEPTIONS

INPUT_INVALID = 1

OVERFLOW = 2

TYPE_INVALID = 3

OTHERS = 4.

Thanks,

Rashmi.

Message was edited by: Rashmi Joshi

3 REPLIES 3

Former Member
0 Kudos

Hi,

Plz use the function module.

call function 'ROUND'

exporting

DECIMALS = 0

input = v_kwert

SIGN = 'X'

IMPORTING

OUTPUT = v_kwert

EXCEPTIONS

INPUT_INVALID = 1

OVERFLOW = 2

TYPE_INVALID = 3

OTHERS = 4.

Thanks,

Rashmi.

Message was edited by: Rashmi Joshi

0 Kudos

Thanks Rashmi.....it helped me...

Regards

Kathiravan

0 Kudos

Hi,

Please reward points and close the thread if it helped you.

Thanks,

Rashmi.