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: 

Unit Price Problem

Former Member
0 Kudos

Hi Experts,

My requirement is to print the unit price with 4 places after the decimal. Now it was printing as 36.90 per 100 kg, but i want to print it as 0.369. per 1 kg.

This should be for specific sales organization and division.

So can any one suggest me some solution for that.

Thanks & Regards,

Ramana.

3 REPLIES 3

Former Member
0 Kudos

Hi

Based on your conditions ( sales org )

calculate Unit Price

IF SO( Sales Org) = 'A'

NETPR = NETPR/ PEINH .

ELSEIF...(with diff SO)

ELSEIF...(with diff SO)

ENDIF .

NETPR can be declared like

DATA netpr type p decimals 4 .

Hope it helps.

Praveen

Former Member
0 Kudos

Hi Praveen,

Thanks for your reply. I have awarded u points.

In debugging when i chage this 36.90 as 0.3690 it was rounding off the value as 0.40. The field name is KOMVD-KBETR. Can u tell me why this is rounding off.

Thanks & Regards,

Ramana.

Former Member
0 Kudos

hi

good

Try with

FM G_DECIMAL_PLACES_GET.

thanks

mrutyun^