Functional Description
Purpose
This function loads the fields to the data structure to write an Inventory Cardex record (F4111) to
reflect an inventory location addition or an inventory transaction.
Setup Notes and Prerequisites
Special Logic
Call WriteCardexRecord(B4100040) after this to write the Inventory Cardex record (F4111).
If the parameter Add Item Location = '1', the cardex record will be written for location adds.
Technical Specification
This function loads the appropriate fields to write a Cardex record in F4111 Table that will reflect
an Inventory Transaction or an Inventory location addition. When adding an inventory location, all
the quantity fields will be blank, the Transaction Explanation field (TREX) will be updated with 'Item
Add', and the Document Type (DOC) will be 'IB'.
This functions call WriteCardexRecord (B4100040) to write the cardex record.
Related Business Functions
Source NameFunction Name
WriteCardexRecordB4100040
Processing
For the add of an inventory location....
If Add Item Location equals '1'
Clear all fields in the F4111
Load the following fields ONLY
TRDJ
USER
PID
TERM
ITM
LITM
AITM
MCU
LOTN
LOTG
LOTP
LOTS
DGL
TREX with 'Item Add'
DCTwith 'IB'
DOC
KCO
ICU with blanks
RCD
DOCO
DCTO
KCOO
DMCT
DMCS
BALU
NLIN
GLPT
PAIDwith zeros
TDAYwith zeros
TRQTwith zeros
UNCSwith zeros
TRUMwith blanks
Load the following with system values:
UPMJUSERTERMCRDJ
Call WriteCardexRecord(B4100040)
// Not an Item Location Add
else
Clear all fields in the F4111
Load the following fields:
DGL
TRDJ
TRQT
UNCS
PAID
MCU
ITM
LITM
AITM
LOCN
LOTN
LOTS
TRUM
GLPT
TREX
TREF
RCD
IPCD
LDSQ
AN8
SFX
DCT
DOC
KCO
JELN
ICU
TRNO
FRTO
LOTG
LOTP
KIT
MMCU
PLOT
DOCO
DCTO
KCOO
DMCT
DMCS
BALU
NLIN
PID
LNID
Load the following with system values:
UPMJUSERTERMCRDJ
*Call WriteCardexRecord(B4100040)
For variances...
*If Variance Amount is not 0
Clear F4111 record
Load the following fields:
DGL
TRDJ
TRQT with zeros
UNCSwith zeros
PAID take VARA and multiply by -1 to load into PAID
MCU
ITM
LITM
AITM
LOCN
LOTN
TRUM
RCD
GLPT
TREXwith 'Zero Balance Adjustment'
TREF
IPCD
LDSQ
AN8with blanks
SFXwith blanks
DCT
DOC
KCO
JELNJournal Entry Variance Number
ICU
DOCO
DCTO
KCOO
DMCT
DMCS
BALU
NLIN
PID
LNID
Load the following with system values:
UPMJUSERTERMCRDJ
Call WriteCardexRecord(B4100040)
D4100050 - Inventory Cardex Shell
Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMItem NumberIY
LITM2nd Item NumberIY
AITM3rd Item NumberIY
MCUBranch/PlantIY
LOCNLocationIY
LOTNLot NumberIY
PLOTParent LotIN
STUNStorage Unit NumberIN
LDSQDetail Sequence NumberIN
TRNOTransaction Line NumberIN
FRTOFrom/ToIN
LMCXLot Master Cardex(Y/N)IN
LOTSLot Status CodeIN
LOTPLot PotencyIN
LOTGLot GradeIN
KITParent Item NumberIN
MMCUBranchIN
DMCTContract NumberIN
DMCSContract SupplementIN
BALUContract Balances UpdateIN
KCODocument CompanyIY
DOCDocument NumberIY
DCTDocument TypeBY
SFXPay ItemIN
JELNJournal Entry Line NumberIN
ICUBatch NumberIN
DGLG/L DateIY
GLPTG/L CategoryIY
DCTOOrder TypeIN
DOCOOrder NumberI N
KCOOOrder Number Doc CompIN
LNIDLine NumberIN
NLINNumber of LinesIN
IPCDAs Of Posted CodeIN
TRDJOrder DateBN
TRUMTrans U/MI N
AN8Address NumberIN
TREXExplanationIN
TREFTransaction ReferenceIN
RCDReason CodeI N
TRQTTransaction QuantityIN
UNCSUnit CostIN
PAIDExtended Cost/PriceIN
PIDProgram IDIN
EV01Add Item LocationIY
VARAVariance AmountIN
JEL2Journal Entry Variance Number IN
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szSecondItemNumber | LITM | char | NONE | NONE |
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to
| ||||
szThirdItemNumber | AITM | char | NONE | NONE |
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item
| ||||
szBranchPlant | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
szLotNumber | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
szParentLot | PLOT | char | NONE | NONE |
An inventory separation device that allows tracking of the inventory by date received or similar convention to control lots or layers. | ||||
mnStorageUnitNumber | STUN | MATH_NUMERIC | NONE | NONE |
A number that uniquely identifies goods in specific location detail information. Location detail contains a storage unit number if you turn on
| ||||
mnDetailSequenceNumber | LDSQ | MATH_NUMERIC | NONE | NONE |
The sequence number that identifies a record in the Location Detail table (F4602). The system uses this number to distinguish between the
| ||||
mnTransactionLineNumber | TRNO | MATH_NUMERIC | NONE | NONE |
The transaction line number keeps the different From and To lines for one transaction (for example, combining multiple lots into one or
| ||||
cFromTo | FRTO | char | NONE | NONE |
A code that indicates whether a line in a transaction is a From line or a To line. This field allows you to combine multiple existing products or
| ||||
cLotMasterCardex | LMCX | char | NONE | NONE |
For Future Use. | ||||
cLotStatusCode | LOTS | char | NONE | NONE |
A user defined code (41/L) that indicates the status of the lot. If you leave this field blank, it indicates that the lot is approved. All other codes
| ||||
mnLotPotency | LOTP | MATH_NUMERIC | NONE | NONE |
A code that indicates the potency of the lot expressed as a percentage of active or useful material (for example, the percentage of alcohol
| ||||
szLotGrade | LOTG | char | NONE | NONE |
A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:
A1 Premium
| ||||
mnParentItemNumber | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szBranch | MMCU | char | NONE | 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
| ||||
szContractNumber | DMCT | char | NONE | NONE |
A unique number your company assigns to identify a particular agreement. You might want to assign some significance to the agreement
| ||||
mnContractSupplement | DMCS | MATH_NUMERIC | NONE | NONE |
The supplement number records any changes or addendum to agreements that occur over time or by item. It can also indicate individual
| ||||
cContractBalancesUpdate | BALU | char | NONE | NONE |
This field will be used to control whether a record in the inventory, sales order or purchasing detail files has been updated to the distribution
| ||||
szDocumentCompany | KCO | char | NONE | NONE |
A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher,
| ||||
mnDocumentNumber | DOC | MATH_NUMERIC | NONE | NONE |
A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document
| ||||
szDocumentType | DCT | char | NONE | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szPayItem | SFX | char | NONE | NONE |
A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has
| ||||
mnJournalEntryLineNumber | JELN | MATH_NUMERIC | NONE | NONE |
A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes. | ||||
mnBatchNumber | ICU | MATH_NUMERIC | NONE | NONE |
A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either
| ||||
jdGLDate | DGL | JDEDATE | NONE | NONE |
A date that identifies the financial period to which the transaction is to be posted.
The company constants specify the date range for each
| ||||
szGLCategory | GLPT | char | NONE | NONE |
A user defined code (41/9) that identifies the G/L offset that system uses when it searches for the account to which it posts the transaction. If
| ||||
szOrderType | DCTO | char | NONE | 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
| ||||
mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderNumberDocCompany | KCOO | char | NONE | NONE |
A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a
| ||||
mnLineNumber | LNID | MATH_NUMERIC | NONE | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
mnNumberOfLines | NLIN | MATH_NUMERIC | NONE | NONE |
A number representing the number of lines on either a purchase or sales order.
or The number of receivers recorded during the receipts
| ||||
cAsOfPostedCode | IPCD | char | NONE | NONE |
This code designates the status of the posting of each particular transaction in the Inventory Ledger file. Valid codes are:
Y Posted (This
| ||||
jdOrderDate | TRDJ | JDEDATE | NONE | NONE |
The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing. | ||||
szTransactionUOM | TRUM | char | NONE | NONE |
The unit of measure you used when you entered this transaction into the system. | ||||
mnAddressNumber | AN8 | MATH_NUMERIC | NONE | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
szExplanation | TREX | char | NONE | NONE |
Text that identifies the reason that a transaction occurred. | ||||
szTransactionReference | TREF | char | NONE | NONE |
A reference number that provides an audit trail for specific transactions. | ||||
szReasonCode | RCD | char | NONE | NONE |
A user defined code (42/RC) that explains the purpose for a transaction. For example, you can indicate the reason that you are returning
| ||||
mnTransactionQuantity | TRQT | MATH_NUMERIC | NONE | NONE |
A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and
| ||||
mnUnitCost | UNCS | MATH_NUMERIC | NONE | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
mnExtendedCost | PAID | MATH_NUMERIC | NONE | NONE |
The extended cost or price value of an inventory transaction for an inventory item. | ||||
szProgramID | PID | char | NONE | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
cAddItemLocation | EV01 | char | NONE | NONE |
'1' = Add Item Location. Will need to write a different Cardex recordab
| ||||
mnVarianceAmount | AEXP | MATH_NUMERIC | NONE | NONE |
The number of units multiplied by the unit price. | ||||
mnVarianceJournalEntryNumber | JEL2 | MATH_NUMERIC | NONE | NONE |
A number that designates a line within a journal entry. The system uses this field to sequence the journal entry for inquiry purposes. | ||||
mnSecondaryQuantity | SQOR | MATH_NUMERIC | OPT | NONE |
If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens. | ||||
szSecondaryUOM | UOM2 | char | OPT | NONE |
A user defined code (00/UM) that indicates an alternate unit of measure for the item. | ||||
mnTransactionGroupNo | TGN | MATH_NUMERIC | OPT | NONE |
A value that identifies the lines that were grouped when the system performed multiple reclassification transactions. | ||||
mnRelatedFromLineNo | RFLN | MATH_NUMERIC | OPT | NONE |
The number of the line item from which this line inherits lot and quality data. | ||||
szSupplierLotNumber | RLOT | char | OPT | NONE |
The supplier's lot number for the item. |
B4100040 Write Cardex Record | ||||
B9800100 Get Audit Information |
F4102 Item Branch File |