You can set the formatting of the cells in a range by specifying a currency using its ISO standard code. This code is also used within the R/3 System, which means that you can normally simply pass the currency code from R/3. You can also specify the currency formatting using a type. The digits in the cell are then displayed according to the specified type.
CALL METHOD spreadsheet->set_format
EXPORTING rangename = rangename
typ = typ
currency = currency
decimals = decimals
no_flush = no_flush
IMPORTING error = error
retcode = retcode.
Description of parameters
Parameter |
Optional |
Description |
rangename |
Area name | |
typ |
Type for currency formatting:
| |
currency |
ISO standard currency code | |
decimals |
X |
The number of decimal places |
Desktop Office Integration uses the lowest common denominator of the various formatting options in the spreadsheet packages that it supports. Consequently, there are fewer formatting options available than in the spreadsheets themselves.