LECSITE: Modification of the site

This entry point is called for each period of activity (S40 structure) to be imported.

The associated site is searched by period of activity according to the tax ID number of the company, defined in the N4DS file to be imported.

This allows you to modify how this site is searched if the tax ID number is not relevant (dummy sites).

Context and operating method

Transaction

There is a transaction in progress

Log file

A log file is open.

Different call cases

This entry point is called during the DADS-U import if the Start check box is selected.

The information of the employee contract is stored in the EMPLOCTR table, defined under the abbreviation [DAE].

The new site should be read on the FACILITY table defined under the abbreviation [FCY].

 

Available variables and masks

 

Variable or mask

Definition

Integer I

I=0 => associated site found / I=1 => associated site unknown

The variable I needs to be positioned correctly in the entry point:
- by returning 0 when the correct site is found;
- by returning 1 when no site has been found.

Open tables

In the table below, the significant content flag indicates that the content matches the context (the employee and the contract are currently imported).

Table

Significant content

Table title

EMPLOCTR [CTR] 

No

Employee contracts

EMPLOCTR [DAE]

Yes

Employee contracts 

EMPLOID [ID]

No

Employees

FACILITY [FCY]

Yes

Site

AREPORTM [ARM]

Yes

Temporary print key table

AREPORTM [ARM2]

Yes

Temporary print key table 

ATMPTRA [ATT]

Yes

Temporary trace file

ATMPTRA [ATT2]

Yes

Temporary trace file