Sei sulla pagina 1di 5

SAP Note

Header Data
Symptom
Not e t hat t he sol ut i on descr i bed her e i s a wor kar ound t hat i s not i ncl uded i n t he st andar d
syst em. I nqui r i es and pr obl em messages on t hi s subj ect ar e not par t of SAP Suppor t , but
wi l l r at her be pr ocessed by Consul t i ng. Consul t i ng i s subj ect t o a separ at e f ee. For
det ai l s, see Not e 381348.

The val ue of " net pr i ce * quant i t y" can devi at e f r omt he net val ue di spl ayed i f t he net val ue i t sel f
i s det er mi ned by addi ng or subt r act i ng sur char ges f r oma base char ge. Fur t her mor e, under cer t ai n
ci r cumst ances, t he net pr i ce f or di f f er ent quant i t i es may be r ounded di f f er ent l y.
Exampl e of bot h t ypes of r oundi ng pr obl ems:
A di scount of 9% i s gr ant ed f or an ar t i cl e wi t h a pr i ce of 135. 50$ f or each pi ece. The exact
di scount i s t hen 12. 195$ and net pr i ce 123. 305$. St andar d pr i ci ng suppl i es t he f ol l owi ng out comes:

a) For 3 pieces:PR00 Price 135.50$ for each piece406.50$
RA00 Discount9.00- %36.59- $
Net value 123.30$ for each
piece369.91$!!!!!!(instead of 369.90$)

b) For 10 pieces: PR00 Price135.50$ for each piece1355.00$
RA00 Discount 9.00- %121.95- $
Net value123.31 $ for each piece 1233.05$
!!!!!! (instead of 1233.10$)

Other Terms
Roundi ng er r or

Reason and Prerequisites
St andar d pr i ci ng l ogi c
Sur char ges and di scount s ar e r el at ed t o net val ue. The r esul t i ng net pr i ce t hen r esul t s f r oma
di vi si on of net val ue by quant i t y.

