Skip to Content
avatar image
Former Member

MWST Round Rule

Hi All,

This is my case, I am trying to set a product with $3 as total price. Tax percentage is 13%. So, the price condition should be $2.65 in the end I get as total price $2.99. If I set the price condition to $2.66 the total price changes to $3.01.

How do I configure the pricing procedure or conditions to behave the way I need??

Pls help... i'll reward :D.

Thanks, Roberto.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 30, 2007 at 03:18 AM

    Ask Abaper to modify the routine & apply it for the particular condition type for which rounding is required.

    -


    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 .

    -


    Regards,

    Rajesh Banka

    Reward points if helpful.

    Add comment
    10|10000 characters needed characters exceeded