GenerateDefaultCalendar

Generate Default WC Calendar

Major Business Rule

Object Name: B3001370

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This program generates a default work day calendar for P00071 - Work Day Calendarby using the 
beginning and ending offsets of the given month.


1.2Setup Notes and Prerequisites

None.

1.3Special Logic
None.

2.Technical Specifications


2.4Processing 
This function checks the F0007 table for existing calendars for the passed month,  yea,  
Branch/Plant, Calendar Type and Calendar Key. If none are found, a default is generated consisting of eight hours 

of work available on workdays, and weekends designated as having no work available.

Data Structure

D3001370 - Generate Default WC Calendar

Parameter NameData ItemData TypeReq/OptI/O/Both
mnStartingOffsetMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

mnEndingOffsetMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

cWorkDay01EV01charNONENONE

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

cWorkDay02EV01charNONENONE

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

cWorkDay03EV01charNONENONE

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

cWorkDay04EV01charNONENONE

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

cWorkDay05EV01charNONENONE

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

cWorkDay06EV01charNONENONE

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

cWorkDay07EV01charNONENONE

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

cWorkDay08EV01charNONENONE

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

cWorkDay09EV01charNONENONE

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

cWorkDay10EV01charNONENONE

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

cWorkDay11EV01charNONENONE

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

cWorkDay12EV01charNONENONE

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

cWorkDay13EV01charNONENONE

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

cWorkDay14EV01charNONENONE

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

cWorkDay15EV01charNONENONE

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

cWorkDay16EV01charNONENONE

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

cWorkDay17EV01charNONENONE

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

cWorkDay18EV01charNONENONE

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

cWorkDay19EV01charNONENONE

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

cWorkDay20EV01charNONENONE

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

cWorkDay21EV01charNONENONE

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

cWorkDay22EV01charNONENONE

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

cWorkDay23EV01charNONENONE

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

cWorkDay24EV01charNONENONE

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

cWorkDay25EV01charNONENONE

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

cWorkDay26EV01charNONENONE

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

cWorkDay27EV01charNONENONE

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

cWorkDay28EV01charNONENONE

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

cWorkDay29EV01charNONENONE

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

cWorkDay30EV01charNONENONE

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

cWorkDay31EV01charNONENONE

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

cWorkDay32EV01charNONENONE

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

cWorkDay33EV01charNONENONE

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

cWorkDay34EV01charNONENONE

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

cWorkDay35EV01charNONENONE

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

cWorkDay36EV01charNONENONE

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

cWorkDay37EV01charNONENONE

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

szBranchMMCUcharNONENONE

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.

mnCalendarMonthMTMATH_NUMERICNONENONE

A number that corresponds to the month in a calendar year. 

mnCalendarYearYRMATH_NUMERICNONENONE

The calendar year for this calendar.

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. 

Related Functions

None

Related Tables

F0007 Workday Calendar