LocationCardexShell

Location Cardex Shell

Major Business Rule

Object Name: B4100230

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function will load the appropriate fields to write a cardex record for the add of a location and 
then call the business function WriteCardexRecord (B4100040).


Setup Notes and Prerequisites

The Short Item Number (ITM), Second Item Number (LITM), Third Item Number (AITM), Branch/Plant (MCU), 

Location (LOCN) and Lot Number (LOTN) are required parameters.


Special Logic:

None


Technical Specification

This function loads the passed in parameters into the data structure to write a cardex record.  The 
business function Write Cardex Record (B4100040) is called to write the record.

The explanation passed in reads 'Location Add'.


Load the following into the parameters for the call to the WriteCardexRecord business function

ShortItemNumberShortItemNumber

SecondItemNumberSecondItemNumber

ThirdItemNumberThirdItemNumber

BranchPlantBranchPlant

LocationLocation

LotNumberLotNumber

G/LClassG/LClass

PID passed inDocumentNumber (changed 05/18/95)

Document TypeDocument Type(added  05/18/95)
Lot StatusLot Status(added 05/18/95)

Transaction QuantityTransaction Quantity(added 05/18/95)

Posting CodePosting Code(added 05/18/95)

PrimaryUOM from the Transaction Unit Of Measure

         Item Master 

  Record (UOM1)

Call GetAuditInfo G/LDate

  to loadTransactionDate

Creation Date

Terminal

User

Time

'Location Add'Explanation


Call WriteCardexRecord

Data Structure

D4100230 - Location Cardex Shell

Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMShortItemNumberIY

LITMSecondItemNumberIY

AITMThirdItemNumberIY

MCUBranchPlantIY

LOCNLocationIY

LOTNLotNumberIY

GLPTGLCategoryIN

LOTSLotStatusIN

PIDProgramIDIN

DCTDocumentTypeIN

TRQTTransactionQuantityIN

IPCDPostingCodeIN




^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szSecondItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szThirdItemNumberAITMcharNONENONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned item number. 2.  2nd Item Number - The 25-digit, free-form, user 
defined alphanumeric item number. 3.  3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item number.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

szBranchPlantMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

szGLCategoryGLPTcharNONENONE

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 
you do not want to specify a class code, you can enter **** (four asterisks) in this field. You can use automatic accounting instructions (AAIs) to 
predefine classes of automatic offset accounts for the Inventory Management, Procurement, and Sales Order Management systems. You 
might assign G/L class codes as follows:    IN20   Direct Ship Orders    IN60   Transfer Orders    IN80   Stock Sales  The system can generate 
accounting entries based upon a single transaction. For example, a single sale of a stock item can trigger the generation of accounting entries 
similar to the following:         Sales-Stock (Debit) xxxxx.xx     A/R Stock Sales (Credit) xxxxx.xx     Posting Category: IN80             Stock Inventory 
(Debit) xxxxx.xx     Stock COGS (Credit) xxxxx.xx The system uses the class code and the document type to find the AAI.

cLotStatusLOTScharNONENONE

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 
indicate that the lot is on hold. You can assign a different status code to each location in which a lot resides on Item/Location Information or 
Location Lot Status Change.

szProgramIDPIDcharNONENONE

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.

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

mnTransactionQuantityTRQTMATH_NUMERICNONENONE

A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and 
backorders. You enter this value in the Branch/Plant Constants program (P41001).

cPostingCodeIPCDcharNONENONE

This code designates the status of the posting of each particular transaction in the Inventory Ledger file.  Valid codes are:    Y Posted (This 
transaction has been recorded in the 'As Of' generation file (F41112)).    S The value of your inventory has yet to be impacted by the 
tranasaction.    X The transaction was a movement of inventory only that had no effect on its value.    Blank The transaction has not been posted to the 
'As Of' file.

szReasonCodeRCDcharOPTNONE

A user defined code (42/RC) that explains the purpose for a transaction. For example, you can indicate the reason that you are returning 
items.

Related Functions

B4100040 Write Cardex Record
B9800100 Get Audit Information

Related Tables

F4101 Item Master