1.Functional Description
1.1Purpose
This function is used to create/delete records in F43213 based on shipment pattern defined in
Shipment Pattern Revisions (P43212).
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
cDaysArray[32] =
cSaveDaysArray[32] =
cShipDay[7] =
cShipWeek[6] =
jdWeekPattern[6] = [0
jdDate = 0
jdCurrentDate = 0
jdSaveCurrentDate = 0
nDay = 1
nMonth = Month.EFFF
nYear = Year.EFFF
nBegin = Day.EFFF
nI = Day.EFFF
jdCurrentDate = EFFF
jdDate.nYear = nYear
jdDate.nMonth = nMonth
jdDate.nDay = nDay
I3401440_GetWorkDayCalendar
If All WorkDay is selected
If cAllWorkDay = '1'
For i = 1 to 7
cShipDay[i] = '1'
End For
Endif
If a specific day is selected
If cSunday = '1'
.
.
If cSaturday = '1'
If a specific week is selected
If cWeek1 = '1'
.
.
If cWeek5 = '1'
nDayOfWeek = ' '
I3401440_DeleteF43213Records
If Day Of the Month is selected
If cSelection2_EV15 = '1'
If DOM >= 1 and DOM <= 31
nI = DOM
nDay = nI
If nI < Day.EFFF
If nMonth = 12
nMonth = 1
nYear = nYear + 1
else
nMonth = nMonth + 1
End
I3401440_GetWorkDayCalendar
End
nSaveYear = nYear
nSaveMonth = nMonth
While cDaysArray(nI) = blank
nI = nI -1
nDay = nDay - 1
End
jdDate.nYear = nYear
While jdDate >= EFFF and jdDate <= EFFT
If cDaysArray(nI) = 'W'
VPDTE = jdDate
If BAF <> blank
jdDate = jdDate -1
If nMonth = 1 and nI = 1
nYear = nYear -1
nMonth = 12
nDay =31
End
End
If BAF = '2'
JdDate = jdDate + 1
If nMonth = 12 and nI =31
nYear = nYear +1
nMonth = 1
nDay =1
End
End
jdDate.nDay = nDay
I3401440_GetWorkDayCalendar
Continue
End
End
cDaysArray[32] =0
nDate = nSaveDay
nI = nSaveDay
nMonth = 1
nYear = nYear + 1
else
nMonth = nMonth + 1
End
nSaveYear = nYear
nSaveMonth = nMonth
jdDate.nDay = nDay
End
End
End
If a Specific Week or Week Pattern is selected
If cSelection4_EV17 = '1' and cSelection1_EV14 = '1' or If cSelection4_EV17 = '1' and
cSelection3_EV16 = '1'
Call I3401440_GetWeekOfTheMonth
nDayOfWeek = 0
nI = nBegin
nDay = nBegin
jdSaveCurrentDate = 0
jdDate.nYear = nYear
jdDate.nDay = nDay
While jdCurrentDate >= EFFF and jdCurrentDate <= EFFT
If nDayOfWeek = 0
Call I3401440_GetDayOfTheWeek
Endif
cInWeek = 0
If jdCurrentDate >= jdWeekPattern[1] and jdCurrentDate < jdWeekPattern[2] and cShipWeek[1] =
'1' '85'85'85'85
jdCurrentDate >= jdWeekPattern[5] and jdCurrentDate < jdWeekPattern[6] and cShipWeek[5] = '1'
cBAFFlag = BAF
If cInWeek = '1' and cDaysArray(nI) = 'W and cShipDay[nDayOfWeek] = '1' or
VPDTE = jdCurrentDate
If cBAFFlag = '1'
cBAFFlag = ' '
End
Call I3401440_InsertRecords
Else
If BAF <> blank
nSaveI = nI
nSaveYear = nYear
nSaveMonth = nMonth
cSaveDaysArray[ ] = cDaysArray[ ]
If cBAFFlag ='1'
If BAF = '1'
JdCurrentDate = jdCurrentDate - 1
If nMonth = 1and nI = 1
nMonth = 12
End
nMonth = 1
nDay =1
End
jdDate.nDay = nDay
jdCurrentDate.nDay = nDay
Continue
CBAFFlag = ' '
End
End
nI = nSaveI
nYear = nSaveYear
nDay = nSaveDay
cSaveCurrentDate = 0
cDaysArray[ ] = ' '
if nMonth = 12
nMonth = 1
nYear = nYear + 1
else
nMonth = nMonth + 1
end
nDay = 1
jdDate.nYear = nYear
jdDate.nMonth = nMonth
jdDate.nDay = nDay
jdCurrentDate.nDay = nDay
Call I3401440_GetWeekOfTheMonth
Continue
If cDaysArray(nI) <> blank
nDayOfWeek = nDayOfWeek + 1
End
If nDayOfWeek > 7
nI = nI + 1
nDay = nDay + 1
jdCurrentDate = jdCurrentDate + 1
End
End
If cSelection5_18 = '1' and cSelection1_14 = '1' or cSelection5_18 = '1' and cSelection3_16 = '1'
jdCurrentDate = EFFF
jdDate = EFFF
nWeek =RCUR
nNUM = 1
While JdCurrentDate >= EFFF and JdCurrentDate <= EFFT
If nDayOfWeek = 0
Call I3401440_GetDayOfTheWeek
Endif
If nWeek = RCUR and cDaysArray(nI) = 'W' and cShipDay[nDayOfWeek] = '1' or
VPDTE = jdCurrentDate
End
nSaveYear = nYear
nSaveMonth = nMonth
nSaveDayOfTheWeek = nDayOfTheWeek
cSaveDaysArray[ ] = cDaysArray[ ]
If cBAFFlag ='1'
JdCurrentDate = jdCurrentDate - 1
If nMonth = 1and nI = 1
nMonth = 12
nMonth = 1
nDay =1
End
D3401440 - F43213 Generate SRS Ship Dates
Data Item Data Structure DescriptionI/ORequiredNotes
DOCO Document Number I
DCTO Document type I
LNID Line ID I
MMCU Branch IY
AN8 Supplier IY
ITM Short Item Number I
LITM Second Item Number I
AITM Third Item Number I
EFFF Effective From Date IY
EFFT Effective To Date IY
DOW1 Sunday I
DOW2 Monday I
DOW3 Tuesday I
DOW4 Wednesday I
DOW5 Thursday I
DOW6 Friday I
DOW7 Saturday I
WOM1 Week1 I
WOM2 Week2 I
WOM3 Week3 I
WOM4 Week4 I
WOM5 Week5 I
EV01 Selection1 I
EV02 Selection2 I
EV03 Selection3 I
EV04 Selection4 I
EV05 Selection5 I
AWDY All Work Day I
DOM Day Of The Month I
BAF Before/After Flag I
RCUR Recur Every Weeks I
SUPPS Suppress Error Message I '1' = Suppress runtime error
message
' ' = Allow runtime error
message
DTAI Error Message ID O ' ' = Success
'3143' = Table access error
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnDocumentOrderInvoiceE | DOCO | MATH_NUMERIC | OPT | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderType | DCTO | char | OPT | NONE |
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has
| ||||
mnLineNumber | LNID | MATH_NUMERIC | OPT | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
szCostCenterAlt | MMCU | char | OPT | NONE |
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
| ||||
mnAddressNumber | AN8 | MATH_NUMERIC | OPT | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
mnIdentifierShortItem | ITM | MATH_NUMERIC | OPT | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szIdentifier2ndItem | LITM | char | OPT | NONE |
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to
| ||||
szIdentifier3rdItem | AITM | char | OPT | NONE |
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item
| ||||
jdEffectiveFromDate | EFFF | JDEDATE | OPT | NONE |
A date that indicates one of the following:
o When a component part goes into effect on a bill of material
o When a routing step goes into
| ||||
jdEffectiveThruDate | EFFT | JDEDATE | OPT | NONE |
A date that indicates one of the following:
o When a component part is no longer in effect on a bill of material
o When a routing step is no
| ||||
mnDayOfTheMonth | DOM | MATH_NUMERIC | OPT | NONE |
Day of the month ( 1 thru 31) | ||||
cSuppressErrorMessage | SUPPS | char | OPT | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szErrorMessageID | DTAI | char | OPT | NONE |
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
| ||||
cSunday | DOW1 | char | OPT | NONE |
First day of the week. | ||||
cMonday | DOW2 | char | OPT | NONE |
Second day of the week. | ||||
cTuesday | DOW3 | char | OPT | NONE |
Third day of the week. | ||||
cWednesday | DOW4 | char | OPT | NONE |
Fourth day of the week. | ||||
cThursday | DOW5 | char | OPT | NONE |
Fifth day of the week. | ||||
cFriday | DOW6 | char | OPT | NONE |
Sixth day of the week. | ||||
cSaturday | DOW7 | char | OPT | NONE |
Seventh day of the week. | ||||
cWeek1 | WOM1 | char | OPT | NONE |
First week of the month. If you check this box, the shipment pattern you define will be valid for the 1st through the 7th of the month. | ||||
cWeek2 | WOM2 | char | OPT | NONE |
Second week of the month. If you check this box, the shipment pattern you define will be valid for the 8th through the 14th of the month. | ||||
cWeek3 | WOM3 | char | OPT | NONE |
Third week of the month. If you check this box, the shipment pattern you define will be valid for the 15th through the 21st of the month. | ||||
cWeek4 | WOM4 | char | OPT | NONE |
Fourth week of the month. If you check this box, the shipment pattern you define will be valid for the 22nd through the 28th of the month. | ||||
cWeek5 | WOM5 | char | OPT | NONE |
Fifth week of the month. If you check this box, the shipment pattern you define will be valid for the 29th through the end of the month, if
| ||||
cAllWorkDays | AWDY | char | OPT | NONE |
A code for selecting all work days in a week. | ||||
cSelection1 | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cSelection2 | EV02 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cSelection3 | EV03 | char | OPT | NONE |
A radio button that specifies the level at which trace/track result is to be displayed. Select the Detail to display all transactions except IB, IX,
| ||||
cSelection4 | EV04 | char | OPT | NONE |
PeopleSoft event point processing flag 04. | ||||
cSelection5 | EV05 | char | OPT | NONE |
A flag that indicates whether automatic spell check is turned on. | ||||
cBeforeAfterFlag9 | BAF | char | OPT | NONE |
Before/After Flag
blank No ship day will be created if a selected day is a non-work day
1 Create a ship day on the day before the
| ||||
mnRecurEveryWeeks | RCUR | MATH_NUMERIC | OPT | NONE |
A code that determines the weekly pattern that the system builds based on the effective from date.
Valid codes are:
1 Every week is
|
None |
F43213 SRS Ship Dates |