RSPDEPA.TXT File

This file allows you change candidate data to employee data, when the candidate is hired by the company and he/she becomes an employee. This file must be in \"\system\\" directory, conforming system set up.

It is mandatory to fill in this file with:

80 positions, where:
the first 40 positions are used to filling in Candidates (SQG) table fields;
and the other 40 positions are used to filling in the Employees Registry (SRA) fields.

 

This procedure allows you to transfer the data informed in candidate curriculum to employees registry. This way, you will not have to redo the data registry.

To perform it properly, you have to follow some procedures during RSPDEPA.TXT file setup. Here you may link the fields of the candidate resume to employee registering.

Now see an example to transfer \"candidate name\" to \"employee name\":

40 positions

40 positions

SQG->QG_NOME

Field that stores candidate name

SRA->RA_NOME

Field that stores employee name

To fields as \"visual\" or \"virtual\" (that were manually created and that often request description of some key fields), you have to inform the content of standard initializer of the field \"virtual\" or \"visual\" type.

Example:

Indicate the manually created field as QG_DESCC (it stores the candidate cost center), now transfer this field to employees table (SRA), in the RA_DESCC field, that stores employee cost center:

Field Created Manually

Standard initializer content

SQG->QG_DESCC

FDESC(\"CTT\",SQG->QG_CC,\"CTT_DESC01\")

SQG->QG_DESFUNC

FDESC(\"SRJ\",SQG->QG_FUNCAO,\"RJ_DESC\")

In format RSPDEPA.TXT:

40 positions

40 positions

FDESC(\"CTT\",SQG->QG_CC,\"CTT_DESC01\")

M->RA_DESCC

FDESC(\"SRJ\",SQG->QG_FUNCAO,\"RJ_DESC\")

M->RA_DESFUNC

 

Note:

To update Employee Registry fields, when employee is hired, you have to customize this file.

Example:

In RSPDEPA.TXT, inform the function that will update Employee Registry memory variable.

U_DescCC()                    M->RA_DESCCC

Perfom the following Userfunction, according to the example:

#Include \"Protheus.ch\"

User Function DescCC()    

Local aSaveArea := GetArea()

Local cDescCC := \"\"

cDescCC:= FDESC(\"CTT\",SQG->QG_CC,\"CTT_DESC01\")

RestArea(aSaveArea)

Return cDescCC