GetNextTransactionNumber

Get Next Transaction Number

Minor Business Rule

Object Name: B0000175

Parent DLL: COPBASE

Location: Client/Server

Language: C

This function will use the Transaction Type parameter to get the names of the files for the transaction from the Flat File Cross-Reference table 
(F47002).  It will then get a next number from the first bucket for system 47.  Using this next number, the User ID, and the Batch Number as 

partial keys, the function will try to find a duplicate record in the files retrieved from the F47002.


If a duplicate is found, another next number is retrieved and the check for duplicate records happens again.  Once a valid number has been 

found, this number is returned as the Transaction Number to the calling program.  If one hundred next numbers are retrieved and they all have 

duplicates, a value of zero is returned as the Transaction Number.

Data Structure

D0000175 - Get Next Transaction Number

Parameter NameData ItemData TypeReq/OptI/O/Both
szTransactionTypeTYTNcharNONENONE

The qualifier used to identify a specific type of transaction.

szUserIdEDUScharNONENONE

The source of the transaction. This can be a user ID, a workstation, the address of an external system, a node on a network, and so on. This 
field helps identify both the transaction and its point of origin.

szBatchNumberEDBTcharNONENONE

The number that the transmitter assigns to the batch.  During batch processing, the system assigns a new batch number to the PeopleSoft 
transactions for each control (user) batch number it finds. 

szTransactionNumberEDTNcharNONENONE

The number that an Electronic Data Interchange (EDI) transmitter assigns to a transaction. In a non-EDI environment, you can assign any 
number that is meaningful to you to identify a transaction within a batch. It can be the same as a J.D. Edwards document number.

cSuppressErrorMessageEV01charNONENONE

An option that specifies the type of processing for an event.

Related Functions

B9800014 Retrieve Object Master

Related Tables

F47002 Flat File Cross-Reference Table