Skip to Content
avatar image
Former Member

decimal prob

Hi all ,

We are working on a smartform Invoice which is being run

by standard SAP transaction . We are printing the field

NETWR at one place . In one particular document , where

its value is 10.00 it gets doisplayed as 10,00(with comma

as decimal separator)whereas in another where its value is

22222.00 , it gets displayed/printed as 22,222.00(with decimal

as decimal separator )

Any ideas why this is happenning .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 28, 2008 at 10:31 AM

    I can think of two things that can cause this:

    1. The currency format in the user master is set up in the way you have

    described. You can change this in the user master preferences.

    2. You are printing an invoice in a European or Asian currency and the

    currency is set up to print that way. To fix this, you can use the SET

    COUNTRY command within the smart form to set it to print in the style of the

    country you want, e.g. U.S. or Canada. Or, you can change the config for

    the currency in table T005X.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 26, 2008 at 11:25 AM

    Hi

    first move this integer type variable into a character type and now u can use..

    TRANSLATE or REPLACE..

    data w_value(20) type c.

    w_value = mseg-amount.

    translate w_value using ',.'.

    or

    replace all occurrences of ',' in w_value with '.'.

    this ',' to '.' conversion depends on the user master settings for your user id. if it is , only then no need of this change !! take care of that also..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 26, 2008 at 11:58 AM

    hi

    from Menu Bar -


    > System -


    > User Profile -


    > Own Data------> Defaults Tab -


    > Set Decimal notation here .

    to take changes effect u have to re login.

    reward if helpful

    Add comment
    10|10000 characters needed characters exceeded