Table of Contents

KVSPSAHR Cockpit

Fields

Name Type Note
Employee No. Code[20]
Type Option OptionMembers: New,Update
Salesperson Code Code[20]
Abbreviation Code[10]
County Text[30]
First Name Text[50]
Last Name Text[50]
Gender Enum Employee Gender
Address Text[100]
Post Code Code[20]
City Text[30]
E-Mail Business Text[80]
E-Mail Private Text[80]
Country/Region Code Code[10]
Address 2 Text[50]
Emplymt. Contract Code Code[10]
Phone No. Business Text[30]
Phone No. Private Text[30]
Mobile Phone No. Text[30]
Birth Date Date
Employment Date Date
Job Title Text[30]
Trainee Boolean
Project Manager Boolean
No. Series Code[20]
Show in Planning Board Boolean
Create Resource Boolean
Create SalesPerson Boolean
Last Collect User Code[50]
Last Collect Date Date
Last Update Code[50]
Last Update Date Date
Direct Unit Cost Decimal
Unit Price Decimal
Social Security No. Text[30]
Authentication Email O365 Text[250]
Base Calendar Code Code[10]
Base Calendar PSA Code Code[10]
Useable in Sales Boolean
Resource Group No. Code[20]
External Boolean
Use Purch. Inv. Ledger Boolean
Record Creation Date Date
Record Creation UserID Code[50]
Employee Creation Date Date
Employee Creation UserID Code[50]
Employee Posting Group Code[20]
Status Enum Employee Status
Inactive Date Date
Cause of Inactivity Code Code[10]
Termination Date Date
Grounds for Term. Code Code[10]
Blocked Boolean
Gen. Prod. Posting Group Code[20]
Working Hour Template Code[10]
Create Capacity Boolean
Starting Date Capacity Date
Ending Date Capacity Date
Product Commission Code Code[10]
User ID Code[50]
Resource No. Code[20]
Time Inspector Code[20]
Substitute Time Inspector Code[20]
Create Invoice Suggestion Name Boolean
Break Time Setting Code[20]

Procedures

CheckField(Integer, Enum KVSPSAHRCockpitTypeOfFieldCheck) :

Summary: This procedure checks the specified field in the record based on the type of check.

procedure CheckField(FieldNo: Integer; TypeOfCheck: Enum "KVSPSAHRCockpitTypeOfFieldCheck"): 

Parameters:

  • FieldNo: Integer representing the field number to check.
  • TypeOfCheck: Enum representing the type of check to perform.

ConfirmConnectionLoss() : Boolean

Summary: This procedure confirms if the user wants to continue with the operation despite potential connection loss.

procedure ConfirmConnectionLoss(): Boolean

Returns: Return result of confirmation.

CopyDefaultDim(Integer, Code[20], Integer, Code[20]) :

Summary: This procedure copies default dimensions from one record to another.

procedure CopyDefaultDim(SourceTable: Integer; SourceNo: Code[20]; TargetTable: Integer; TargetNo: Code[20]): 

Parameters:

  • SourceTable: Integer representing the source table ID.
  • SourceNo: Code representing the source record number.
  • TargetTable: Integer representing the target table ID.
  • TargetNo: Code representing the target record number.

FillGlobalDims(Code[20], Code[20]) :

Summary: This procedure set value of GlobDim1Code and GlobDim2Code based on the global dimension codes from the General Ledger Setup and some conditions.

procedure FillGlobalDims(var GlobDim1Code: Code[20]; var GlobDim2Code: Code[20]): 

Parameters:

  • GlobDim1Code: Code pass to store the value of Global Dimension 1 Code.
  • GlobDim2Code: Code pass to store the value of Global Dimension 2 Code.

GetFullName(Integer) : Text

Summary: This procedure return full name of the employee based with length depend on MaxLength parameter.

procedure GetFullName(MaxLength: Integer): Text

Parameters:

  • MaxLength: Integer representing the maximum length of the returned name.

Returns: Text representing the full name of the employee.

IsNameChangeValid(Text, Text, Text) : Boolean

Summary: This procedure checks if a name change is valid by comparing the existing name with the new name.

procedure IsNameChangeValid(ExistingNameText: Text; NewName: Text; ComparedToTableCaption: Text): Boolean

Parameters:

  • ExistingNameText: Text representing the existing name.
  • NewName: Text representing the new name.
  • ComparedToTableCaption: Text used for show in confirmation dialog.

Returns: Return result if the name is valid or not.

