ExistanceAndDeleteJobCompDesc

Determine Existence And Delete Job Competency Description

Minor Business Rule

Object Name: B0800158

Parent DLL: CHRM

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of this business function is to delete a job competency description and its media objects, or simply determine if the job competency 
description exists based on the parameters passed to it.  

• The existence of a job competency description can be determined for a particular organizational 
structure or for a particular job competency.   

• A job competency description can be deleted from a particular organizational structure or from a 
particular job competency.  

The function requires User Defined Competency Description, Unique Key ID, Language Preference, and an Action Code. 

If the Action Code is equal to '1', this business function will determine if a job competency description exists and returns a '1' in the Status Code 

parameter if it does exist, else it returns a '0' if the description does not exist.  If the Action Code is a '2', this business function will delete a job competency 

description and returns a '1' in the Status Code if the description was deleted successfully, else it returns a '0' if the delete was unsuccessful.


Setup Notes and Prerequisites


Special Logic




Technical Specification


1.If the Action Code is equal to '1'  Does Job Competency Description Exist:
1.1.To determine if a job competency description exists for a specific Job Competency this function must receive Job Competency Code (JCC), 
User Defined Competency Description (USDD), Unique Key ID (UKID), Language Preference (LNPG) and Action Code (CACTN).  A '1' will be 

returned in the Status Code if the job competency description exists or a '0' will be returned if the job competency description does not exists.

1.2.To determine if a job competency description exists in an organizational structure this function must receive, Organizational Structure 

(OTPS), Job Competency Code (JCC), User Defined Competency Description (USDD), Unique Key ID (UKID), Language Preference (LNPG) and 

Action Code (CACTN).  A '1' will be returned in the Status Code if the job competency description exists or a '0' will be returned if the job competency 

description does not exists.


2.If the Action Code is equal to '2'  Delete Job Competency Description:

2.1.To delete a job competency description for a particular job competency this function must receive Job Competency Code (JCC), User 
Defined Competency Description (USDD), Unique Key ID (UKID), Language Preference (LNPG) and Action Code (CACTN). A '1' will be returned in 

the Status Code if the Delete Job Competency Description completed successfully or a '0' will be returned if Copy Job Competency Description 

completed unsuccessfully.

2.2.To delete a job competency description from a particular organizational structure this function must receive Organizational Structure 

(OTPS), Job Competency Code (JCC), User Defined Competency Description (USDD), Unique Key ID (UKID), Language Preference (LNPG) and Action 

Code (CACTN). A '1' will be returned in the Status Code if the Delete Job Competency Description completed successfully or a '0' will be 

returned if Copy Job Competency Description completed unsuccessfully.


Data Structure

D0800158 - Determine Existance/Delete Job Competency Existance

Parameter NameData ItemData TypeReq/OptI/O/Both
szOrganizationTypeOTPScharOPTINPUT

A user-defined code (00/TS) that identifies the type of organization structure, such as financial or responsibility. Each type of organization 
structure can have a separate hierarchy.  

szUserDefinedCompetencyDesUSDDcharOPTINPUT

User Defined Competency Descriptions are attached to a job competency to assist the end user in understanding and/or working with job 
competencies. There can be a number of different job competency descriptions for a single job competency. For example, there could be a 
description for Employees, a description for Managers, and a description for HR professionals.

mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTINPUT

This field is a unique number used to identify a record in a file.

szJobCompetencyCodeJCCcharOPTINPUT

A code that uniquely identifies each job competency. Competencies are high-level human attributes that help an employee achieve the 
goals and objectives of the company. These competencies are also the foundation of an employee's job and job description.

szLanguagePreferenceLNGPcharOPTINPUT

A user defined code (01/LP) that specifies the language to use on forms and printed reports. Before you specify a language, a code for that 
language must exist at either the system level or in your user preferences.

szCacheActionCodeCACTNcharREQINPUT

1 = Media Object Exists
2 = Delete Media Object

cStatusCodeEV01charOPTOUTPUT


Related Functions

None

Related Tables

F00165 Media Objects storage