DetermineF4822ApplicationNo

Determine F4822 Application/Adjustment Number

Minor Business Rule

Object Name: N5200210

Parent DLL: CCRIN

Location: Client/Server

Language: NER

1.1Purpose
This business function determines what the next application number and adjustment number is for a contract.
1.2Setup Notes and Prerequisites

The contract must be specified.
1.3Special Logic

If the Inquiry mode is equal to ' ' (i.e. determine next number mode), perform the following:
1. If the application number passed in = 0, the last application number in the F4822 for the selected contract will be read and 1 will be added to it to return 

the proper values.

2. If the application number is <> 0, the last adjustment number for the application is read and 1 will be added to it.

Otherwise, if the Inquiry mode is equal to '1' (i.e. determine existance), check if application/adjustment number combination exists.



Data Structure

D5200210 - Determine F4822 Application/Adjustment Number


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnContractNoDOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szContractDocumentTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szCompanyKeyCoKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnApplicationNoAPPLMATH_NUMERICOPTNONE

The last or current application number for the specified contract. (The system assigns a new application number each time an invoice is 
issued for the contract.)

mnAdjustmentNoADJNMATH_NUMERICOPTNONE

A number used to control changes to closed applications. Closed applications represent invoices that have been sent. This number is 
always zero unless you reopen a previous application.

cInquiryModeEV01charOPTNONE

This parameter determines how the business function calculates or checks the application/adjustment 
number.


' ' and Application Number = 0: Determine next application number

' ' and Application Number <> 0: Determine next adjustment number for this application number

'1': Check existance of application and adjustment number for contract in F4822 table.

^

cErrorCodeERRCcharOPTNONE

This parameter returns the processing status of the business function.  The following values will be 
returned:


' ' : If cInquiryMode = ' ', Application/Adjustment number has been determined without error.  If 

cInquiryMode = '1', the entered Application Number/Adjustment Number exists in the file.

'1' : cInquiryMode = '1' only.  The entered Application Number/Adjustment Number does not exist in 

the file. 

'2' : A file error has occurred.  See JDE.LOG for details.

^

Related Functions

None

Related Tables

None