F0007GetDayOfTheWeek

F0007 Get Day of Week

Minor Business Rule

Object Name: B1700690

Parent DLL: CCRIN

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This business function is to retrieve the day of the week and type of day from F0007 for the date 

passed in.


1.2Setup Notes and Prerequisites

The Work Day calendar must be set up for the business unit, year, and month passed in through the 

data structure.


Parameter values

Day of Week 0 = Sunday

1 = Monday

2 = Tuesday

3 = Wednesday

4 = Thursday

5 = Friday

6 = Saturday

Data Structure

D1700690 - F0007 Get Day of the Week

Parameter NameData ItemData TypeReq/OptI/O/Both
szBranchMMCUcharREQINPUT

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.

jdDateUPMJJDEDATEREQINPUT

The date that specifies the last update to the file record.

nDayOfWeekINT01integerREQOUTPUT

Number of Days in Future to Query for Responses Due. 

cTypeOfDayTD01charREQOUTPUT

A code to indicate the type of day. Valid values are:    W Work Day    E Weekend    H Holiday 

cSuppressErrorMessagesEV01charOPTNONE

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

szErrorCodeDTAIcharOPTNONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cErrorCodeFlagEV01charOPTNONE

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

szWorkDayCalendarTypeWDCTcharOPTNONE

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.

szWorkDayCalendarKeyWDCKcharOPTNONE

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. 

cShiftCodeSHFTcharOPTNONE

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.

Related Functions

None

Related Tables

F0007 Workday Calendar