FCYODPCHARGE: Updating specific fields in table ODPAY

Use this entry point to manage the update of specific fields when creating records in ODPAY.

Context and operating method

Call context

This entry point is called during the MO calculation. It is called each time a time line is created to manage the specific fields of the ODPAY table. It is also called during transfer from the TMPODPAY table.

Available variables and masks

Class [M] of the Payroll MO calculation screen.

Open tables

FACILITY [FCY]
COMPANY [CPY]
VALEMP [VEP]
HISTOPAYE [HSP]
VALANA [VAN]
RUBRIQUE [RUB]
EMPLOCPT [CPT]
TMPODPAY [TOD]
TMPODPAYA [TOA]
ODPAYE [ODE]
ODPAY [ODP]
ODPAYA [ODA]
ACODNUM [ANM]
POPULA [POA]
EMPLOCTRCPT [CPR]
RUBGAC [RGA]

*The following tables are also available. However, the tables can be opened in the ERP depending on the GTABCPT global variable.

GACCOUNT [GAC]
GLED [LED]

ACCOUNT: Accounting account modification

Use this entry point to modify the accounting accounts (general and analytical) linked to the heading during the MO calculation. These accounts are saved in the ODPAY file.

ACCOUNT: Context and operating method

Transaction

There is a transaction in progress.

Log file

A log file is normally open (it can depend on the context).

Different call cases

The COMPTE entry point is called when creating the payroll MO. It is called each time the heading of a processed salary slip is distributed at accounting level. The entry point is used to create the required (general and analytical) accounting distributions for the salary slip heading in the TMPODPAY [TOD] table.

Available variables and masks

The list of accounting distributions for the processed heading is based on a selection and then a grouping of accounts linked to the account core model (ledgers, general and analytical charts of accounts) of the impacted company.

The variables used for the MO line creation are:

CODLED(TYPGEN): code of the company general ledger
CODLED(TYPANA): code of the company analytical ledger

The number of distributions to be processed for the heading is stored in the [L]NBLIG variable.
For each line of the list, the index is the WRGA variable.
The following variables are populated:

[L]ACC1(WRGA: account of the general chart of accounts
[L]COA1(WRGA: code of the general chart of accounts

[L]ACC2(WRGA): account of the analytical chart 
[L]COA2(WRGA): code of the analytical chart
[L]SNS(WRGA): sign

You can assign another value to these variables to modify the accounts associated with the heading.

The following variables are also available:

[L]TYPAMT(WRGA): amount type
[L]DETEMP(WRGA): detail/employee
[L]CNDRGA(WRGA): application condition

Open tables

Table 

 Significant
content

Table title 

RUBRIQUE [RUB]

Yes

Heading

HISTOPAYE [HSP]

Yes

Payroll history

VALEMP [VEP]

Yes

Payslip

TMPODPAY [TOD]

Yes

 Payroll MO lines

RUBGAC [RGA]

Yes

 Accounts on headings

CRITERE_ODPAY: Add specific criteria to VALEMP table filter.

Use this entry point to add your specific criteria to the existing criteria and modify the MO generation.

Context and operating method

Call context

The CRITERE variable contains the standard filters. The new CRITERE2 variable has been created to include the specific criteria. Use this entry point to complement the CRITERE2 variable (its default value is: ‘1 =1') and modify the filter applied to the VALEMP table.

Available variables and masks

Classes [M] on line:

  • ODPAY [DIA]

Classes [F] on line:

  • COMPANY [CPY]
  • FACILITY [FCY]
  • POPUL [POP]
  • PROFIL [PRF]
  • SERVICE [SRV]

YRECAL: Modify tables after OD updates.

Use this entry point to modify created records or update other tables further to MO management.

Context and operating method

Call context

This entry point is located outside the transaction.

Available variables and masks

Classes [M] on line:

  • ODPAY [DIA]

Classes [F] on line:

  • COMPANY [CPY]
  • EMPLOAD [AD]
  • EMPLOCHD [CHD]
  • EMPLOCPT [CPT]
  • EMPLOCTR [CTR]
  • EMPLOCTRCPT [CPR]
  • EMPLOCTREMP [CTE]
  • EMPLOCTRPEN [CPN]
  • EMPLOCUM [EPC]
  • EMPLODIRNUM [EDM]
  • EMPLOELC [ELC]
  • EMPLOEXM [EXM]
  • EMPLOEXN [EXN]
  • EMPLOHAB [HAB]
  • EMPLOID [ID]
  • EMPLOITM [HRITM]
  • EMPLOJNT [JNT]
  • EMPLOMED [MED]
  • EMPLOPAR [PAR]
  • EMPLOPOT [EPO]
  • EMPLORIB [RIB]
  • EMPLOSAL [SAL]
  • EMPLOTRY [TRY]
  • FACILITY [FCY]
  • GACCOUNT [GAC]
  • GACM [GCM]
  • GLED [LED]
  • HISTOPAYE [HSP]
  • ODPAY [ODP]
  • ODPAYA [ODA]
  • ODPAYE [ODE]
  • POPUL [POP]
  • POPULA [POA]
  • PROFIL [PRF]
  • RUBGAC [RGA]
  • RUBRIQUE [RUB]
  • SERVICE [SRV]
  • TMPODPAY [TOD]
  • TMPODPAYA [TOA]
  • VALANA [VAN]
  • VALEMP [VEP] or [LNK1]


EPTMPODPAY: Feed specific fields into TMPODPAY

Use this entry point to feed specific fields into the TMPODPAY table.

Context and operating method

Call context

This entry point is located right before the loading of the standard fields of the TMPODPAY table.

Available variables and masks

Classes [M] on line:

  • ODPAY [DIA]

Classes [F] on line:

  • COMPANY [CPY]
  • EMPLOAD [AD]
  • EMPLOCHD [CHD]
  • EMPLOCPT [CPT]
  • EMPLOCTR [CTR]
  • EMPLOCTRCPT [CPR]
  • EMPLOCTREMP [CTE]
  • EMPLOCTRPEN [CPN]
  • EMPLOCUM [EPC]
  • EMPLODIRNUM [EDM]
  • EMPLOELC [ELC]
  • EMPLOEXM [EXM]
  • EMPLOEXN [EXN]
  • EMPLOHAB [HAB]
  • EMPLOID [ID]
  • EMPLOITM [HRITM]
  • EMPLOJNT [JNT]
  • EMPLOMED [MED]
  • EMPLOPAR [PAR]
  • EMPLOPOT [EPO]
  • EMPLORIB [RIB]
  • EMPLOSAL [SAL]
  • EMPLOTRY [TRY]
  • FACILITY [FCY]
  • GACCOUNT [GAC]
  • GACM [GCM]
  • GLED [LED]
  • HISTOPAYE [HSP]
  • ODPAY [ODP]
  • ODPAYA [ODA]
  • ODPAYE [ODE]
  • POPUL [POP]
  • POPULA [POA]
  • PROFIL [PRF]
  • RUBGAC [RGA]
  • RUBRIQUE [RUB]
  • SERVICE [SRV]
  • TMPODPAY [TOD]
  • TMPODPAYA [TOA]
  • VALANA [VAN]
  • VALEMP [VEP] or [LNK1]