Solution
Thi s not e r epl aces Not es 19454 ( i t cor r esponds t o var i ant s 1 and 2 descr i bed bel ow) and 38389
( cor r esponds t o var i ant 3 descr i bed bel ow) i n Rel ease 3. 0A and subsequent r el eases.
Rest r i ct i ons
1. Accor di ng t o t he pr oper t i es of absol ut e amount s ( KRECH = " B" ) , t he net pr i ce i s al ways an
amount der i ved f r omt he net val ue and on account of t he const r uct i on i s al so al ways quant i t y-
dependent . The net pr i ce i s al so not devel oped i ndependent of t he net val ue, t her e i s no
par al l el cal cul at i on on amount and val ue l evel and f or t hi s r eason, no r oundi ng di f f er ences can
be di spl ayed.
Rounding differences in this case, can only occur if you force the relation "price *
quant i t y = val ue" on net val ue l evel . Onl y var i ant 1 can handl e absol ut e amount condi t i ons i n t hi s
cont ext . Due t o t hei r or i gi nal budget f or absol ut e amount condi t i ons, var i ant s 2 and 3 cannot
pr i nci pal l y of f er a sol ut i on and t he cor r espondi ng r oundi ng f or mul as t her ef or e l ead t o a pr i ce
det er mi nat i on er r or .
2. For t he l i nes i n t he pr i ci ng pr ocedur e af t er t he pr i ce condi t i on and bef or e t he r oundi ng
condi t i on, pr obl ems may occur i f condi t i ons exi st whi ch coul d r ecei ve a sur char ge f r omt he
r oundi ng di f f er ences cl ear i ng as par t of t he gr oup condi t i on pr ocessi ng. These scenar i os ar e not
t est ed and t hei r f unct i oni ng i s not t her ef or e expl i ci t l y guar ant eed i n t hi s advi ce not e.
Possi bl e modi f i cat i ons or enhancement s t hat may be r equi r ed i n connect i on wi t h t hi s f al l i nt o
t he ar ea of advi ce. We t her ef or e r ecommend t hat you suppr ess t he r oundi ng di f f er ences i f
necessar y vi a a gr oup key r out i ne ( compar e Not e 39034) .
Gener al r eason: The r oundi ng di f f er ence cl ear i ng i s car r i ed out wi t h pr i ci ng t ype " F" .
I f a condi t i on i n t hi s pr i ci ng mode i s t hen updat ed, t he cor r espondi ng base and val ue f or mul as ar e
no l onger execut ed i n t he change mode, t hat i s, al l changes i n t he wor k ar ea XKOMV or t he var i abl es
XKWERT ar e r ej ect ed. I n t hi s case, t he var i abl es XKOMV- KKURS, XKOMV- KI NAK, and XKWERT i n t he
condi t i on val ue f or mul as 19, 20, 919, and 920 ar e af f ect ed by t hi s.
80183 - Rounding
Version 36 Validity: 07.11.2012 - active Language English
Released On 07.11.2012 19:07:14
Release Status Released for Customer
Component SD-BF-PR Pricing
Priority Recommendations / Additional Info
Category Consulting
However, the following statements can be made for the individual variants:
a) Var i ant 1 i s uncr i t i cal wi t h r egar d t o r oundi ng di f f er ence cl ear i ng f or t he di scount
condi t i ons because t he di scount condi t i ons do not cont ai n any f or mul as. However , t he
di scount amount i n t he i t emcont ai ni ng t he r oundi ng di f f er ence cl ear i ng i s, of cour se, no
l onger cor r ect .
b) Var i ant 2 can pr obabl y be r un despi t e f or mul as i f a r oundi ng di f f er ence cl ear i ng i s
car r i ed out on t he di scount condi t i ons. XKOMV- KKURS and XKOMV- KI NAK shoul d al r eady be set
cor r ect l y i n t he i t empr i ci ng so t hat a new set t i ng wi t hi n t he gr oup condi t i on pr ocessi ng
shoul d no l onger be r equi r ed. A sur char ge f or t he di scount condi t i on based on r oundi ng
di f f er ence cl ear i ng shoul d be caught agai n by t he r oundi ng condi t i on NETP and shoul d
t her ef or e not l ead t o a dest r uct i on of t he r el at i on " amount * quant i t y = val ue" .
c) Par t i cul ar l y f or var i ant 3, i n t he case of a sur char ge f or t he di scount condi t i on based
on r oundi ng di f f er ence cl ear i ng, t he r el at i on " amount * quant i t y = val ue" woul d def i ni t el y
be dest r oyed. The sur char ge i mmedi at el y af f ect s t he condi t i on val ue of t he net pr i ce
condi t i on PNTP.
3. I n al l t he above sol ut i ons, t he r ebat e amount i s al ways r ounded commer ci al l y and not t he net
pr i ce r esul t i ng f r omt he cal cul at i on. Take t he cal cul at i ons speci f i ed under var i ant 3 as an
exampl e.
Pr ocedur e i n det ai l
1. Set up t he condi t i on t ype NETP ( r oundi ng di f f er ence) ( not f or var i ant
3) ( Tr ansact i on V/ 06) :
Condition class"A"Surcharges and discounts
Calculation type "C"Is quantity- dependent
Condition category "L"Always determine again
Manual entry"D"No manual entry
Item condition "X"
No access sequence i s st or ed.
2. Set up t he condi t i on t ype PNTP ( net pr i ce) ( Tr ansact i on V/ 06) :
Condition class"B"Prices
Calculation type "C"Is quantity- dependent
Condition category "L"Always determine again
Manual entry"D"No manual entry
Item condition "X"
No access sequence i s st or ed.
3. Cr eat e t he f or mul as i n t he cust omer name r ange as descr i bed bel ow ( cal l ed condi t i on base
f or mul a 917 and condi t i on val ue f or mul as 906, 919, and 920 i n t he at t achment ) ( Tr ansact i on
VOFM) . You onl y need base f or mul a 917 and condi t i on val ue f or mul a 919 or 920 f or var i ant 3. I f
you onl y want t o i ncl ude condi t i on val ue f or mul a 920 but not 919, you shoul d st i l l cr eat e
f or mul a 919 f ul l y because i t cont ai ns a dat a def i ni t i on f or f or mul a 920.
4. Change your pr i ci ng pr ocedur e accor di ng t o one of t he f ol l owi ng t hr ee var i ant s:
Pr i ci ng pr ocedur e var i ant 1:
CTypDescription ReqtAltCTy AltCBV Stat Print PR00
Price2
RA00 Discount 2
NETP Round. diff2 6 3
PNTP Net price2 906 3 XX
Net value2
. . . Feat ur es:
l Net val ue = Net pr i ce * quant i t y.
l Net pr i ce i s not i nvar i abl e.
l Di scount cal cul at ed cor r ect l y.
This variant ensures the relationship "net price * quantity = net value" is complied
wi t h. However , t he net pr i ce can st i l l be di f f er ent due t o r oundi ng.
Any number of di scount condi t i ons of t he same ki nd can st and bef or e t he NETP condi t i on.

