ActivateEmployeeSetupTask

Activate Employee Setup Tasks

Minor Business Rule

Object Name: N0800123

Parent DLL: CHRM

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This NER is used to create the work order, send the email message, start the workflow process and send the report router application. It will also update 
the status of the F08711 record.



1.2Setup Notes and Prerequisites


1.3Special Logic




2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
ESIDmnEmployeeSetupIDI

TSKCDmnTaskCodeI

MATH01mnErrorCodeO

COszCompanyI

MCUszCostCenterI

DRQJjdDateRequestedJulianI

DOCOmnWorkOrderCreatedO

ALPHszNameAlphaI

TSKSTSszTaskStatusI

AN8mnEmployeeAddressNumberI

DOCOmnDocumentOrderTemplateI

VERSszVersionsI


2.2Related Tables 

Table Table Description



2.3Related Business Functions

Source NameFunction Name


Processing 


1.Read the following tables:

F08710.Fetch Single

F08711.Fetch Single

F087102.Fetch Single

2.If  EndingStatus returned from F087102 is blank, Set it equal to '9'.


3.Call B0800137 (Get P08710 Processing Options)

4.If the MailBox return from B0800137 is blank, Set equal to "01".


5.If the Status returned from F08710 or F08711 is <  "A" 

If  Status of F08711 is < "A"
      Set VA evt_F08711NewStatus_A201 = VA evt_F08710Status_A201

Else

      Set 
VA evt_F08711NewStatus_A201 = VA evt_Ending_Status_F087102
End If


 If  WorkOrder from F08711 is not equal to 

     Call N0800133 - "Employee Setup Work Order Creation" 

To update the Work Order status to FinalWoStatus read in step 3.

 End If

 Set BF mnErrorCode = "1"

Else
6.If the Setup Process is not waiting for Approval Or the current task is the process approval task

Call N0800129 - Check For Location Fields
7. If Don't Need Location Information

8. Call N0800128 - Get F087103 Record

9. If WorkOrder from F087103 is not equal to 

If WorkOrder from F08711 is not equal to 
Else
              If VA evt_Use_WO_Description is equal to "1"
                  VA evt_Description_Temp = VA evt_Description_F087102

              Else

                  VA evt_Description_Temp = " "
              End If

  If WorkOrder passed in is less than or equal to 
                  Set BF mnDocumentOrderTemplate = VA evt_Work_Order_F087103

End If
Call
 N0800133 - "Employee Setup Work Order Creation" to insert the new WO.
Call N0800138 - "Create F4802 Records

Update F08711 with: DateUpdate, UserID, ProgramID, NewWorkOrder

End If
Else 
End If  
 /*end of step 9 */
10. Call N0800129 - "Calculate Activation Date"

11. If Time to Activate Task

If ProcessName from F087103 is not equal to 
Call B0800118 - "Start Employee Setup Task Wf"
End If
If ObjectName from F087103 is not equal to 

Send Message
Send to Mail Box retrieved in Step 3
Recipient is ANR retrieved from F087103 in Step 1

Attach applications P08710B.

End If
If
 SendEmail from F087103 is equal to "Y"
Call N0800139 - "Send Setup Email Message"
End If
If
 WorkOrder from F08711 is not equal to 
Call N0800133 - "Employee Setup Work Order Creation" 
to update status to ActiveStatusWo retrieve in step 3.
End If
Set
 VA evt_F08711NewStatus_A201 = "A"
Else
Set VA evt_F08711NewStatus_A201 = "W"
End If  /* end of step 11 */
      Else
Set VA evt_F08711NewStatus_A201 = "WI"
      End If  /* end of step 7*/
Else

      Set 
VA evt_F08711NewStatus_A201 = "W"
End If  /* end of step 6*/

End If  /* end of step 5*/


If
 VA evt_F08711NewStatus_A201 is not equal to VA evt_F08711Status_A201
     Update F08711 with: ProgramID, DateUpdated, UserID, VA evt_F08711NewStatus_A201

End If

Set
 BF szTaskStatus = VA evt_F08711NewStatus_A201  /* Return Value */


^

Data Structure

D0800123 - Activate Employee Setup Task

Parameter NameData ItemData TypeReq/OptI/O/Both
mnEmployeeSetupIDESIDMATH_NUMERICREQINPUT

A code that represents the unique identifier for an employee setup record.

mnTaskCodeTSKCDMATH_NUMERICREQINPUT

A number that uniquely identifies the task. The system generates this number using next numbers.

mnErrorCodeMATH01MATH_NUMERICOPTBOTH

- - - Good Performance Low Value. 

szCompanyCOcharOPTBOTH

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szCostCenterMCUcharOPTBOTH

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

jdDateRequestedJulianDRQJJDEDATEOPTBOTH

The date that an item is scheduled to arrive or that an action is scheduled for completion.

mnWorkOrderCreatedDOCOMATH_NUMERICOPTBOTH

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szTaskStatusTSKSTScharOPTBOTH

A code that represents the current status of the employee setup process. Several of the statuses are hard coded. Changing hard-coded 
statuses typically triggers a specific event.

szNameAlphaALPHcharOPTBOTH

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

mnEmployeeAddressNumberAN8MATH_NUMERICOPTBOTH

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnDocumentOrderTemplateDOCOMATH_NUMERICOPTBOTH

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szVersionVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

GenericJDEUTimeValueGENUTIMEINVALID ITEM DATA TYPE: 55OPTBOTH

Generic JDE UTime Value

Related Functions

None

Related Tables

None