F0007ProcessMasterData

Shop Floor Calender - Master Business Function

Minor Business Rule

Object Name: N000700

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description
1.1Purpose


This business function is designed as a Master Business function to control all Additions, Deletions, 

Changes and Inquiries to the Shop Floor Calendar.  It will also inquire on a Shop Floor Calendar 

record.  


1.2Setup Notes and Prerequisites

1.3Special Logic


If the data structure field TYTN is greater than blank, outbound interoperability transactions are 

written to F30006Z1.


2.Technical Specifications

2.4Processing 



2.4.1 Preprocessing


If Action Code is not equal to  'A' 

AND Action Code is not equal to  'C'

AND Action Code is not equal to 'D'

AND Action Code is not equal to  'I'

AND Action Code is not eqaul to 'S'

Set error '0001'

Call Get Audit Information(B9800100):

User Id<User Name
Date Updated <Date

Time of Day<Time

Work Station Id<Workstation User Id


Program Id = Program Id


2.4.2 Additions / Copies


If Action Code is equal to 'A' or 'S'

Verify add action is valid.  Attempt to fetch the F0007 record using CTRY, MT, YR, MMCU and 
SHFT as keys.  If it already exists, set error message 0001.

If add action is valid:

F0007 Data Dictionary Validation (B000700):
Pass all fields in data structure (see BF spec in this file)

If validation succeeds:
Insert F0007 record with CTRY, MT, YR, MMCU and SHFT, WDCT, WDCK as key.

   Interoperability:
   If szTransactionType-parm is greater than blank:
1. EDI Batch Number, Get Next Number (N4700060):      
VA evt_szBatchNumber <- szEdiBatchNumber

Get Next Transaction Number (B0000175):      

"JDEWDC" -> szTransactionType      

VA evt_szUserID_USER -> szUserId

                 VA evt_szBatchNumber -> szBatchNumber

                 VA evt_szTransactionNumber <- szTransactionNumber

                 "1" -> cSuppressErrorMessage

2.Insert an outbound Add (Action code = A) transaction to the Calendar Transaction 
File (F0007Z1).  If the insert was not successful, set error "0002".

3. Add Transaction To Subsystem Queue (B0000176):            
"R00460" -> szUBEName            

"ZJDE0001" -> szVersion            

VA evt_szUserID_USER -> szUserId

                  VA evt_szBatchNumber -> szBatchNumber

                  VA evt_szTransactionNumber -> szTransactionNumber

                  "1" -> cSuppressErrorMessage

                  VA evt_mnLineNumber -> mnLineNumber

                  "JDEWC" -> szTransactionType

                  "" -> szDocumentType

VA evt_szActionCode -> szTransactionAction

2.4.3 Changes


If Action Code is equal to 'C'

Verify change action is valid.  Attempt to fetch the F0007 record using CTRY, MT, YR, MMCU and 
SHFT, WDCT, WDCK as keys.  If it does not already exist, set error message 0001.

If change action is valid:

F0007 Data Dictionary Validation (B000700):
Pass all fields in data structure (see BF spec in this file)

If validation succeeds:
Update F0007 record with CTRY, MT, YR, MMCU and SHFT, WDCT, WDCK as key.

   Interoperability:
   If szTransactionType-parm is greater than blank:
1. EDI Batch Number, Get Next Number (N4700060):      
VA evt_szBatchNumber <- szEdiBatchNumber

Get Next Transaction Number (B0000175):      

"JDEWDC" -> szTransactionType      

VA evt_szUserID_USER -> szUserId

                 VA evt_szBatchNumber -> szBatchNumber

                 VA evt_szTransactionNumber <- szTransactionNumber

                 "1" -> cSuppressErrorMessage

2.Insert an outbound Update After (Action code = UA) transaction to the Calendar 
Transaction File (F0007Z1).  If the insert was not successful, set error "0002".

3.If WriteBeforeImages is equal to '1', write an outbound Update Before (Action Code 

= UB) transaction to the Work Center Transaction File (F0007Z1). If the insert was not 

successful, set error "0002".

