CalculateBACWorkday

F0007 Calculate BAC Workday

Minor Business Rule

Object Name: B03B0140

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose


The purpose of the F0007 Calculate BAC Workday business function is to determine whether the BAC 
Processing date is valid (meaning it falls on a workday).  



Setup Notes and Prerequisites


This function is used in R03B571.

Special Logic




Technical Specification





Parameters:


Data Item Data Structure DescriptionI/OReq     Notes
CALNWorkday CalendarIY

BACDBAC Processing DateIY

EV01Return ValueO  Returns 'E' if date is  

 invalid


Related Tables 


F0007Work Day Calendar


Related Business Functions

B0000078Format User Date

Processing


The function accepts two parameters - Workday Calendar and BAC Processing Date, and returns  
one character value.  A return value equal to 'E' means that the BAC Processing Date was invalid;  

anything other than an 'E' means the BAC Processing Date was valid. 


This function accepts the BAC Processing Date and Workday Calendar.  It calls an external function, 

Format User Date, to scrub the BAC Processing Date into day, month and year values.  After determining 

the day, month and year, the function is able to read the Work Day calendar (F0007) to determine 

whether the actual date falls on a workday.  If the date is invalid - meaning it does not fall on a workday 

or the date is simply invalid, such as 2/30/97- a value of 'E' is returned via the cReturnValue 

field.





Data Structure

D03B0140 - DS for F0007 Calculate BAC Workday

Parameters:

Data Item Data Structure DescriptionI/OReq     Notes
CALNWorkday CalendarIY

BACDBAC Processing DateIY

EV01Return ValueO  Returns 'E' if date is invalid

BACNBAC  Number of Days To AddI

DATE01BAC Expiration Date           O  


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szWorkdayCalendarCALNcharNONENONE

The name of the calendar, which is the description of the branch/plant, that you set up to differentiate between working days, holidays, 
weekends, and so forth. The calendar name that you specify must exist in the Workday Calendar table (F0007). The system uses the calendar in 
conjunction with the work day rule specified to determine the due date if the system calculates it on a weekend or holiday. 

jdBACProcessDateBACDJDEDATENONENONE

Date for BACS processing.

cReturnValueEV01charNONENONE

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

mnBACDaysToAddBACNMATH_NUMERICNONENONE

Number of days to add to the BACS Date to calculate the expiration date.

jdBACExpirationDateDATE01JDEDATENONENONE

Event point for JDE Date.

Related Functions

B0000078 Format User Date

Related Tables

F0007 Workday Calendar