1.Functional Description
1.1Purpose
The Business Function will be used to create SO independent Work Orders (when user sets WADL = 0 in Assembly Inclusion Rules). This function is
designed to take care of GAPS in SO Cache, as well as to create WOs for all children in one call (mnMaxWOLineIndex == ZERO).
1.2Setup Notes and Prerequisites
This function assumes B3200370 and B3201470 caches exist prior to running this function, as well as WO cache.
1.3Special Logic
None
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
JOBSJob NumberIRCache Job Number
LNIXmnLastWOLineIndexIOStarting point for
processing if passed , otherwise begin index is retrieved from B3201470
LNIXmnMaxWOLineIndexIOEnd point for processing if passed, otherwise max index
is retrieved from B3201470 Note: If this value is passed, mnLastWOLineIndex value need to be passed too, in this case calling sytem is responsible to
keep track of last value used.
VC04AszProcessModuleIRIf SY == 42 than SALE
EV01cModeIRB - Batch Mode is not recommended ( it is called
automatically), use F mode
PIDszProgramIdIO
SYszSystemCodeIRi.e. 42, 48, 31
DOCOmnSONumberIR
ACTNcSOActionCodeIRC for change, A for
Add
HOLDszSOHeaderHoldCodeIO
DCTOszSOOrderTypeIR
KCOOszSOCompanyKeyOrderNoIRIf SY == 48 or 31 than *
SFXOszSOOrderSuffixIRIf SY == 48 or
31 than *
SUPPScSuppressErrorMessageIO
DTAIszErrorMessageIDOO
EV01cClearWOWorkFileIOPass 1 if you want to clear WO Work File,
otherwise calling system is responsible for it.
2.2Related Tables
Table Table Description
2.3Related Business Functions
Source NameFunction
Name
B3200370CacheProcessAllComponents
B3201470CacheProcessConfigurationID
X4801F4801EditLine
X4801F4801EndDocument
2.4Processing
bProcessOK = TRUE
If (mnMaxWOLineIndex == 0)
If (cMode != B)
bWOEndDocBatchMode = TRUE
Call I3201850_GetConfigurationID
If (mnConfigurationID != 0)
Call I3201850_GetMaxWOIndex
mMnLimitWOLineIndex = mnMaxWOLineIndex + 1
End If
Else
bProcessOK = FALSE
bWOEndDocBatchMode = TRUE
End If
Else
MnLimitWOLineIndex = mnMaxWOLineIndex
End If
If (bProcessOK == TRUE)
mnConfigWOIndex = mnLastWOLineIndex + 1
bWOLineIndexExists =
Call I3201850_CacheVerifyWOIndexExists
If (bWOLineIndexExists == TRUE)
Call F4801EditLine
If (cErrorCode =!= 2)
If (szLineIdentifier != BLANK AND cStockingType != C)
Call I3201850_LoadAddChangeRate
If (cSOActionCode == A)
Call F4801AddRate
Else
Call F4801ChangeRate
End If
Else
If (cSOActionCode == C)
Call F31091ProcessMasterData
Call I3201850_CallWorkOrderEndDoc
End If
End If
End If
mnLastWOLineIndex = mnConfigWOIndex
mnConfigWOIndex = mnLastWOLineIndex + 1
End If
End If
If (bWOEndDocBatchMode == TRUE)
I3201850_CallWorkOrderEndDoc
If (cClearWOWorkFile == 1)
Call I3201850_ClearWOWorkFile
End If
End If
3.2 Where Used: APPs/UBEs/NERs/BSFNs
Application/Business Function
B4200310F4211FSEndDoc
D3201850 - GenerateSOIndependentWorkOrder
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnLastWOLineIndex | LNIX | MATH_NUMERIC | OPT | NONE |
mnMaxWOLineIndex | LNIX | MATH_NUMERIC | OPT | NONE |
szProcessModule | VC04A | char | OPT | NONE |
This is a generic field used as a work field in Everest. | ||||
cMode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szProgramId | PID | char | OPT | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
szSystemCode | SY | char | OPT | NONE |
A user defined code (98/SY) that identifies a system. Valid values include:
01
Address Book
03B
Accounts Receivable
04
Accounts
| ||||
mnSONumber | 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,
| ||||
cSOActionCode | ACTN | char | OPT | NONE |
A code that specifies the action that is performed. Valid values are: A Add C Change | ||||
szSOHeaderHoldCode | HOLD | char | OPT | NONE |
A user defined code (42/HC) that identifies why an order is on hold. | ||||
szSOOrderType | 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
| ||||
szSOCompanyKeyOrderNo | KCOO | char | OPT | NONE |
A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a
| ||||
szSOOrderSuffix | SFXO | char | OPT | NONE |
In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies
| ||||
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
| ||||
cClearWOWorkFile | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
None |
None |