GetNextJELineNumber

Get Next Journal Entry Line Number

Minor Business Rule

Object Name: B0000009

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function will get the next journal entry line number that can be used to write a unique 

transaction record to the F0911 table.  The journal entry line number is used to make each 

transaction within a document unique.  All other index fields must be passed into this business function. This 

business function will start with the jorunal entry line number passed or line number 1 if zero is 

passed.  The Line Extension field is intentionally left out of the index used in this business function 

because the record must be unique for all line extensions.


Setup Notes and Prerequisites


Special Logic




Technical Specification




Data Structure

D0000009 - Get Next Journal Entry Line Number


^

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 

mnDocumentNumberDOCMATH_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.

szCompanyKeyKCOcharNONENONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

jdTransactionDateDGJJDEDATENONENONE

A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you 
assign to the company record. The system compares the date that you enter on the transaction to the fiscal date pattern assigned to the 
company to retrieve the appropriate fiscal period number, as well as to perform date validations.

mnJournalEntryLineNumberJELNMATH_NUMERICNONENONE

A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes.

Related Functions

None

Related Tables

F0911 Account Ledger