Mode of oper at i on of var i ant 1:
a) For 3 pieces: PR00 Price135.50$ for each piece406.50$
RA00 Discount 9.00- %36.59- $
NETP Round. diff123.30$ for each piece0.01- $
PNTP Net price123.30$ for each piece369.90$
Net value123.30$ for each piece369.90$
For t he condi t i on val ue of 406. 50 $, a 9% di scount i s gr ant ed, t hat cor r esponds t o 36. 59 $ ( r ounded
of f ) . The r esul t i s a cur r ent net val ue of komp- net wr = 369. 91 $. Base f or mul a 3 uses f or t he
condi t i on t ype NETP t he cur r ent net pr i ce of komp- net pr = 123. 30 $ whi ch r esul t s f r omt hi s, so f or
t hi s condi t i on t ype t he condi t i on val ue i s xkomv- kwer t = 369. 90 $. Condi t i on val ue f or mul a 6 now
cal cul at es a r oundi ng di f f er ence of - 0. 01 $ whi ch agai n i s subt r act ed f r omt he cur r ent net pr i ce. I n
condi t i on t ype PNTP, t he net pr i ce i s now r eset . A net val ue r esul t s i n t he subt ot al l i ne " net
pr i ce" whi ch can be di vi ded by t he quant i t y wi t hout r oundi ng er r or s i n t he above const r uct i on. Thi s
way t he r el at i onshi p " net pr i ce * quant i t y = net val ue" i s compl i ed wi t h.

I f now af t er condi t i on t ype NETP you woul d add a subt ot al l i ne i t emt o ent er t he net val ue, because
of t he f ol l owi ng r eason ( agai n wi t h r oundi ng) t he net pr i ce coul d be di f f er ent : The net pr i ce has
t wo deci mal pl aces, t he quant i t y has t hr ee deci mal pl aces; t he net val ue, t her ef or e, t heor et i cal l y
has si x deci mal pl aces. Because t he net val ue onl y uses t wo deci mal pl aces i t has t o be r ounded. I n
cont r ast t o nor mal condi t i on t ype l i nes, subt ot al l i ne i t ems cal cul at e backwar ds, t he net pr i ce f r om
t he net val ue. Wi t h an assumed bi l l i ng quant i t y of 1, 234 pi eces, you woul d t her ef or e get :
1221,60 $ / 1,234 pcs =989,95(1377...)$,
whereas when you want to print a net price line/net value line you get:
989,95 $ * 1,234 pcs = 1221,60 $ (exactly: 1221,5983 $).
To r ul e out possi bl e devi at i on her e, i n addi t i on dummy condi t i on t ype PNTP i s i nt r oduced, whi ch
bypasses t he cal cul at i on l ogi c of t he subt ot al l i ne i t em. I t i s mai nl y used t o pr i nt a consi st ent
net pr i ce l i ne/ net val ue l i ne. Wi t h condi t i on basi s f or mul ar e 3 her e f r omcondi t i on val ue a
condi t i on amount i s cal cul at ed, whi ch due t o t he st andar d pr i ci ng l ogi c mul t i pl i ed wi t h t he quant i t y
r esul t s i n t he net val ue. Condi t i on val ue f or mul ar 906 f i nal l y det er mi nes t he net pr i ce and t he net
val ue r esul t i ng f r omi t as pr i ce i nf or mat i on.
I n t he l ast subt ot al l i ne i t em" net val ue" as descr i bed, t heor et i cal l y a di f f er ent net pr i ce may
r esul t ; but i t i s of no i mpor t ance.

