1.Functional Description
Calculate Activation Date
1.1Purpose
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.1Parameters:  D0800129A
Data Item Data Structure DescriptionI/ORequiredNotes
ESIDmnEmployeeSetupIDI
TSKCDmnTaskCodeI
DATE01jdActivationDateO
DATE02jdCurrentDateO
EV01cActivateNowO
DATE01jdCompletionDateO
MATH01mnErrorCodeO
AN8mnAddressNumberI
CRTNjdDateCreatedI
EFTOjdDateStartI
ARVDTjdArrivalDateI
COSmnCompletionOffsetDaysI
DURmnDurationI
BODcBasedOnDateowI
 
2.22.2Related Tables 
Table Table Description
 
 
2.3Related Business Functions
Source NameFunction Name
 
Processing :
If BF mnAddressNumber  Or BF cBaseOnDateow is not supplied
Call N0800129 - Get F087103 Record to get the Based On Date field.
If  error occurs set mnErrorCode
If No errors occured
       // ** returns 1 if a record is not found **
If mnErrorCode = 
//*** Calculate Completion Date ***
       Set jdCompletionDate = data pointed to by Base On Date
 If F087103.CompletionOffsetDays is greater than 
  Add CompletionOffsetDays to  jdCompletionDate 
       End If
//*** Calculate Activation Date ***
       If F087103.mnDuration is greater than 
  Set jdActivationDate =  jdCompletionDate + 
       Else
         Set jdActivationDate = BF jdCompletionDate + (F087103.mnDuration * -1)
       End If
//*** Determine if the Activation Date has arrived ***
     Set jdCurrentDate = date_today( )  /* Return Value */
       If  jdCurrentDate is greater than or equal to  jdActivationDate
         cActivateNow = "1"
       Else
        cActivateNow = "0"
      End If
End If
^
D0800129A - Calculate Activation Date
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| mnEmployeeSetupID | ESID | MATH_NUMERIC | REQ | INPUT | 
A code that represents the unique identifier for an employee setup record.  | ||||
| mnTaskCode | TSKCD | MATH_NUMERIC | REQ | INPUT | 
A number that uniquely identifies the task. The system generates this number using next numbers.  | ||||
| jdActivationDate | DATE01 | JDEDATE | OPT | OUTPUT | 
Event point for JDE Date.  | ||||
| jdCurrentDate | DATE02 | JDEDATE | OPT | OUTPUT | 
Event point for JDE Date.  | ||||
| cActivateNow | EV01 | char | OPT | OUTPUT | 
An option that specifies the type of processing for an event.  | ||||
| jdCompletionDate | DATE01 | JDEDATE | OPT | NONE | 
Event point for JDE Date.  | ||||
| mnErrorCode | MATH01 | MATH_NUMERIC | OPT | NONE | 
- - - Good Performance Low Value.  | ||||
| jdDateCreated9 | CRTN | JDEDATE | OPT | NONE | 
The date that the Employee Setup record was created. If the Activation Date field contains a C, the system uses this date to calculate the 
  | ||||
| jdDateStart | EFTO | JDEDATE | OPT | NONE | 
A future date when all changes will take effect or the date when the changes went into effect. If you do not enter a date in this field, the system 
  | ||||
| jdArrivalDate | ARVDT | JDEDATE | OPT | NONE | 
The date the employee arrives at the employee's desk. Setup tasks for the employee setup can be based on this date or based on the 
  | ||||
| mnDuration | DUR | MATH_NUMERIC | OPT | NONE | 
A value that specifies how long the setup task will take. The system also uses this value to calculate the task start date.  | ||||
| mnCompletionOffsetDays | COS | MATH_NUMERIC | OPT | NONE | 
The date that the setup task must be completed. The system uses this date as an offset to the date referenced by the task control date. 
  | ||||
| cBaseOnDateow | BOD | char | OPT | NONE | 
A user defined code (08/BO) that will specify which date you use to calculate the completion date of the setup task.  | ||||
| mnAddressNumber | AN8 | MATH_NUMERIC | OPT | NONE | 
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
  | ||||
| None | 
| None |