Skip to Content
avatar image
Former Member

Comma and period printing with amount field in SAP Script

Hi All,

We have a issue with comma and period printing with amount field, decimal period and comma are getting interchanged in the total amount printed, say for example,

123,456.00 -> is expected but,

123.456,00 -> is being printed.

this happens only with the total amount field and other places it is printing fine.

We require comma (,) for thousands separator and period (.) for decimal place. Please help with this,

Thanks

Srini

Edited by: SRINIVASA KUMAR on May 27, 2010 10:22 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 27, 2010 at 08:28 AM

    Hi Srini,

    Amount field will be printing based on your user setting

    Go SYSTEM >userprofile --->owndata

    In defaults tab, under Decimal Notation you can set according to your output.

    otherwise you can use the SET COUNTRY command in the script to print based on the country .

    Rewards if it is useful

    Thanks

    Arul

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Srini,

      You need to use the SET COUNTRY command to change the decimal format based on the country. Check the decimal notations of the total amount while debugging.

      Thanks

      Arul