F31091ProcessMasterData
Purpose:
To perform all table I/O for the F31091.
Open F31091 Table
Retrieve Audit Information
Add, Change or Delete F31091 record depending on Action Code
'b7'b7
Setup Notes:
'b7 This is a Master File Master Business Function. It will process one record at a time. No cache
is used.
Special Logic:
'b7 If calling this function numerous times to add or change multiple records, set the return
hrequest parameter to '1' and return the F31091 Table Hrequest ID with each subsequent call. This will
eliminate the need to open and close the F31091 table for each call. NOTE: After all processing is
completed, call this business function with Action Code = '5' Close Table and Return Hrequest Flag = '0' to
close the table. If this is not completed, a memory leak will occur because of the open table.
Function Outline:
If the input F31091 Hrequest does not = NULL
Retrieve Pointer
Else
Open F31091 Table
End If
If the Table Pointer is not NULL
If input Action Code = 'A' or '1'
If Process Edits = 1 or 2
Validate Order Number
Validate Item Number - retrieve 2nd, 3rd Item Numbers and Primary UOM
If input UOM is blank
End If
Validate UOM
If Process Edits = 1
Validate Branch/Plant, Shift, Cat Codes 1-3 against DD
End If
Add record to F31091
Else if input Action Code = 'C' or '2'
If Process Edits = 1 or 2
Validate Order Number
Validate Item Number
- retrieve 2nd, 3rd Item Numbers and Primary UOM
If input UOM is blank
End If
Validate UOM
If Process Edits = 1
Validate Branch/Plant, Shift, Cat Codes 1-3 against DD
End If
If input Orig Document Number is not blank
Set Index = 1
Set Number of Keys = 7
Delete Record using original values
Add Record to F31091 using new key values
Else
Update the F31091 record
End If
Else if input Action Code = 'D' or '3'
and number of keys used
If Process Edits = 2
Fetch Next Keyed based on input Index and Number of Keys
Else If Process Edits = 3
Select Records based on input Index and Number of Keys
Fetch Record
Else If Process Edits = 4
Fetch Next record
Else
Fetch Record based on input Index and Number of Keys
If successful
Copy F31091 fields to output parameters
Else
Set error
End If
Set input error - 0001 Action Invalid
End If
End If
If input Return Hrequest Flag = '1'
Store Hrequest in output F31091 Hrequest ID parameter
Else
Close F31091
End If
DX31091 - F31091 Master File MBF
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cActionCode | ACTN | char | REQ | INPUT |
A or 1 = Add Record
| ||||
cProcessEdits | EV02 | char | OPT | NONE |
If Action Code = Add, Update or Delete
| ||||
cSuppressErrorMessages | EV03 | char | OPT | NONE |
1 - Error Messages Suppressed
| ||||
nNumberOfKeys | INT01 | integer | OPT | NONE |
Number of Keys to be used from the index. Required only for Action Code = I or D
| ||||
nIndexNumber | INT02 | integer | OPT | NONE |
Number of which Table Index to be used. Required only for Action Code = I or D
| ||||
cErrorCode | ERRC | char | OPT | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
szErrorMessageID | DTAI | char | OPT | NONE |
Error Message Data Dictionary ID of the last error encountered.
| ||||
szProgramId | PID | char | OPT | NONE |
Program ID of the calling program.
| ||||
idF31091Hrequest | GENLNG | ID | OPT | NONE |
Pointer to the F31091 table. If cReturnHrequest = 1, this pointer must be returned for all
| ||||
cReturnHrequest | EV04 | char | OPT | NONE |
1 - return F31091 table pointer. Used for multiple calls to the business function. If calling this
| ||||
szTypeTransaction | TYTN | char | OPT | NONE |
Processing Option to be used for interoperability.
| ||||
mnShortItemNumber | 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
| ||||
sz2ndItemNumber | LITM | char | OPT | NONE |
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to
| ||||
sz3rdItemNumber | AITM | char | OPT | NONE |
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item
| ||||
szBranchPlant | 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
| ||||
szLineCellNumber | LINE | char | OPT | NONE |
A number that defines a production line or cell. Detailed work center operations can be defined inside the line or cell. | ||||
mnDocumentNumber | 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,
| ||||
szDocumentType | 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
| ||||
cShiftCode | SHFT | char | OPT | NONE |
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
| ||||
jdScheduledStartDate | SESD | JDEDATE | OPT | NONE |
The calendar date that an operation or rate is scheduled to begin. | ||||
mnPlannedQuantity | PLQT | MATH_NUMERIC | OPT | NONE |
The quantity of units planned for each period in the time series or plan. | ||||
szUnitOfMeasure | UOM | char | OPT | NONE |
A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box). | ||||
mnOperationSequence | OPSQ | MATH_NUMERIC | OPT | NONE |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
szCategoriesWorkOrder001 | WR01 | char | OPT | NONE |
A user defined code (00/W1) that indicates the current stage or phase of development for a work order. You can assign a work order to only
| ||||
szCategoriesWorkOrder002 | WR02 | char | OPT | NONE |
A user defined code (00/W2) that indicates the type or category of a work order.
Note: A processing option for some forms lets you enter a
| ||||
szCategoriesWorkOrder003 | WR03 | char | OPT | NONE |
A user defined code (00/W3) that indicates the type or category of the work order.
Note: A processing option for some forms allows you to
| ||||
szUserReservedCode | URCD | char | OPT | NONE |
This is a 2 position code that is reserved for the user. JDE does not currently use this field and will not utilize this field in the future. | ||||
jdUserReservedDate | URDT | JDEDATE | OPT | NONE |
This is a 6 position code that is reserved for the user. JDE does not currently use this field and will not utilize this field in the future. | ||||
mnUserReservedAmount | URAT | MATH_NUMERIC | OPT | NONE |
This is a 15 position code that is reserved for the user. JDE does not currently use this field and will not utilize this field in the future. | ||||
mnUserReservedNumber | URAB | MATH_NUMERIC | OPT | NONE |
This is a 8 position code that is reserved for the user. JDE does not currently use this field and will not utilize this field in the future. | ||||
szUserReservedReference | URRF | char | OPT | NONE |
A 15-position reference that is reserved for the user. J.D. Edwards does not currently use this field and does not plan to use it in the future. | ||||
szUserID | USER | char | OPT | NONE |
The code that identifies a user profile. | ||||
szWorkStationID | JOBN | char | OPT | NONE |
The code that identifies the work station ID that executed a particular job. | ||||
jdDateUpdated | UPMJ | JDEDATE | OPT | NONE |
The date that specifies the last update to the file record. | ||||
mnTimeOfDay | TDAY | MATH_NUMERIC | OPT | NONE |
The computer clock in hours:minutes:seconds. | ||||
mnOrigDocoNumber | DOCO | MATH_NUMERIC | OPT | NONE |
Original Values are used to update an existing record's key values. A delete of the original record
| ||||
szOrigDocoType | DCTO | char | OPT | NONE |
Original Values are used to update an existing record's key values. A delete of the original record
| ||||
szOrigBranchPlant | MMCU | char | OPT | NONE |
Original Values are used to update an existing record's key values. A delete of the original record
| ||||
mnOrigShortItem | ITM | MATH_NUMERIC | OPT | NONE |
Original Values are used to update an existing record's key values. A delete of the original record
| ||||
cOrigShiftCode | SHFT | char | OPT | NONE |
Original Values are used to update an existing record's key values. A delete of the original record
| ||||
jdOrigSchedStartDate | SESD | JDEDATE | OPT | NONE |
Original Values are used to update an existing record's key values. A delete of the original record
| ||||
mnOrigOperSeq | OPSQ | MATH_NUMERIC | OPT | NONE |
Original Values are used to update an existing record's key values. A delete of the original record
|
None |
None |