Skip to Content
avatar image
Former Member

Rounding condtion type decimals

HI ALL,

I have a requirement where for eg: Condition type PR00 is with 50.45 it should round off to 50.00

or if it is 50.95 also inthat case also it should round off to 50.00

i tried doing rounding rule in conditon type, it is only rounding the decimals

i dont want any decimals

Please let me knw if any one has the answer

Syed

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2009 at 06:26 PM

    Create routine with rounding rule and assign it in pricing procedure for the condition.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Can you please provide me more details, you mean to say i have to ask abaper to create a routine to round that condtion type and where i have to assign is it in requirement or in alt condtion.

      i would be very helpful if you provide more details.

      Thanks

      syed

  • avatar image
    Former Member
    Nov 03, 2009 at 06:26 PM

    Create routine with rounding rule and assign it in pricing procedure for the condition.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 03, 2009 at 07:53 PM

    Hello,

    In transaction V/06 there is a field under header 'Control data1' which can effect how the system rounds off condition values during pricing:

    ->> Rounding rule

    The rule that determines how the system rounds off condition

    values during pricing. The last digit will be rounded.

    Example

    o In the standard rounding rule '_', values are rounded off according

    to business standards:

    10.454 -> 10.45 DEM

    10.455 -> 10.46 DEM

    o In rounding rule 'A', values are always rounded up:

    10.459 -> 10.46 DEM

    10.451 -> 10.46 DEM

    o In rounding rule 'B', values are always rounded down:

    1045.9 -> 1045 LIT

    1045.1 -> 1045 LIT

    Please try using the rounding rule 'B' for your scenario.

    I hope you find this information very helpful and hopefully it will solve your problem.

    Regards,

    Martina McElwain

    SD - Forum Moderator

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I tried using the option B i dnt know y it is not rounding it off. can you please help me with more details.

      Thanks

      Syed