4. Add Transaction To Subsystem Queue (B0000176):            
"R00460" -> szUBEName            

"ZJDE0001" -> szVersion            

VA evt_szUserID_USER -> szUserId

                  VA evt_szBatchNumber -> szBatchNumber

                  VA evt_szTransactionNumber -> szTransactionNumber

                  "1" -> cSuppressErrorMessage

                  VA evt_mnLineNumber -> mnLineNumber

                  "JDEWC" -> szTransactionType

                  "" -> szDocumentType

VA evt_szActionCode -> szTransactionAction

2.4.4 Deletes


If Action Code is equal to 'D'

Verify delete action is valid.  Attempt to fetch the F0007 record using CTRY, MT, YR, MMCU and 
SHFT, WDCT, WDCK as keys.  If it does not already exist, set error message 0001.

Delete F0007 record with CTRY, MT, YR, MMCU and SHFT, WDCT, WDCK as key.

   Interoperability:
   If szTransactionType-parm is greater than blank:
1. EDI Batch Number, Get Next Number (N4700060):      
VA evt_szBatchNumber <- szEdiBatchNumber

Get Next Transaction Number (B0000175):      

"JDEWDC" -> szTransactionType      

VA evt_szUserID_USER -> szUserId

                 VA evt_szBatchNumber -> szBatchNumber

                 VA evt_szTransactionNumber <- szTransactionNumber

                 "1" -> cSuppressErrorMessage

2. Insert an outbound Delete (Action code = D) transaction to the Calendar Transaction 
File (F0007Z1).  If the insert was not successful, set error "0002".

3. Add Transaction To Subsystem Queue (B0000176):            

"R00460" -> szUBEName            

"ZJDE0001" -> szVersion            

VA evt_szUserID_USER -> szUserId

                  VA evt_szBatchNumber -> szBatchNumber

                  VA evt_szTransactionNumber -> szTransactionNumber

                  "1" -> cSuppressErrorMessage

                  VA evt_mnLineNumber -> mnLineNumber

                  "JDEWC" -> szTransactionType

                  "" -> szDocumentType

VA evt_szActionCode -> szTransactionAction

2.4.5 Inquiries


If Action Code is equal to  'I'

Fetch F0007 with CTRY, MT, YR, MMCU and SHFT, WDCT, WDCK as key
If fetch fails Set error message "0001"


Data Structure

D000700A - Shop Floor Calender - Data Structure

Data Item Data Structure DescriptionI/ORequiredNotes
ACTN                        Action Code             IY              A  Add

                                                                                                                 C  Change 

                                                                                                                 D  Delete           

                                                                                                                  I  Inquire 

                                                                                                                  S  Copy

SUPPS                 SuppressErrorMessagesIN             1  Error Messages                                                                                                                                

                                                                                                                                                                                                                                                                                

                   Suppressed

DTAI                   ErrorMessageIDONError Message ID

PID                             ProgramIDINCurrent program name


Application Specific Control Parameters:

CTRY                     CenturyI/OYCentury as 2 digit number Primary key 
MTMonth - Calendar MonthI/OYMonth as 2 digit number Primary key 

YRYear - Calendar YearI/OYYear as 2 digit number Primary key 

MMCU        Branch/PlantI/OYPrimary key field

SHFT                      ShiftI/OYPrimary key field

CTRY            Copy CenturyINRequired for S action code.

MT            Copy Month  INRequired for S action code.  

YR                Copy Year INRequired for S action code. 

MMCUCopy Branch/PlantINRequired for S action code. 

SHFT          Copy ShiftINRequired for S action code. 

TYTN Transaction TypeINProcessing option from "WorkDay Calander Revisions" (P00071); used to determine if outbound 

processing should be performed.  If left blank, transactions will not be written to the Work Center Unedited Transaction tables.

VERS                    VersionINNot currently used.

EV01Write Before ImagesINInteroperability Flag: 

                                                                                               Blank = After Images only

                                                                                               1 = Before and After Images


Application Parameters:

