IsDateAWorkDate

Is Date A Work Date

Minor Business Rule

Object Name: B0000149

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

This function serves to determine whether the date that has been entered is actually a work date 
according to the work day calendar.

This business function is always called from the X03021 business function.


Setup Notes and Prerequisites

None


Special Logic

None



Technical Specification




Parameters

ItemDescriptionI/OReq?Notes

DATE01jdDate IYThe date to be checked 
To see if it is a work 

Day.

MMCUszCostCenter IYThe cost center 

associated with the 

Document containing the 
Date.

EV01cWorkDayFlag OYReturns a '1' if the 

Date is a work day 

According to the work 

Day calendar, and a '0' 

If not.


Related Tables

F0007Work Day Calendar


Related Functions

None

Processing

Open F0007 table

If unsuccessful 

Set idReturnCode = '1'
Else

Fetch F0007 work day calendar record for the given branch, year and month.
If fetch is successful

Load jdDate,szCostCenter 

Copy the calendar data from the F0007 record into the data 
Structure to return to the appl.

If lpcTypeOfDay = 'W'

cWorkDayFlag = '1'
Else

CWorkDayFlag = '0'

Return idReturnCode = '0'



Data Structure

D0000149 - Is Date A Work Date

Parameter NameData ItemData TypeReq/OptI/O/Both
jdDateDATE01JDEDATENONEINPUT

Event point for JDE Date.

szCostCenterMMCUcharNONEINPUT

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

cWorkDayFlagEV01charNONEOUTPUT

An option that specifies the type of processing for an event.

cShiftCodeSHFTcharOPTINPUT

A user defined code (00/SH) that identifies daily work shifts. In payroll systems, you can use a shift code to add a percentage or amount to 
the hourly rate on a timecard. For payroll and time entry: If an employee always works a shift for which a shift rate differential is applicable, 
enter that shift code on the employee's master record. When you enter the shift on the employee's master record, you do not need to enter the 
code on the timecard when you enter time. If an employee occasionally works a different shift, you enter the shift code on each applicable 
timecard to override the default value.

szWorkDayCalendarTypeWDCTcharOPTINPUT

A user defined code (42/WD) that specifies how the calendar is used. For example, the calendar might be specific to an industry such as 
banking or it might be used to schedule delivery persons for a route.  Note: If you use the default value of *, the system updates the value to 
blank even though blank is not set up as a valid value in the UDC table.

szWorkDayCalendarKeyWDCKcharOPTINPUT

A code used to classify values within a calendar type. For example, if the calendar type is ROUTE, you can enter a code that specifies a 
particular route, such as Daily or Weekend.  Note: The system does not validate the code that you enter. 

Related Functions

None

Related Tables

F0007 Workday Calendar