11-28-2007 6:15 AM
Hi,
My requirement is currently the cheque is printing in terms of(gbp-pounds),but i wanted in (usd-dollars).
I had given like
&'*** 'SPELL-WORD& POUNDS&' AND 'SPELL-DECWORD' PENCE ONLY '&***
ponds & pence is been hard coded, could someone help me.
points will be rewarded..
kavitha
11-28-2007 6:19 AM
To format a currency amount with decimals according to the currency use WRITE and the CURRENCY option.
Currency keys an d numbers of decimals are defined in table TCURX Decimal Places in Currencies.
Example 1: Formatting an amount in Kuwatian Dinars:
Dmbtr = 123456.
Write dmbtr currency 'KUD'
123.456
Write dmbtr currency 'USD'
1234.56
Note that the formatting does not depend on the number of decimals in the number in the program.
Dmbtr = '12.3456'.
Write dmbtr currency 'USD'
1234.56
To format the decimal and thousand sepearators according to the settings for a specific country, use the statement SET COUNTRY <country key>
Settings for countries are defined in table T005 Countries.
The country key used in the statement is field LAND1
Example:.
set country 'US'
11-28-2007 6:19 AM
To format a currency amount with decimals according to the currency use WRITE and the CURRENCY option.
Currency keys an d numbers of decimals are defined in table TCURX Decimal Places in Currencies.
Example 1: Formatting an amount in Kuwatian Dinars:
Dmbtr = 123456.
Write dmbtr currency 'KUD'
123.456
Write dmbtr currency 'USD'
1234.56
Note that the formatting does not depend on the number of decimals in the number in the program.
Dmbtr = '12.3456'.
Write dmbtr currency 'USD'
1234.56
To format the decimal and thousand sepearators according to the settings for a specific country, use the statement SET COUNTRY <country key>
Settings for countries are defined in table T005 Countries.
The country key used in the statement is field LAND1
Example:.
set country 'US'