Functional Description
Purpose
Assign the next number to a Purchase Order if left blank.  If the number was entered, validate that 
this has not already been used in the Purchase Order Header Table (F4301)
Technical Specification
D4300050 - F4301 Get Next Number
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| 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 
  | ||||
| szKeyCompany | 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, 
  | ||||
| mnOrderTypeNextNumber | ORNN | MATH_NUMERIC | NONE | NONE | 
A code that tells the system which next number series to use when creating order numbers for this order type. There are ten available Next 
  | ||||
| mnCentury | CTRY | MATH_NUMERIC | NONE | NONE | 
The calendar century associated with the year. Enter is the first two digits of
the year. For example, 19 indicates any year beginning with 19 
  | ||||
| mnFiscalYear | FY | MATH_NUMERIC | NONE | NONE | 
A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal 
  | ||||
| cActionCode | ACTN | char | NONE | NONE | 
A code that specifies the action that is performed. Valid values are: A Add C Change  | ||||
| B4000710 Get Next Document Number | 
| F4301 Purchase Order Header |