Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

currency change in cheque printing

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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'

1 REPLY 1

Former Member
0 Kudos

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'