b) For 10 pieces: PR00 Price135.50$ for each piece 1355.00$
RA00 Discount 9.00- % 121.95- $
NETP Round. diff123.31$ for each piece0.05$
PNTP Net price123.31$ for each piece 1233.10$
Net value123.31$ for each piece 1233.10$
The net pr i ces di f f er i n bot h cases by 0. 01 $.
Pr i ci ng pr ocedur e var i ant 2:
Pricing type Description Requ. Calc.formulaBasFrmStatPrint PR00
Gross price2
RA00 Discount 219
NETP Round. diff2 617
PNTP Net price2 90617XX
Net value2
. . .
Features:
l Net val ue = Net pr i ce * quant i t y.
l Net pr i ce i s i nvar i abl e.
l Di scount cal cul at ed cor r ect l y.
Furthermore, this variant ensures that the net price is always the same.

I nst ead of condi t i on t ype RA00, t he f ol l owi ng condi t i on t ypes can al so be used wi t h t he f ol l owi ng
f or mul as:
Description Calc. formula Calc. type
RA00Percent of gross amount19A
RA01Percent of reduced amount20A
RC00Quanity discount 19C
RD00Weight discount gross amount 19D
RE00Weight discount net amount 19E
RF00Volume- based discount19FAny number of discount conditions each with
t he cor r espondi ng val ue f or mul ar can st and bef or e t he NETP condi t i on.

Mode of oper at i on of var i ant 2:

a) For 3 pieces: PR00 Price135.50$ for each piece406.50$
RA00 Discount 9.00- %36.59- $
NETP Round. diff123.31$ for each piece0.02$
PNTP Net price123.31$ for each piece369.93$
Net value123.31$ for each piece369.93$
I n cont r ast t o var i ant 1, her e t he di scount i s cal cul at ed by condi t i on val ue f or mul a 19 di r ect l y
f r omt he net pr i ce, t hus, t he net pr i ce no l onger r esul t s f r oma di vi si on of net val ue by quant i t y.
As a r esul t , t he net pr i ce i s al ways t he same. Thi s net pr i ce cal cul at ed t hi s way i s t hen set as a
condi t i on r at e i n condi t i on base f or mul a 17. However , t he st andar d pr ocedur e i n whi ch t he di scount
i s cal cul at ed f r omt he net val ue r uns par al l el . I n condi t i on val ue f or mul a 6, now t he di f f er ence
bet ween t he pr oduct net pr i ce * quant i t y and t he net val ue cal cul at ed i ndependent l y f r omi t i s
det er mi ned agai n. The net val ue i s t hen cor r ect ed by t hi s amount . Usi ng condi t i on val ue f or mul a 906,
t he condi t i on t ype PNTP r eset s t he net pr i ce and net val ue det er mi ned t hi s way.

b) For 10 pieces: PR00 Price135.50$ for each piece 1355.00$
RA00 Discount 9.00- % 121.95- $
NETP Round. diff123.31$ for each piece0.05$
PNTP Net price123.31$ for each piece 1233.10$
Net price123.31$ for each piece 1233.10$
I n var i ant 2 t he r el at i onshi p i s al ways " net pr i ce * quant i t y = net val ue" and t he net pr i ce i s
al ways t he same.
Pr i ci ng pr ocedur e var i ant 3 ( so- cal l ed P- var i ant f r om R/ 2) :
Pricing type Description Requ. Calc.formula BasFrm Stat Print PR00
Price2
RA00 Discount 2 919
PNTP Net price2 906917 XX
Net value2 X...
Features:
l Net val ue = Net pr i ce * quant i t y.
l Net pr i ce i s i nvar i abl e.
l Di scount not cal cul at ed cor r ect l y.
This variant also ensures that the relationship is always "net price * quantity = net
val ue" and t he net pr i ce i s al ways t he same. Roundi ng di f f er ences, however , ar e no l onger di spl ayed
separ at el y but cont ai ned i n t he di scount .

I nst ead of condi t i on t ype RA00 you can al so use t he f ol l owi ng condi t i on t ypes wi t h t he f ol l owi ng
f or mul as:

DescriptionCalc.formulaCalc.type RA00Percent of gross
amount919A
RA01Percent of reduced amount920A

RC00Quantity discount919C
RD00Weight discount gross amount 919D
RE00Weight discount net amount 919E
RF00Volume- based discount919F
By using formula 920 you continuously grant the discounts for the accumulated new
val ue/ net pr i ce. For f or mul a 919 ever y di scount f or t he net val ue/ net pr i ce i s cal cul at ed bef or e t he
f i r st condi t i on t o whi ch f or mul a 919 or 920 i s assi gned.
Any number of discount conditions (each with the corresponding value formula) can come
bef or e t he PNTP condi t i on.

Mode of oper at i on of var i ant 3:
a) For 3 pieces: PR00 Price 135.50$ for each piece406.50$
RA00 Discount9.00- %36.60- $
PNTP Net price 123.30$ for each piece369.90$
Net value 123.30$ for each piece369.90$
Her e f i r st t he net pr i ce i s cal cul at ed di r ect l y and t hen t he net val ue i s cal cul at ed f r omi t . The
di scount i s cal cul at ed by det er mi ni ng t he di f f er ence bet ween t he new net val ue and t he i ni t i al
amount . I f t he di scount cal cul at ed t hi s way i s t hen subt r act ed f r omt he i ni t i al amount , you r ecei ve
t he f i r st cal cul at ed net val ue agai n. Thi s var i ant does not di spl ay any r oundi ng di f f er ences si nce
t hi s di f f er ences ar e cont ai ned i n t he di scount .

b) For 10 pieces: PR00 Price 135.50$ for each piece1355.00$
RA00 Discount9.00- %122.00- $
PNTP Net price 123.30$ for each piece1233.00$
Net price 123.30$ for each piece1233.00$

Validity

Correction Instructions
References
This document refers to:
SAP Notes
Software Component From Rel. To Rel. And Subsequent

SAP_APPL

40B

40B

45B

45B

46B

46B

46C

46C

470

470

500

500

600

600

602

602

603

603

604

604

605

605

606

606

616

616

617

617
Correction Instructions
Software Component Valid from Valid to Number

SAP_APPL

40B

46C

23540

SAP_APPL

470

617

621740
1276910 Wrong Net Price Calculation
923023 positive net value with return items using note 80183
825410 Brazilian Tax Calculation and Unit Price for Nota Fiscal
791944 How is the KBETR determined in a subtotal?
785568 Value 0 during NetPrice rounding with Form.10119/note 80183
531953 Rounding inaccuracies in the net price
526308 Condition basis is too large by factor 100

This document is referenced by:
SAP Notes (20)

521910 Object processing in IPC of user exits and formulas
502854 Several errors during the rounding of the net price
381348 Using user exit, customer exit, VOFM in SD
130742 Roundings in subtotal lines
122595 Inactive conditions with value formula 19 or 20
117347 Pricing type K modified for condition category L
116632 Net price is inaccurate
102374 Constant net price during milestone billing
39034 Group condition routine
38389 Calc. of discounts in percent based on unit price
791944 How is the KBETR determined in a subtotal?
785568 Value 0 during NetPrice rounding with Form.10119/note 80183
531953 Rounding inaccuracies in the net price
526308 Condition basis is too large by factor 100
521910 Object processing in IPC of user exits and formulas
923023 positive net value with return items using note 80183
1276910 Wrong Net Price Calculation
1000681 Syntax error: Missing data declaration for PROZENTUAL
858793 Incorrect value with formula 10119 & 10120 (note 80183)
825410 Brazilian Tax Calculation and Unit Price for Nota Fiscal
1456045 rounding error in pre-delivered formula based on note 80183
102374 Constant net price during milestone billing
116632 Net price is inaccurate
117347 Pricing type K modified for condition category L
381348 Using user exit, customer exit, VOFM in SD
122595 Inactive conditions with value formula 19 or 20
130742 Roundings in subtotal lines
38389 Calc. of discounts in percent based on unit price
39034 Group condition routine
502854 Several errors during the rounding of the net price

Potrebbero piacerti anche