MAJW

Use this entry point to modify the "Work" event code that fills the slots in the employees' time entry. This "Work" event code corresponds to the GTPSW global variable, which is associated with the TRAVAIL parameter. Use this entry point to modify the value of the GTPSW variable, in order to fill the times with another event.

Context and operating mode

In the context of the entry point :

  • There is no current transaction

Log file

A log file can be open, if the processing is called by the "Time cut-off" or "Employee values" functions. The GTRACE variable must be tested. If GTRACE<> » » a log file is opened , otherwise GTRACE= » ».

Different call cases

This processing is called from the following functions:

  • Time cut-off, if the "Automatic generation" box is checked.
  • Time entry, via the "Auto generation" button.
  • Employee values, via the "Control" button if the "Automatic time generation" box is checked.

At any rate, this entry point is used to take over before the processing updates the employee times.

Available variables and masks

The GTPSW variable is initialized. The entry point is used to modify its value.

Variable or mask 

  Definition

Char()  MATRI

Employee's ID number

Date DATPAY

Pay date

Date DATDEB

 Payroll period start date

Date DATFIN

Payroll period end date

Integer MODULATION

1 if the employee is in smoothing, 0 otherwise

Open tables

Table 

 Significant
Content

Table Title 

FACILITY [FCY]

Yes

