Check912BExistence

Check for existence of 912B record

Minor Business Rule

Object Name: B0900040

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose
Used for Variable Numerator Allocations routine P09122 to check next number for the Document Number.  
Function queries the F0912B table to check whether the passed key already exists in the table.  If 
record doesn't exist, no response is apparent to user.  If the record does exist an error is returned.

This function works only for an Add Mode.



Technical Specifications

Processing

After memory for the data structure is initialized to Nulls, a switch structure is entered.  Only an 
Add Bob Mode is treated, all else passes through. 

 

For an add mode: 

The F0912B is requested.  If the file cannot be accessed, the error 078D (No File Access) is 

indicated.


When the file is successfully accessed, the record indicated by the passed parameters is requested.  

If the record is found, error 0002 (Invalid Record) is indicated.  If the record is not found, no 

indication is made and the function finishes successfully.


^

Data Structure

D0900040 - Check for existence of 912B record

Parameter NameData ItemData TypeReq/OptI/O/Both
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 

mnDocVoucherInvoiceEDOCMATH_NUMERICNONENONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szCompanyCOcharNONENONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

Related Functions

None

Related Tables

F0912B Variable Allocation File