SetSkipConfirmationOnInsert(Boolean) :

Summary: This procedure sets value of GlobalSkipConfirmationOnInsert.

procedure SetSkipConfirmationOnInsert(NewSkipConfirmationOnInsert: Boolean): 

Parameters:

  • NewSkipConfirmationOnInsert: Boolean representing the new value to set for GlobalSkipConfirmationOnInsert.

ShowShortcutDimCode(Code[20]) :

Summary: This procedure retrieves Shortcut Dimension from General Ledger Setup to provide array.

procedure ShowShortcutDimCode(var ShortcutDimCode: Code[20]): 

Parameters:

  • ShortcutDimCode: Array used for storing the shortcut dimension codes.

TransferData() :

Summary: This procedure transfers data from the "KVSPSAHR Cockpit" table to the relevant tables.

procedure TransferData(): 

Events

KVSPSAOnAfterCopyDefaultDim(Integer, Code[20], Integer, Code[20]) :

Summary: Integration event raised after copying default dimensions.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCopyDefaultDim(SourceTable: Integer; SourceNo: Code[20]; TargetTable: Integer; TargetNo: Code[20]): 

Parameters:

  • SourceTable: The source table ID
  • SourceNo: The source record number
  • TargetTable: The target table ID
  • TargetNo: The target record number

KVSPSAOnAfterCreatedButNotDeletedRecords(Record KVSPSAHR Cockpit) :

Summary: Integration event raised after creating records that were not deleted during HR Cockpit processing.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCreatedButNotDeletedRecords(var HRCockpit: Record "KVSPSAHR Cockpit"): 

Parameters:

  • HRCockpit: The HR Cockpit record

KVSPSAOnAfterInsertDimensionValueRecord(Record KVSPSAHR Cockpit, Record Default Dimension) :

