Murex Accounting Module
Murex Accounting Module
Day 1......................................................................................................................................................................................... 2
Murex Accounting Module..................................................................................................................................................2
Accounting engine........................................................................................................................................................... 2
Accounting template.......................................................................................................................................................2
Trade right by status....................................................................................................................................................... 6
Accounting structure........................................................................................................................................................... 6
Chart of Account structure..............................................................................................................................................6
Organisation of the GL code presentation......................................................................................................................6
SG Accounting Rule Setup....................................................................................................................................................7
Key fields for accounting rules........................................................................................................................................7
Mapping table................................................................................................................................................................. 7
Supporting user defined table.........................................................................................................................................8
Accounting rules structure..............................................................................................................................................8
Accounting FX treatment..............................................................................................................................................17
Day 2....................................................................................................................................................................................... 19
Accounting processes........................................................................................................................................................19
Accounting simulation...................................................................................................................................................19
Accounting Entries at Trade Level.................................................................................................................................20
Accounting Marked-to-Market......................................................................................................................................21
Accounting Interest Accrual..........................................................................................................................................27
Market Operation.........................................................................................................................................................35
Day 3....................................................................................................................................................................................... 43
Accounting EOD script.......................................................................................................................................................43
End of day job sequence...............................................................................................................................................43
End of day job script......................................................................................................................................................43
End of day troubleshooting...........................................................................................................................................47
Accounting Feeder........................................................................................................................................................50
Database structure........................................................................................................................................................53
Accounting Fixing Rate..................................................................................................................................................53
Accounting Audit Table.................................................................................................................................................56
Day 1
Murex Accounting Module
Accounting engine
Accounting Entries
Accounting template
Important settings:
Global settings
Calculation
Revaluation Frequency
Global Settings
Filter
Allows condition to specify to restrict what trades is evaluated during accounting EOD.
Number of servers
Specify the number of accounting engine initiated during accounting EOD.
Entries comments
Configure the information that is captured in the accounting entries comment field.
Calculation
This section specifies the type of configuration for each product type during the accounting EOD.
(Using FX and Bond as example)
Revaluation Frequency
To be completed…
Trade right by status
Accounting structure
Chart of Account structure
For OCBC SIN, this is the chart of account (COA) structure. It consists of 19 digits. Murex has a constrained of maximum 20
digits.
Entity code (3-digits) – retrieved from the Portfolio user-defined field (UDF).
Cost centre (3-digits) - retrieved from the Portfolio UDF
GL account code (5-digits) – retrieved from accounting mapping table
Product code (3-digits) – retrieved from typology or product mapping table
Customer segment code (2-digits) – retrieved from counterparty or portfolio mapping
Sub-ledger code (3-digits) – country specific logic
For OCBC NISP, the structure is proposed to be a bit different. OCBC NISP is looking for a GL account code that is 8 digits. In
order to accommodate this setup, this is the configuration that is under consideration:
Entity code (3-digits) – retrieved from the Portfolio user-defined field (UDF).
Cost centre (3-digits) - retrieved from the Portfolio UDF
GL account code (8-digits) – retrieved from accounting mapping table
Product code (3-digits) – retrieved from typology or product mapping table
Customer segment code (2-digits) – retrieved from counterparty or portfolio mapping
Mapping table
table#list#ac_gl_m_dbf
Contain the grouping of related product into the same accounting label.
Non FI Key:
Entity,
Transaction Group,
Transaction Type,
Product Typology
FI Key:
Entity,
Transaction Group,
Transaction Type,
Instrument Code,
Instrument Sub Code,
Quoted/Unquoted flag
table#list#ac_gl_d_dbf
Contain the detail GL account to be retrieved to form the COA.
Key:
GL Label
Internal/External Flag
Accounting Section (1st level, 2nd level)
Counterparty Account Type (1st level, 3rd level)
table#list#ac_gl_fi_dbf
Contain the product code for FI products to be retrieved to form the COA.
Key:
Entity
Product Typology
Instrument Code
Instrument Sub Code
Security Country Code (1st level only)
Quoted/Unquoted flag
Transaction buy/sell flag for Repo trade
Accounting rules
Accounting events
This is the different events that happen in the life cycle of a trade.
- Commitment
- Delivery
- Realized-Live
- Realized-Dead
Filters
Filter allows the same accounting event to generate entry for different debit/credit accounts
Common filtering condition:
- GLMatrixChkAcctble: check whether the ac_gl_m
- GLMatrixChkBR: for counterparty which account type begins with ‘BR’, then check that the ac_gl_m is
configured for counterparty accounting type.
Sample: SG_SPOTPOS
Formula account
Chart of account is generated based on a specific set of criteria
Sample account: Matrix_NostroSett
Linked Rule
Established a relationship between one product type to accounting rules defined for another product type.
Sample: EQD_BOND_CNV=IRD_BOND
Calculation
This is a Murex functionality that allows user-defined function.
This is used extensively in the accounting configuration.
Sample: NOSTRO_ACC_DC_FI
IIF(trim({Header->PAYTP_DESC})='DVP',
IIF(ISBLANK
(C_TRNCDI({Header->Trn#},'DI:'+{Acc_Entry->Entry Cur}+':D:N::'+{Header->Counterpart},'NOSTRO_GL'))=1,
(C_TRNCDI({Header->Trn#},'DI:'+{Acc_Entry->Entry Cur}+':C:N::'+{Header->Counterpart},'NOSTRO_GL')),
(C_TRNCDI({Header->Trn#},'DI:'+{Acc_Entry->Entry Cur}+':D:N::'+{Header->Counterpart},'NOSTRO_GL'))),
IIF(ISBLANK
(C_TRNSI({Header->Trn#},{Acc_Entry->Entry Cur}+':D:N::'+{Header->Counterpart},'NOSTRO_GL')) = 1,
(C_TRNSI({Header->Trn#},{Acc_Entry->Entry Cur}+':C:N::'+{Header->Counterpart},'NOSTRO_GL')),
(C_TRNSI({Header->Trn#},{Acc_Entry->Entry Cur}+':D:N::'+{Header->Counterpart},'NOSTRO_GL')))
)
Sample: PRODUCT_TYPOLOGY
SUBSTR(IIF(({Header->Internal}="Y".AND.{Header->Portfolio}<>{Acc_Entry->~Current portfolio}.AND.
(ISBLANK(TRIM(CTBLFIELD('TABLE#LIST#AC_GL_M.ALT_PDTCDE','SID',({Acc_Entry->~Entity}+{Header->Trn-
Group}+{Header->Trn-Type}+{Header->Product
Typology}))))=0)),CTBLFIELD('TABLE#LIST#AC_GL_M.ALT_PDTCDE','SID',({Acc_Entry->~Entity}+{Header->Trn-
Group}+{Header->Trn-Type}+{Header->Product Typology})),'')+SUBSTR({Header->Product Typology},2,4),1,3)
Accounting FX treatment
Day 2
Accounting processes
Accounting simulation
Accounting simulation is an important tool to verify whether the accounting rules setup is performed correctly or not.
After trade query, go to Tools -> Building accounting entries and Click 'Yes' to proceed.
This is a function that allows user to know what entries would be generated during the accounting EOD.
Accounting Marked-to-Market
Sample trade: 13439237 (FXD)
Computation:
(MV + FCP + PV) * Accounting fixing rate
= (-4873.54481239972 + 0 + 0.000751812806811358) * 1.68261386862429
= -8200.29
The interest accrual and the premium/discount amortization can be obtained from the P&L (Accounting breakdown) after
performing trade query.
Sample trade: 11774177 (Bond netted - partial)
Computation of the amount of premium/discount that is offset due to netting:
= Original premium-discount * (netted quantity / original quantity)
= 517500 * 20000/150000
= 69000
Note:
The netting is performed on 16 Aug 2013 so the P&L breakdown should be retrieved for 15 Aug 2013.
3-ACCOUNTNG EOD SG
2-ACC MOVE DATE SG
As part of the accounting EOD, there are four key steps to be performed:
Most of the items in the audit trail come in pairs. For example, the LOAD RULE (code 1871671) will have a start entry and
an end entry. When the END entry is missing for a particular task, it means that task is still running or has failed.
If a step has been running for a long time, the audit table will shows the last step that the accounting end of day is
performing. From there, it will give an indication of where the processing is taking a long time and troubleshooting can
commence from the database or UNIX level.
Recovery
There will be situation where we need to undo an accounting end of day.
ACCUNDO-TRN: Remove accounting entries between target date (included) and accounting date (included). This
is different from undo move date as manual entries by users are not removed.
ACCEOD-MVDATE: Move the entities account dates to the target date. If the target date is earlier than the
current accounting date, it removes all accounting entries from the target date to the accounting date.
Accounting Feeder
This is the account feeder for Account entries file and account balance file
DT_ACJD_SG_AF
SG_IT_RPT_ACJS
Database structure
This is a list of tables used by accounting end of day; however this list is not exhaustive.