This function gets the next valid Invoice Number. It uses business functions "X0010 - Get Next Number" to retrieve the next number and "A/R
Edit Object - Validate Document Number" (B03b0011) to ensure that the next number does not already exist on F0311. If the next number
does exist, X0010 is called again until a valid Invoice Number is found. If the next number could not be found after 100 attempts, the function
returns and error^
D4200630 - GetNextNumberForInvoice
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szSystemCode | NSY | char | NONE | NONE |
Designates the system number for the Next Number retrieval. See User Defined Codes, system code '98', record type 'SY'. | ||||
mnNextNumberIndex | NNIX | MATH_NUMERIC | NONE | NONE |
The array element number retrieved in the Next Number Revisions program. For example, the next voucher number is array element '02' of
| ||||
szDocumentCompany | 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,
| ||||
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
| ||||
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
| ||||
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
| ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
szErrorMessage | DTAI | char | NONE | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. |
B03B0011 Invoice Entry Master Business Function |
None |