Summary: Integration event raised after inserting a dimension value record.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterInsertDimensionValueRecord(var HRCockpit: Record "KVSPSAHR Cockpit"; DefaultDimension: Record "Default Dimension"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • DefaultDimension: The default dimension record that was inserted

KVSPSAOnBeforeCheckField(Record KVSPSAHR Cockpit, Integer, Enum KVSPSAHRCockpitTypeOfFieldCheck, Boolean) :

Summary: Integration event raised before checking a field value in HR Cockpit.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckField(HRCockpit: Record "KVSPSAHR Cockpit"; FieldNo: Integer; var HRCockpitTypeOfFieldCheck: Enum "KVSPSAHRCockpitTypeOfFieldCheck"; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • FieldNo: The field number being checked
  • HRCockpitTypeOfFieldCheck: The type of field check to perform
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeCheckNecessaryFields(Record KVSPSAHR Cockpit, Boolean) :

Summary: Integration event raised before checking necessary fields in HR Cockpit.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckNecessaryFields(var HRCockpit: Record "KVSPSAHR Cockpit"; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeConfirmAfterSuccessfulTransfer(Record KVSPSAHR Cockpit, Boolean, Boolean) :

Summary: Integration event raised before confirming after a successful transfer.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeConfirmAfterSuccessfulTransfer(var HRCockpit: Record "KVSPSAHR Cockpit"; var Confirmed: Boolean; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Confirmed: Indicates whether the action was confirmed
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeConfirmConnectionLos(Record KVSPSAHR Cockpit, Boolean, Boolean) :

Summary: Integration event raised before confirming connection loss.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeConfirmConnectionLos(var HRCockpit: Record "KVSPSAHR Cockpit"; var Confirmed: Boolean; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Confirmed: Indicates whether the action was confirmed
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeConfirmStartUpdate(Record KVSPSAHR Cockpit, Boolean, Boolean) :

Summary: Integration event raised before confirming to start an update.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeConfirmStartUpdate(var HRCockpit: Record "KVSPSAHR Cockpit"; var StartUpdate: Boolean; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • StartUpdate: Indicates whether to start the update
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeCreateSalesPersonOnUpsertSalesPerson(Record KVSPSAHR Cockpit, Record Salesperson/Purchaser) :

Summary: Integration event raised before creating a salesperson during upsert salesperson operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCreateSalesPersonOnUpsertSalesPerson(var HRCockpit: Record "KVSPSAHR Cockpit"; var SalespersonPurchaser: Record "Salesperson/Purchaser"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • SalespersonPurchaser: The salesperson/purchaser record

KVSPSAOnBeforeIsNameChangeValid(Record KVSPSAHR Cockpit, Text, Text, Text, Boolean, Boolean) :

Summary: Integration event raised before validating if a name change is valid.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeIsNameChangeValid(var HRCockpit: Record "KVSPSAHR Cockpit"; ExistingNameText: Text; NewName: Text; ComparedToTableCaption: Text; var NameChangeOk: Boolean; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • ExistingNameText: The existing name text
  • NewName: The new name to validate
  • ComparedToTableCaption: The caption of the table being compared to
  • NameChangeOk: Indicates whether the name change is valid
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeTestResName(Record KVSPSAHR Cockpit, Boolean, Boolean) :

Summary: Integration event raised before testing the resource name.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeTestResName(var HRCockpit: Record "KVSPSAHR Cockpit"; var NameChangeOk: Boolean; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • NameChangeOk: Indicates whether the name change is valid
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeTestSPName(Record KVSPSAHR Cockpit, Boolean, Boolean) :

Summary: Integration event raised before testing the salesperson name.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeTestSPName(var HRCockpit: Record "KVSPSAHR Cockpit"; var NameChangeOk: Boolean; var IsHandled: Boolean): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • NameChangeOk: Indicates whether the name change is valid
  • IsHandled: Set to true if the event handler has handled the operation

KVSPSAOnBeforeUpdateUser(Record KVSPSAHR Cockpit, Boolean) :

Summary: Event to be used to handle the update of the user ID. If the user ID is changed, the authentication email is updated.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateUser(HRCockpit: Record "KVSPSAHR Cockpit"; var IsHandled: Boolean): 

Parameters:

  • HRCockpit:
  • IsHandled:

KVSPSAOnBeforeUpsertTables(Record KVSPSAHR Cockpit, Record KVSPSAHR Cockpit Setup) :

Summary: Integration event raised before upserting data to related tables.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpsertTables(var HRCockpit: Record "KVSPSAHR Cockpit"; var HRCockpitSetup: Record "KVSPSAHR Cockpit Setup"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • HRCockpitSetup: The HR Cockpit Setup record

KVSPSAOnCheckEmployeeDimension(Record KVSPSAHR Cockpit) :

Summary: Integration event raised when checking employee dimension validity.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCheckEmployeeDimension(var HRCockpit: Record "KVSPSAHR Cockpit"): 

Parameters:

  • HRCockpit: The HR Cockpit record

KVSPSAOnCheckNecessaryFields(Record KVSPSAHR Cockpit) :

Summary: Integration event raised when checking necessary fields.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCheckNecessaryFields(var HRCockpit: Record "KVSPSAHR Cockpit"): 

Parameters:

  • HRCockpit: The HR Cockpit record

KVSPSAOnFillFieldsFromEmployee(Record KVSPSAHR Cockpit, Record Employee) :

Summary: Integration event raised when filling fields from employee record.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnFillFieldsFromEmployee(var HRCockpit: Record "KVSPSAHR Cockpit"; Employee: Record "Employee"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Employee: The employee record to copy from

KVSPSAOnFillFieldsFromResource(Record KVSPSAHR Cockpit, Record Resource) :

Summary: Integration event raised when filling fields from resource record.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnFillFieldsFromResource(var HRCockpit: Record "KVSPSAHR Cockpit"; Resource: Record "Resource"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Resource: The resource record to copy from

KVSPSAOnInitExistingEmployee(Record KVSPSAHR Cockpit, Record KVSPSAHR Cockpit Setup) :

Summary: Integration event raised when initializing an existing employee.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnInitExistingEmployee(var HRCockpit: Record "KVSPSAHR Cockpit"; var HRCockpitSetup: Record "KVSPSAHR Cockpit Setup"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • HRCockpitSetup: The HR Cockpit Setup record

KVSPSAOnInitNewEmployee(Record KVSPSAHR Cockpit, Record KVSPSAHR Cockpit Setup) :

Summary: Integration event raised when initializing a new employee.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnInitNewEmployee(var HRCockpit: Record "KVSPSAHR Cockpit"; var HRCockpitSetup: Record "KVSPSAHR Cockpit Setup"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • HRCockpitSetup: The HR Cockpit Setup record

KVSPSAOnUnhandledTypeOfCheck(Record KVSPSAHR Cockpit, Integer, Enum KVSPSAHRCockpitTypeOfFieldCheck) :

Summary: Integration event raised when an unhandled type of field check is encountered.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUnhandledTypeOfCheck(HRCockpit: Record "KVSPSAHR Cockpit"; FieldNo: Integer; HRCockpitTypeOfFieldCheck: Enum "KVSPSAHRCockpitTypeOfFieldCheck"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • FieldNo: The field number being checked
  • HRCockpitTypeOfFieldCheck: The type of field check being performed

KVSPSAOnUpsertData(Record KVSPSAHR Cockpit, Record Employee) :

Summary: Integration event raised during upsert data operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertData(var HRCockpit: Record "KVSPSAHR Cockpit"; Employee: Record "Employee"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Employee: The employee record

KVSPSAOnUpsertDataAfterCommit(Record KVSPSAHR Cockpit, Record Employee) :

Summary: Integration event raised after committing upsert data operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertDataAfterCommit(var HRCockpit: Record "KVSPSAHR Cockpit"; Employee: Record "Employee"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Employee: The employee record

KVSPSAOnUpsertEmployeeAfterModifyEmployee(Record KVSPSAHR Cockpit, Record Employee) :

Summary: Integration event raised after modifying employee during upsert employee operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertEmployeeAfterModifyEmployee(var HRCockpit: Record "KVSPSAHR Cockpit"; var Employee: Record "Employee"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Employee: The employee record

KVSPSAOnUpsertEmployeeBeforeModifyEmployee(Record KVSPSAHR Cockpit, Record Employee) :

Summary: Integration event raised before modifying employee during upsert employee operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertEmployeeBeforeModifyEmployee(var HRCockpit: Record "KVSPSAHR Cockpit"; var Employee: Record "Employee"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Employee: The employee record

KVSPSAOnUpsertResourceAfterModifyResource(Record KVSPSAHR Cockpit, Record Resource) :

Summary: Integration event raised after modifying resource during upsert resource operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertResourceAfterModifyResource(var HRCockpit: Record "KVSPSAHR Cockpit"; var Resource: Record "Resource"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Resource: The resource record

KVSPSAOnUpsertResourceBeforeModifyResource(Record KVSPSAHR Cockpit, Record Resource) :

Summary: Integration event raised before modifying resource during upsert resource operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertResourceBeforeModifyResource(var HRCockpit: Record "KVSPSAHR Cockpit"; var Resource: Record "Resource"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • Resource: The resource record

KVSPSAOnUpsertSalesPersonAfterModifySalesPerson(Record KVSPSAHR Cockpit, Record Salesperson/Purchaser) :

Summary: Integration event raised after modifying salesperson during upsert salesperson operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertSalesPersonAfterModifySalesPerson(var HRCockpit: Record "KVSPSAHR Cockpit"; var SalespersonPurchaser: Record "Salesperson/Purchaser"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • SalespersonPurchaser: The salesperson/purchaser record

KVSPSAOnUpsertSalesPersonBeforeModifySalesPerson(Record KVSPSAHR Cockpit, Record Salesperson/Purchaser) :

Summary: Integration event raised before modifying salesperson during upsert salesperson operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertSalesPersonBeforeModifySalesPerson(var HRCockpit: Record "KVSPSAHR Cockpit"; var SalespersonPurchaser: Record "Salesperson/Purchaser"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • SalespersonPurchaser: The salesperson/purchaser record

KVSPSAOnUpsertUserSetupAfterModifySetup(Record KVSPSAHR Cockpit, Record User Setup) :

Summary: Integration event raised after modifying user setup during upsert user setup operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertUserSetupAfterModifySetup(var HRCockpit: Record "KVSPSAHR Cockpit"; var UserSetup: Record "User Setup"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • UserSetup: The user setup record

KVSPSAOnUpsertUserSetupBeforeModifySetup(Record KVSPSAHR Cockpit, Record User Setup) :

Summary: Integration event raised before modifying user setup during upsert user setup operation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpsertUserSetupBeforeModifySetup(var HRCockpit: Record "KVSPSAHR Cockpit"; var UserSetup: Record "User Setup"): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • UserSetup: The user setup record

KVSPSAOnValidateShortcutDimCodeBeforeModifyRecord(Record KVSPSAHR Cockpit, Integer, Code[20]) :

Summary: Integration event raised before modifying record when validating shortcut dimension code.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnValidateShortcutDimCodeBeforeModifyRecord(var HRCockpit: Record "KVSPSAHR Cockpit"; FieldNumber: Integer; var ShortcutDimCode: Code[20]): 

Parameters:

  • HRCockpit: The HR Cockpit record
  • FieldNumber: The field number of the shortcut dimension
  • ShortcutDimCode: The shortcut dimension code