You define the interface file layout on IDIF screen.
IDIF field descriptions:
Record Number | Interface File Records generated |
---|---|
0 | Qualify Records |
1 - 29 | Header Records |
30 - 69 | Detail Records |
70 - 99 | Trailer Records or Update Records |
Record Number | Interface File Records generated |
---|---|
0 | Qualify Records |
1 - 29 | Header Records |
30 - 69 | Detail Records |
70 - 99 | Trailer Records If Record Type is specified, lexicon X_RECORD_TYPE values are: |
00 - Not Specified | Not applicable for this Interface type |
01 - Header Record | Generate Header records at begin of file |
10 - Employer Header | Not used for UPPHF |
11 - Employer Summary | Not used for UPPHF |
12 - Employer Header 2 | Not used for UPPHF |
13 - Employer Summary 2 | Not used for UPPHF |
14 - Employee Header | Not used for UPPHF |
15 - Employee Summary | Not used for UPPHF |
16 - Pay Header Begin | Generate records at beginning of each Pay Header |
17 - Pay Header Summary | Generate records at the end of each Pay Header |
20 - Detail Record | Generate Pay Header interface records |
21 - Detail Level 1 | Detail Level 1 is used for Journal Entries |
22 - Detail Level 2 | Not used for UPPHF |
23 - Detail Level 3 | Not used for UPPHF |
24 - Detail Level 4 | Not used for UPPHF |
25 - Detail Level 5 | Not used for UPPHF |
30 - Detail Summary | Not used for UPPHF |
80 - Total Record | Not used for UPPHF |
90 - Trailer Record | Generate Trailer records at end of file May contain File totals, record counts etc |
91 - Qualify Record | Should be used for Record Number 0 The Qualify records are performed at the beginning of every Pay Header to qualify the Pay Header You can use derivation expression to BYPASS certain criteria |
92 - Update Record | Should be defined at the end of the IDIF definition In non-Trial mode, the UDF can be Inserted or Updated as defined in the Variable Name and Constant Value field You can use derivation expression to BYPASS certain criteria for Update |
00 | Not Specified |
01 | Print Zero Amounts |
02 | Don't Print Zeros |
00 | Not Specified |
01 | Optional, omit tag if null |
02 | Mandatory, always write |
00 | Not Specified |
01 | Calculate Total |
The 'BYPASS' criteria can be set up for Record Type = 'Qualify record', 'Detail record', and should not be used for Header and Trailer records
If the return value of any IDIF Record Number/Field Number = 'BYPASS', then this Detail record will be bypassed and will not be written to the Interface file
Example:
When UPPHF is run with Interface Level = 'Pay Headers + Pay Lines', you may want to BYPASS the current pay line and continue to process the next pay line.
When a Pay Line (ppl) is being processed, all the associated Pay Line Details (ppld) are processed one at a time until all ppld are finished.
The following BYPASS capabilities are available at the Pay Line level:
The following GOTO capabilities are available for all Record Types in Derivation Expression:
GOTO#nn#nnn - where the 1st nn is the Record #, the 2nd nnn is the Field #
Since the IDIF entries are processed in chronological order, GOTO#nn#nnn must be for a Record# Field# that is after the current Record# Field#
If an incorrect GOTO#nn#nnn is specified, or the #nn#nnn is NOT for the same Record Type, or if it is for a previous Rec# Field#, an exception message will be issued, the GOTO statement cannot be executed after skipping the records, you must verify the Interface File from this point onward
Multiple GOTO#nn#nnn can be used within the same Record Type
Please see the above example for BYPASS-1-PPL that contains GOTO#60#1 to go to Record# 60 Field# 1
If an Invalid GOTO is encountered in IDIF definition, the Trial mode parameter is set to 'Y' in order to prevent the Updating of the User Defined Fields from the Record Type '92-Update Record'.
For XML File Format, the GOTO#nn#nnn can be used to skip certain XML Tags and carry on the processing
For Fixed File Format, if the GOTO#nn#nnn is for the current Record#, it will GOTO the specified #nn#nnn, the current Record# information will be written
For Fixed File Format, if the GOTO#nn#nnn is for a different Record#, it will GOTO the specified #nn#nnn of the different Record#, the current Record# information will NOT be written
e.g. UEEF IDIF Record# 30 Field # 45, decode Plan_Code, if it equals to 'HL GROUP LIFE', GOTO#35#10
This will skip the entire Record# 30 and carry on from Record# 35 Field#10 for the fixed file format.
UPPHF_02.JPG
On IDIF derivation expression, user can specify multiple variable names processing by indicating the lexicon value of the X_INF_VARIABLE_NAME inside the bracket , e.g. [320001]
Lexicon values available from IMLN for X_INF_VARIABLE_NAME are: 32nnnn, 35nnnn
This provides the full list of INF variables interchangeably for UPPHF, UEEF as long as the Database tables are being loaded according to the Interface Level parameter of the run
Please see example below:
Example: Record # 50, Field # 20 Requirement for Employee Row id or Unit id:
If Pay Header Group User Defined Field (UDF) 'PROJECT HOURS BY PERSON' is 'Y', this means the employee is an 'ADMIN' employee, then if the Journal Entry is reporting for 'Hours', then use the Identities eid.id on the interface file field, otherwise, use the Unit dun.id on the field for all other situation
From above IDIF set up, you should specify the Variable Name using 'UDF (DGD)' and enter the UDF name in Constant Value field, then the value of UDF will be returned and represented as in the derivation expression.
In derivation expression, enter:
decode(~,'Y',decode([320803],'02',[320009],[350400]),[350400])
where:
[320803] | Journal Type (DGA), 01 - Financial Journal, 02 - Statistical Journal |
[320009] | Identity eid_id |
[350400] | Unit dun_id (DUN) |
Example: Record # 50, Field # 10 Requirement: Work Date or Pay Period
If Pay Header Group User Defined Field (UDF) 'PROJECT HOURS BY PERSON' is 'Y', this means the employee is an 'ADMIN' employee, then use the Pay Period on the interface file field, otherwise use the GL Effective date on the interface file field
From above IDIF set up, user should specify the Variable Name using 'UDF (DGD)' and enter the UDF name in Constant Value field, then the value of UDF will be returned and represented as in the derivation expression.
In derivation expression, enter:
decode(~,'Y',[320102],to_char(to_date([320756]),'DD/MM/YYYY'))
where:
[320102] | Pay Period |
[320756] | GL Eff Date (PJD) |
This derivation expression means:
The user has ability to call some P2K internal functions in the derivation expression under the guidance of HL consultant. The following example is for UPPHF Payroll History Interface, and is used to demonstrate Derivation Expression only. In this example, the Element value of 'HOURS COMP TIME' will be returned for Variable Name 'Pay Header pph_id'.
The IDIF screen layout is revised as above, the screen prints in this section are example of Derivation Expression only and therefore are not matched with revised layout above, please ignore the layout format.UPPHF_04.JPG The above example can also be achieved by setting up Variable Name = âÂÂElement pph Valueâ with the Element Code specified in the Constant Value field.
The user has ability to call some internal functions in the derivation expression under the guidance of a consultant and pass the following internal parameters in order to perform some internal calculation:
#PPH_ID# | - must be capital letters, this #PPH_ID# will be replaced by the current Pay Header's pph.id |
#EEM_ID# | - must be capital letters, this #EEM_ID# will be replaced by the current Employment's eem.id |
#EID_ID# | - must be capital letters, this #EID_ID# will be replaced by the current Identity's eid.id |
e.g. the Element PC value of 'HOURS O/T' will be retrieved first and is represented as in derivation expression
The derivation expression will return the Element value of 'HOURS COMP TIME' for #PPH_ID# and add to value of
User may perform some internal arithmetic calculation in the derivation expression to return some prorated amount.
((Value of a PC in 'HOURS OT' element / Value of 'HOURS OT' Element)* Benefit Element 'HOURS COMP TIME')
The system provides starter_IDIF_HL$PAY-HIST-XML.sql script to load in example of a xml format interface file.
You should use (Copy Definition) to copy into a different Interface Code and then enter their own company data.
Please refer to IDIF Fixed File Format for details of field description.
The Beginning and Ending positions are not needed for xml file format.
You can call User Calc function at each Record Number, each Field Number
You should set up Variable Name = 'User Calc', and specify the User Calc name in the Constant Value field
The Field Type must be defined with Char, Number or Date, the User Calc function on IMUC screen Return Value must match the values (Char, Number or Date) with the IMUC RET command to return the corresponding Char, Number or Date
The data base tables available for User Calc are: at company level: DEN/DLN/DDP/DDD/DUN/DGR/DGD/DGV at employee level: EID/EPS/EEM/EAS/EASD/PPRU/PPRC
You can also update the File Creation Number on an Update Record indicating that variable and the derivation expression to ~ + 1
On the IDIF screen, Record Type '92-Update Record' should be defined at the end of the IDIF definition
The Variable Name should contain the UDF (xxx) that is to be updated or inserted,e.g. '320629 - UDF (PRN) (32)'
The Constant Value field should contain the name of the UDF, e.g UPPHF_CALPERS_PRN. If this UDF name does not exist on the IMUF screen, UPPHF will create the UDF with this name on IMUF screen for the Data Base Table to be updated.
The Derivation Expression field should contain the expression that is evaluated to the value to be updated for the UDF.
The following derivation expression features can be used to derive the value to be updated:
When UPPHF is run in non-Trial mode, Record Type '92-Update Record' will be processed at the appropriate levels to check if the UDF should be updated for the associated Data Base tables.
From above example:
If the UDF is for a variable name that can be varied at the Pay Line level, then the UDF will be updated at each Pay Line level, e.g. 'UDF (DDD)', each pay line may point to a different department, therefore the UDF may be updated at the Pay Line level for that department.
Using the Returned Value of the derivation expression, UPPHF finds if the UDF already exists:
List of UDF supported in UPPHF from X_INF_VARIABLE_NAME are:
After UDFs are updated or inserted in UPPHF, the number of records updated for each Data Base table will be displayed on the UPPHF report.
The number of UDFs updated represents the number of times the tables are being touched. These may not necessarily be the exact number of UDF for that table. e.g. UDF (EEM) may be touched two times if an employee has two pay headers to update the same EEM, but with a different value.A pay run's Pay Period End date or Pay Issue date must be on the day of or prior to the user specified 'As of' date.
Pay runs with a Pay Run Stage of '70 - Closed' or '80 - Journalized' will be processed.
All pay headers of the qualified pay runs will be processed, pay headers may further be selected by Department, Org Level, Unit, Group, Person code etc.
As each pay header is processed, the associated database tables for this pay header will be loaded.
The pay header is then further qualified by using the IDIF record type, 'Qualify Record'. If the 'Qualify Record' returns the value of 'BYPASS', then this pay header will be bypassed.
After the pay header is qualified, then the UPPHF Interface Level parameter is checked.
After Pay Header is qualified, UPPHF will process IDIF Record Type ’16-Pay Header Begin’ to generate Pay Header related information for this Pay Header
Then the Interface Level parameter is checked for next set of processing.
Lexicon X_INTERFACE_UPPHF values are:
01 | Pay Headers |
02 | Pay Headers + Pay Lines |
10 | Journal Entries |
Each pay header's information will be loaded.
If the IDIF numeric field specifies that an element (pph value) is to be used, then the Element code should be specified in the IDIF Constant Value field. UPPHF calls the Element function for this element to obtain the element amount.
If the IDIF numeric field specifies to 'Accumulate' and/or to 'Calculate Total', then the amount will be accumulated or totaled.
If the IDIF field specifies a sort sequence, then the Variable Name value is also used for sorting purpose. The IDIF Record Type 'Detail Record' (or Rec#30 - 69) information for this pay header will then be saved in an internal PL/SQL table.
With all the pay header information, UPPHF searches from the internal PL/SQL table to group the same information together.
If the Interface File layout specifies any field that is to be reported at the employee level, e.g. Employee Name, Pay Number etc, then UPPHF will write the internal PL/SQL table to Execution Run Log table with Trace Level = '7' with the Sort Data in the context 2 field.
If the Interface File layout does not specify any field that is to be reported at the employee level, then the internal PL/SQL internal table will be used for all employees. At the end of UPPHF run, it will write the internal PL/SQL table to Execution Run Log table with Trace Level = '7' with the Sort Data in the context 2 field. Then the Execution Run Log with Trace Level '7' will be re-read and sorted by context 2 field to write to the interface file.
If the sort sequence is not used in IDIF record type 'Detail Record' (or Rec# 30-69), then UPPHF will not write to Execution Run Log, it will directly read from the PL/SQL table and write to interface file.
After UPPHF is run, you should verify from the interface directory the Interface File layout
Each pay line's information will be loaded.
As each pay line is processed, all of its associated pay line details will be processed.
As each pay line detail is processed, the pay component and amount of this pay line detail is retrieved.
With one pay component and amount from one pay line detail, UPPHF will process IDIF record type 'Detail Record' (or Record # 30 - 69 if the record type does not exist).
The IDIF record type 'Detail Record' (or Record# 30 - 69) Variable Names can reference to the loaded pay line detail or pay header information. e.g. Pay Period, Department, Cost Centers,etc.
If the IDIF numeric field specifies to retrieve a pay component value, then the pay line detail amount will be used.
If the IDIF numeric field specifies to use an element, then the Element code is specified in the constant value and UPPHF checks if the Pay Line Detail pay component is in this element to include the pay line detail amount or not.
If the IDIF numeric field specifies to 'Accumulate' and/or to 'Calculate Total', then this Pay Line Detail amount will be accumulated or totaled.
If the IDIF field specifies a sort sequence, then the variable name result is also used for sorting purpose.
Then the IDIF record type 'Detail Record' (or Rec#30 - 69) information for this pay line detail will be saved in an internal PL/SQL table.
As the next pay line detail record is processed, UPPHF will search from the internal PL/SQL table to group the same information together.
After all pay line details and pay lines are processed for one pay header, then the pay amounts of this pay header will be processed.
As each pay amount is processed, it will subtract the amount that has been processed by the pay line details and then process the remaining amount with IDIF the record type 'Detail Record' (or Record # 30-69).
With the pay amount information, UPPHF searches from the internal PL/SQL table to group the same information together.
After all pay amounts are processed for one pay header, UPPHF will process the internal PL/SQL table and write to the interface file.
If the Interface File layout specifies any field that is to be reported at the employee level (e.g. Employee Name, Pay Number, etc.) then UPPHF will write the internal PL/SQL table to Execution Run Log table with Trace Level = '7' with the Sort Data in the context 2 field.
If the Interface File layout does not specify the field that is to be reported at the employee level, then the internal PL/SQL internal table will be used for all employees. At the end of UPPHF run, it will write the internal PL/SQL table to Execution Run Log table with Trace Level = '7' with the Sort Data in the context 2 field.
Then the execution run log with Trace Level '7' will be re-read and sorted by the context 2 field to write to the interface file.
If the sort sequence is not used in the IDIF record type 'Detail Record' (or Rec# 30-69), then UPPHF will not write to execution run log, it will directly read from PL/SQL table and write to interface file.
After UPPHF is run, you should verify the Interface File layout from the interface directory.
Record Type | Interface File Record |
---|---|
Detail Record | This is an optional field and may generate a Header record for the pay header. |
Detail Level 1 | This is a mandatory field and will generate one entry per Journal Detail record. |
In this way you may generate interface records in following sequence:
As each journal detail is processed, UPPHF saves the IDIF information using the internal PL/ SQL table in the same manner as the '01 - Pay Headers' processing. After all journal entries are processed for one pay header, UPPHF will then process the internal PL/SQL table and write to the interface file.
01 | Pay Headers |
02 | Pay Headers + Pay Lines |
10 | Journal Entries |
Before writing to the Interface File, UPPHF will process IDIF Record Type '17-Pay Header Summary' to generate pay header related summary information for this pay header.
Report Parameters | |
---|---|
From Pay Period/To Pay Period | Optional ,Date, LOV Available You may select the From and To Pay period for the Payroll code specified. |
From / To Pay Issue Date | Optional ,Date, LOV Available You may select a From and To Pay Issue date for the pay headers. If the From-To Pay Issue dates are entered, each pay header's Pay Issue date must be within this date range in order to be processed. |
As Of | Mandatory, Date, LOV Available This date is used to retrieve pay runs that are with the Pay Period end date or Pay Issue Date that is on or prior to this As Of date. |
Trial Run | Optional, Yes or No lexicon available You may indicate if the UDFs are to be updated for the UPPHF run. To run in non-Trial mode (Update mode), you should define IDIF Record Type '92-Update Record' to update UDFs. |
Interface Format Code | Optional, Text Select the Interface Format code (IDIF) that is with the Interface Type of '32-Pay History Interface' |
Interface Level | Mandatory,Interface Level lexicon available Specify the level for the Interface file to be produced. |
Directory Name | Optional, Text Enter a valid directory name for interface file. |
File Name | Optional, Text Enter the file name of the interface file. If not provided, the file name will be taken from the IDIF definition. If you use the tokens MEX or DATE or TIME these will be replaced as noted in P2K_PU.FILE_NAME. For a fixed format file, you may specify a file with extension .txt. For a comma delimited format file, you may specify a file with extension .csv For the XML file, you may specify a file with extension .XML |
Write Append to File | Mandatory,Write Append lexicon available Provides the option to write a file or append to an existing one. |
Exception Level | Optional, Exception Level lexicon available This field defines the exception level (report messages) required. If the exception level is '0', only exception messages will be printed. If the exception level is '1', one line will be printed per pay header with performance time. If the exception level is '2', one line will be printed per pay header with performance time and one line per Detail Level 1 record. If the exception level is '8' or '9', full utility trace is available only if the user selects by Person code. Otherwise UPPHF will internally reset to exception level '1' due to the volume of trace messages. |
User Comments | Optional, Text This field holds the user-supplied comment which will appear in the header of all pages of the report. This is useful during testing phases to identify similar reports from each other. |
Report Filters | |
---|---|
Entity | This is a mandatory field. You must enter one 'Entity Code' to be processed. |
Person Code | You may enter a list of 'Person Code' filters. |
Department | This is an optional field. Multiple 'Department Code' filters are allowed to be entered. |
Authorization | This is an optional field. You may enter either one or multiple 'Authorization area' filters. The authorization area is retrieved from either the pay header or pay line's assignment if authorization exists at assignment level. Otherwise it is retrieved from the position of the assignment if it exists, otherwise retrieve from the department of the assignment. |
Org Level Type | This is an optional field. You may enter either one or multiple 'Org Level Type' filters. You may enter 'Org Type 02', 'Org Type 03', etc to process applicable level types or you may enter 'Org Type 02' to process only this level. |
Org Level | This is an optional field. You may enter either one or multiple 'Org Level' filters. If multiple Org Level Types are entered, then you may process across multiple levels. |
Unit | This is an optional field. Multiple 'Unit Code' filters are allowed to be entered. |
Group | This is an optional field. Multiple 'Group Code' filters are allowed to be entered. |
Payroll | This is a mandatory field. You must enter one 'Payroll Code' to be processed. The pay headers must belong to this payroll code in order to be processed. |
Cost Center | This is an optional field. Multiple 'Cost Center Code' filters are allowed to be entered. The cost centers are retrieved from the pay lines and therefore are not applicable at the Pay Header level. |
Pay Run Number | This is an optional field. You may select a list of Pay Run numbers for the Payroll code specified. |
Screen captures are meant to be indicative of the concept being presented and may not reflect the current screen design.
If you have any comments or questions please email the Wiki Editor
All content © High Line Corporation