TD01Day - Type 01I/ONCalendar field (F0007)
TD02Day - Type 02I/ONCalendar field (F0007)

TD03Day - Type 03I/ONCalendar field (F0007)

TD04Day - Type 04I/ONCalendar field (F0007)

TD05Day - Type 05I/ONCalendar field (F0007)

TD06Day - Type 06I/ONCalendar field (F0007)

TD07Day - Type 07I/ONCalendar field (F0007)

TD08Day - Type 08I/ONCalendar field (F0007)

TD09Day - Type 09I/ONCalendar field (F0007)

TD10Day - Type 10I/ONCalendar field (F0007)

TD11Day - Type 11I/ONCalendar field (F0007)

TD12Day - Type 12I/ONCalendar field (F0007)

TD13Day - Type 13I/ONCalendar field (F0007)

TD14Day - Type 14I/ONCalendar field (F0007)

TD15Day - Type 15I/ONCalendar field (F0007)

TD16Day - Type 16I/ONCalendar field (F0007)

TD17Day - Type 17I/ONCalendar field (F0007)

TD18Day - Type 18I/ONCalendar field (F0007)

TD19Day - Type 19I/ONCalendar field (F0007)

TD20Day - Type 20I/ONCalendar field (F0007)

TD21Day - Type 21I/ONCalendar field (F0007)

TD22Day - Type 22I/ONCalendar field (F0007)

TD23Day - Type 23I/ONCalendar field (F0007)

TD24Day - Type 24I/ONCalendar field (F0007)

TD25Day - Type 25I/ONCalendar field (F0007)

TD26Day - Type 26I/ONCalendar field (F0007)

TD27Day - Type 27I/ONCalendar field (F0007)

TD28Day - Type 28I/ONCalendar field (F0007)

TD29Day - Type 29I/ONCalendar field (F0007)

TD30Day - Type 30I/ONCalendar field (F0007)

TD31Day - Type 31I/ONCalendar field (F0007)


^

Parameter NameData ItemData TypeReq/OptI/O/Both
cActionCode2ACTNcharOPTNONE

A code that specifies the action that is performed. Valid values are: A Add C Change

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharOPTNONE

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.

szProgramIdPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

mnCenturyCTRYMATH_NUMERICOPTNONE

The calendar century associated with the year. Enter is the first two digits of the year. For example, 19 indicates any year beginning with 19 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

mnCalendarYearYRMATH_NUMERICOPTNONE

The calendar year for this calendar.

mnCalendarMonthMTMATH_NUMERICOPTNONE

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

szCostCenterAltMMCUcharOPTNONE

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.

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.

mnCentury_2CTRYMATH_NUMERICOPTNONE

The calendar century associated with the year. Enter is the first two digits of the year. For example, 19 indicates any year beginning with 19 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

mnCalendarYear_2YRMATH_NUMERICOPTNONE

The calendar year for this calendar.

mnCalendarMonth_2MTMATH_NUMERICOPTNONE

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

szCostCenterAlt_2MMCUcharOPTNONE

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.

cShiftCode_2SHFTcharOPTNONE

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.

szTypeTransactionTYTNcharOPTNONE

The qualifier used to identify a specific type of transaction.

szVersionVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cTypeDay001TD01charOPTNONE

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

cTypeDay002TD02charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay003TD03charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay004TD04charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay005TD05charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay006TD06charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay007TD07charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay008TD08charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay009TD09charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay010TD10charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay011TD11charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay012TD12charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay013TD13charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay014TD14charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay015TD15charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay016TD16charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay017TD17charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay018TD18charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay019TD19charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay020TD20charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay021TD21charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay022TD22charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay023TD23charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay024TD24charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay025TD25charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay026TD26charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay027TD27charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay028TD28charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay029TD29charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay030TD30charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cTypeDay031TD31charOPTNONE

This indicates the type of day.  The possible day types are as follows:    W Work Day    E Weekend    H Holiday 

cWriteBeforeImagesEV01charOPTNONE

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. 

Related Functions

None

Related Tables

None