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.
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 Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szWorkdayCalendar | CALN | char | NONE | NONE |
The name of the calendar, which is the description of the branch/plant, that you set up to differentiate between working days, holidays,
| ||||
jdBACProcessDate | BACD | JDEDATE | NONE | NONE |
Date for BACS processing. | ||||
cReturnValue | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnBACDaysToAdd | BACN | MATH_NUMERIC | NONE | NONE |
Number of days to add to the BACS Date to calculate the expiration date. | ||||
jdBACExpirationDate | DATE01 | JDEDATE | NONE | NONE |
Event point for JDE Date. |
B0000078 Format User Date |
F0007 Workday Calendar |