Site (current record = employee's site)

COMPANY [CPY]

Yes

Company (current record = employee's company)

TIMCOD [TIM]

Yes

Event (current record = GTPSW)

EMPLOPAY [PAY]

No

Employee's payroll information

EMPLOCPT [CPT]

No

Employee's accounting information

EMPLOAD [AD]

No 

Employee's administrative information

EMPLOCUM [EPC]

No

Employee totals

EMPLOID [ID]

No 

Employee's civil status

EMPLOCTR [CTR]

No 

Employee's employment contract

EMPLOENT [ENT]

No 

Employee arrival/departure

EMPLOEXM [EXM]

No

Employee's degrees

EMPLOCHD [CHD]

No 

Employee's children

EMPLOMED [MED]

No

Employee's medical examinations

EMPLOTRY [TRY]

No

Professional experience

EMPLOPRO [PRO]

No

Employee's professional status

EMPLORIB [RIB]

No

Employee's bank ID

EMPLOSAL [SAL]

No

Employee's salary evolution

PERIOD [PEO]

No

Extraction periods

HLYDAY [HLY]

No

Public holidays

TIMEMP [TIP]

No

Employee working times

TIMANA [TIA]

No

Analytical times

TIMEMPDAT [TID]

No

Last WI/sickness date

PLANTYP [PLN]

No

Reference plannings

PLANEMPLO [PLP]

No

Employee's planning

WEEKTYP [WTY]

No

Reference weeks

SERVICE [SRV]

No

Departments

PROFIL [PRF]

No

User profiles

POPULA [POA]

No

Employee populations

TIMREGUL [TIG]

No

Time adjustments

ADOVAL [ADW]

No

Parameter values

ACCESS [ACC] 

No

Access

AUTILIS [AUS]

No

User

MAJTPS

In automatic generation of times, use this entry point to modify the TIMEMP file that contains the time entry by employee. This entry point is called after the valuation of the employee's planning and before the update of the TIMEMP file.

Context and operating mode

In the context of the entry point :

  • There is no current transaction

Log file

A log file can be open, if the processing is called by the "Time cut-off" or "Employee values" functions. The GTRACE variable must be tested. If GTRACE<> » » a log file is opened , otherwise GTRACE= » ».

Different call cases

This processing is called from the following functions:

  • Time cut-off, if the "Automatic generation" box is checked.
  • Time entry, via the "Auto generation" button.
  • Employee values, via the "Control" button if the "Automatic time generation" box is checked.

At any rate, this entry point is used to take over before the processing updates the employee times.

Available variables and masks

The following variables are sized according to the number of days covered by the pay period. The umpteenth element of a variable corresponds to the umpteenth day of the period. These variables are updated before the entry point, according to the employee's planning.

  • MAXSEM=12: Maximum number of weeks covered by a period
  • PHEURE(1..7*MAXSEM): Number of hours assigned to the event
  • PJOUR(1..7*MAXSEM): Number of days assigned to the event
  • PJNUIT(1..7*MAXSEM): Local menu 402 Type of work
  • PRE(1..7*MAXSEM): 1 if the employee is currently in the company. 0 if they are no longer in the company
  • EVT(1..7*MAXSEM): 1 if an event is entered in the TIMEMP file for the day concerned. 0 if no event is assigned to the day concerned.

The TRTREM processing populates the time entry days that do not have an event and updates the TIMEMP file. In the entry point, you can update the TIMEMP file by assigning a day with no event, that is to say by filling a slot in the time entry. However it is necessary to set the EVT variable to 1 to prevent the standard processing from overwriting the modification. In addition, it is necessary that each added event is entered on a single day (start date = end date).

Variable or mask 

  Definition

Char()  MATRI

Employee's ID number

Date DATPAY

Pay date

Date DATDEB

 Payroll period start date

Date DATFIN

Payroll period end date

Integer MODULATION

1 if the employee is in smoothing, 0 otherwise

Open tables

Table 

 Significant
Content

Table Title 

FACILITY [FCY]

Yes

Site (current record = employee's site)

COMPANY [CPY]

Yes

Company (current record = employee's company)

TIMCOD [TIM]

Yes

Event (current record = GTPSW)

EMPLOPAY [PAY]

No

Employee's payroll information

EMPLOCPT [CPT]

No

Employee's accounting information

EMPLOAD [AD]

No 

Employee's administrative information

EMPLOCUM [EPC]

No

Employee totals

EMPLOID [ID]

No 

Employee's civil status

EMPLOCTR [CTR]

No 

Employee's employment contract

EMPLOENT [ENT]

No 

Employee arrival/departure

EMPLOEXM [EXM]

No

Employee's degrees

EMPLOCHD [CHD]

No 

Employee's children

EMPLOMED [MED]

No

Employee's medical examinations

EMPLOTRY [TRY]

No

Professional experience

EMPLOPRO [PRO]

No

Employee's professional status

EMPLORIB [RIB]

No

Employee's bank ID

EMPLOSAL [SAL]

No

Employee's salary evolution

PERIOD [PEO]

No

Extraction periods

HLYDAY [HLY]

No

Public holidays

TIMEMP [TIP]

No

Employee working times

TIMANA [TIA]

No

Analytical times

TIMEMPDAT [TID]

No

Last WI/sickness date

PLANTYP [PLN]

No

Reference plannings

PLANEMPLO [PLP]

No

Employee's planning

WEEKTYP [WTY]

No

Reference weeks

SERVICE [SRV]

No

Departments

PROFIL [PRF]

No

User profiles

POPULA [POA]

No

Employee population

TIMREGUL [TIG]

No

Time adjustments

ADOVAL [ADW]

No

Parameter values

ACCESS [ACC] 

No

Access

AUTILIS [AUS]

No

User

Miscellaneous notes

The GTPSW global variable, which contains the "W" standard work code, is used in certain processings. For example:

  • To find the employee's last worked day when filling in a sickness certificate.
  • To fill in the time summary panel. The number of "W" hours worked is searched for to evaluate the number of additional hours.
  • To generate the analytical distribution of a payslip, when this distribution is based on the "W" time entry.

MAJCALTPS: Updating the times following the update of the TIMEMP file

In automatic generation of times, use this entry point to modify the TIMEMP file that contains the time entry by employee, while taking into account the setup of the event included in the GTPSW global variable. This entry point is called after the valuation of the employee's planning and after the update of the TIMEMP file for the days without event.

Context and operating method

In the context of the entry point :

  • There is no current transaction

Log file

A log file can be open, if the processing is called by the "Time cut-off" or "Employee values" functions. The GTRACE variable must be tested. If GTRACE<> » » a log file is opened , otherwise GTRACE= » ».

Different call cases

This processing is called from the following functions:

  • Time cut-off, if the "Automatic generation" box is checked.
  • Time entry, via the "Auto generation" button.
  • Employee values, via the "Control" button if the "Automatic time generation" box is checked.

At any rate, this entry point is used to take over once the processing has updated the employees' times.

Available variables and masks

The following variables are sized according to the number of days covered by the pay period. The umpteenth element of a variable corresponds to the umpteenth day of the period.

  • MAXSEM=12: Maximum number of weeks covered by a period
  • PHEURE(1..7*MAXSEM): Number of hours assigned to the event
  • PJOUR(1..7*MAXSEM): Number of days assigned to the event
  • PJNUIT(1..7*MAXSEM): Local menu 402 Type of work
  • PRE(1..7*MAXSEM): 1 if the employee is currently in the company. 0 if they are no longer in the company
  • EVT(1..7*MAXSEM): 1 if an event is entered in the TIMEMP file for the day concerned. 0 if no event is assigned to the day concerned.

The TRTREM processing populates the time entry days that do not have an event and updates the TIMEMP file. In the entry point, you can update the TIMEMP file by assigning a day with no event, that is to say by filling a slot in the time entry. However it is necessary to set the EVT variable to 1 to prevent the standard processing from overwriting the modification. In addition, it is necessary that each added event is entered on a single day (start date = end date).

Variable or mask 

  Definition

Char()  MATRI

Employee's ID number

Date DATPAY

Pay date

Date DATDEB

 Payroll period start date

Date DATFIN

Payroll period end date

Integer MODULATION

1 if the employee is in smoothing, 0 otherwise

Open tables

Table 

 Significant
Content

Table Title 

FACILITY [FCY]

Yes

Site (current record = employee's site)

COMPANY [CPY]

Yes

Company (current record = employee's company)

TIMCOD [TIM]

Yes

Event (current record = GTPSW)

EMPLOPAY [PAY]

No

Employee's payroll information

EMPLOCPT [CPT]

No

Employee's accounting information

EMPLOAD [AD]

No 

Employee's administrative information

EMPLOCUM [EPC]

No

Employee totals

EMPLOID [ID]

No 

Employee's civil status

EMPLOCTR [CTR]

No 

Employee's employment contract

EMPLOENT [ENT]

No 

Employee arrival/departure

EMPLOEXM [EXM]

No

Employee's degrees

EMPLOCHD [CHD]

No 

Employee's children

EMPLOMED [MED]

No

Employee's medical examinations

EMPLOTRY [TRY]

No

Professional experience

EMPLOPRO [PRO]

No

Employee's professional status

EMPLORIB [RIB]

No

Employee's bank ID

EMPLOSAL [SAL]

No

Employee's salary evolution

PERIOD [PEO]

No

Extraction periods

HLYDAY [HLY]

No

Public holidays

TIMEMP [TIP]

No

Employee working times

TIMANA [TIA]

No

Analytical times

TIMEMPDAT [TID]

No

Last WI/sickness date

PLANTYP [PLN]

No

Reference plannings

PLANEMPLO [PLP]

No

Employee's planning

WEEKTYP [WTY]

No

Reference weeks

SERVICE [SRV]

No

Departments

PROFIL [PRF]

No

User profiles

POPULA [POA]

No

Employee populations

TIMREGUL [TIG]

No

Time adjustments

ADOVAL [ADW]

No

Parameter values

ACCESS [ACC] 

No

Access

AUTILIS [AUS]

No

User

TR1BEFWRITIP and TR2BEFWRITIP

Use this entry point to modify the values of "LIG" in the table TIMEMP and also add a value to the specific field "CCE" if it is empty.