Show TOC

Function documentationCurrency Conversion as Script Logic Locate this document in the navigation structure

 

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>)

In addition, you must 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 cube)

MD (indicator of multiple or divide)

Note Note

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

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

End of the note.

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 Note

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

End of the note.

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.