Skip to main content

llg_src_gl_recon

1.Description

This program reads a cf file, master file and additional files and aggregates data and gives a summary for LLG_GL and SRC_GL.

2. Input

2.1 Mandatory Parameters

#ParametersDescriptionExample
1process_configPath to the process configuration file that needs to be processed/path/to/process_config.json
2consol_ccyThe consolidation currencyUSD
3as_on_dateThe date for which the program should run2025-01-01
4log_file_pathPath to write logs/path/to/log_file.txt
5diagnostics_file_pathPath to write diagnostics logs for performance and error tracking/path/to/diagnostics_file.txt
6connection_stringConnection credentials in JSON format to connect to the databaseOracle (Username|Password|IP:PORT/Servicename) and Mssql (Server|Database|UserName|Password)

2.2 Non-Mandatory Parameters

#ParametersDescriptionDefault ValueExample
1default_llg_codeThe default LLG code to stamp if necessary9999912345
2default_gl_codeThe default GL code to stamp if necessary9999967890
3is_consolidatedFlag to decide whether the currency is consolidatedfalsetrue
4log_levelLevel of diagnostics written to the log filenoneerror/warn/info/debug/trace
5is_perf_diagnostics_enabledFlag to decide if performance diagnostics will be loggedfalsetrue

2.3 Required field file

#ParametersDescriptionExample
1input_file_idId of the input fileM_IN001
2rules_file_idId of the rules file1000
3acc_numField for account number18372
4gl_codeField for general ledger code2000
5currencyField for currencyccy
6gl_amountField for general ledger amountgl_amt

3. Output

Two Files will be generated one for LLG_GL and one more for SRC_GL and health check reports will be generated for each.

3.1 Output file for LLG_GL

It will be uploaded in LLGReconData table.

#FieldDescriptionColumnsExample
1formatted_as_on_dateDate of operation as passed through inputAs_On26-09-2023
2source_nameInput File nameSourceFileCdloans
3keys.llgllg code generated using rules fileLLGID8888
4keys.gl_cdgl_cd extracted from metadataGLCode1111
5keys.ccycurrency type initialized in inputCcyIDINR
6values.aggr_amtif is_consolidated, then converted aggregated amount else aggregated amountBalLCY750000
7conv_data.aggr_amtif is_consolidated, then aggregated amount else converted aggregated amountBalCCY15000

3.2 Output file for SRC_GL

It will be uploaded in SrcGLReconData table.

#FieldDescriptionColumnsExample
1formatted_as_on_dateDate of operation as passed through inputAsOnDate26-09-2023
2src_field_cdInput File nameSrcFileCdloans
3gl_typehardcoded in the codeGLTypeempty_string
4src_gl_cdIt takes gl_code from input-file using gl_cd field of required-field as key, if not found then takes the default llg code passed as input parameter.Then checks if masterfile path has been passed as input parameter, then take gl_code value from gl_master_map using previously generated gl_code as key.SrcGLCd1111
5gl_descgl description from alm file with gl_code as keyGLDescBorrowings -Loans
6src_ccycurrency type initialized in inputSrcCCYINR
7gl_amtif is_consolidated, then converted aggregated amount else aggregated amountSrcGLAmtLCY750000
8conv_data_gl_amtif is_consolidated, then aggregated amount else converted aggregated amountSrcGLAmtCCY15000

4 Output Derivation Logic

4.1 Derivtion logic for LLG_GL

  • aggr_amt :
      Aggregated on the basis of AggregatorKeys generated, which consists of llg_code, gl_code and ccy

    aggr_amt += gl_amount
  • converted aggr_amt :
       If is_consolidated is set to true, it converts the aggr_amt to base_currency type amount,
    else if is_consolidated is set to false, converted amount will be same as the original aggregated amount

4.2 Derivation logic for SRC_GL

  • gl_amt :
      Aggregated on the basis of AggregatorKeys generated, which consists of src_field_cd, gl_type, src_gl_cd, gl_desc and src_ccy

    gl_amt+ = amount
  • converted gl_amt :
       If is_consolidated is set to true, it converts the gl_amt to base_currency type and store it,
    else if is_consolidated is set to false, converted gl_amt is same as gl_amt.

5. Process configuration in streamdef table:

{
"processName": "llg_src_gl_recon_aggr_2",
"processId": "1",
"processBinary": "{SH_PROGRAMS}/llg_src_gl_recon_aggr_2_data",
"processArguments": [
"--process-config",
"${PROCESS_CONFIG}",
"--log-file",
"${LOG_FILE}",
"--diagnostics-log-file",
"${DIAGNOSTICS_FILE}",
"--consol-ccy",
"RUP",
"--is-consolidated",
"false",
"--default-llg-code",
"6666",
"--default-gl-code",
"5555",
"--as-on-date",
"30-06-2024",
"--log-level",
"trace",
"--diagnostics-flag",
"false",
"--connection-string",
"{CONN_STR}"
],
"processDependencies": [],
"processReport": "{SH_SUMMARYDATA}/IND/BALM/{ddmmyyyy}/summary-src-gl-recon-health-check-report.json",
"processType": "",
"infoLog": "{SH_LOGS}/IND/BALM/{ddmmyyyy}/summary-src-gl-recon-log.txt",
"errorLog": ""
}