Currency Conversion as Script Logic

You use this to run a new logic file currency conversion. Currency conversion typically runs by default when default logic runs.

Activities

Currency conversion is handled by a program called CURR_CONVERSION. This program is launched using the following logic statement:

*RUN_PROGRAM CURR_CONVERSION( <parameters list>)

You must also set up the following list of attributes for relevant dimensions in addition to the required attributes:

Dimension

Attribute

ACCOUNT

RATETYPE

DATASRC

DATASRC_TYPE (I, M, A, or L)

IS_CONVERTED (Y, G, or N)

ENTITY

CURRENCY (local currency)

FLOW

FLOW_TYPE (used to find the closing flow)

CURRENCY

CURRENCY_TYPE (currency type - Reporting, Local, or group)

TIMEID

YEAR

PERIOD

TIMEID

MONTHNUM

INPUTCURRENCY (with Rate InfoProvider)

MD (indicator of multiple or divide)

The Datasrc dimension is not mandatory for planning, and currency translation can be run without this dimension. If you choose to include a Datasrc dimension in a planning InfoProvider, the attributes must be set up as they are checked in the currency conversion program.

In addition, the Flow dimension is not mandatory for planning, and currency translation can be run without this dimension. If you choose to include a Flow dimension in a planning InfoProvider, the attribute needs to exist in the flow-type dimension to enable currency conversion.

Example

*RUN_PROGRAM CURR_CONVERSION

CATEGORY = %C_Category_SET%

GROUP = %GROUPS_SET%

TID_RA = %TIME_SET%

OTHER = [ENTITY=%ENTITY_SET%]

RATEENTITY = Global

*ENDRUN_PROGRAM

Note

Global should be the valid member ID that is set in the RATEENTITY dimension.

The example shown above contains the line OTHER = [ENTITY=%ENTITY_SET%]. The Other filter supports the dimensions ENTITY, DATASOURCE, and AUDIT. The OTHER filter does not support user-defined dimensions.

Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or by its gross negligence.