cancel
Showing results for 
Search instead for 
Did you mean: 

rounding off at item level.

Former Member
0 Kudos

hi all

what should i do for rounding off at item level and rounding off at each condition type.

at present rounding off is carried out at header level only.

kindly advice what to do.

suman varma

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Suman,

Item rounding off :

For rounding off at item level ask you abap consultant to add this coding to following include program

Include RV64A601

rounding rule for closest interger value

FORM FRM_KONDI_WERT_601.

data: da_xkwerx(15).

unpack xkwert to da_xkwerx.

*

move '00' to da_xkwerx+13.

*

*

*

pack da_xkwerx to xkwert.

data : lgort1 like lips-lgort .

data : d1(13) , d6(13) .

data : d2 type p decimals 2 .

data : d3 type p decimals 0 .

data : d4 type p decimals 2 .

data d5(2) .

data : d8(3) .

unpack xkwert to d1 .

d2 = d1 .

d3 = d2 .

unpack d3 to d6.

d5 = d6+11(2) .

if d5 >= 50 .

d8 = 100 - d5 .

d1 = d6 + d8 .

else .

d1 = d6 - d5 .

endif .

*pack d1 to xkwert .

select single lgort into lgort1 from lips where

vbeln = komp-vgbel and

posnr = komp-vgpos .

IF SY-SUBRC = 0 .

if lgort1 = 'JSTO'.

d1 = 0 .

pack d1 to xkwert.

else .

pack d1 to xkwert.

endif .

ELSE .

pack d1 to xkwert.

ENDIF .

And For condition type:

Use this menu path: IMG->S&D->Basic functions-->pricing-pricingcontroldefine condition type--->Maintain Condition Types

Goto Condition type, there you will find Rounding rule Field, here assign which ever rounding rule you want and Save.

Thanks,

Swamy H P

Former Member
0 Kudos

Hi,

rounding off at item level can be controlled from VOV7- general control (qty related)

rounding for condtype we can control from control data/rounding rule of V/06

regards,

sk

Edited by: Sadanandam Kasarla on Mar 17, 2009 12:33 PM