GetReceiverNextLineNumber

Get Receiver Next Line Number - 43A

Minor Business Rule

Object Name: B7601090

Parent DLL: CLOC

Location: Client/Server

Language: C

Business Function Specification

Source NameB7601090DesignerMiriam Kato
Data Structure 
D7601090ProgrammerMiriam Kato
Function Name
 Get Receiver Next Line NumberSystem Code76
Function CategoryGet
Function UseGET

Revisions Log 
DateProgrammerSAR NumberDescription
06/08/98Miriam Kato1844117Created



1.Functional Description

1.1Purpose
This Business Function gets the next NLIN ("Number of Lines") of F43121. It does a partial fetch with the key MATC, DOCO, PDCT, KCOO, LNID and 
DOC, counts the number of records and returns the greater number of NLIN for that specific LNID.


1.2Setup Notes and Prerequisites


1.3Special Logic


Technical Specifications

2.1 Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
MATCcMatchTypeIY

DOCOmnOrderNumberInvoiceIY

PDCTszDocumentTypePurchaseIY

KCOOszOrderCompanyIY

LNIDmnLineNumberIY

DOCmnDocumentNumberVoucherIY

NLINmnNumberofLinesOY

EV01cReturnStatusON0 = No error; 1 = Error



2.2Related Tables 

Table Table Description
F43121PO Receipts File


2.3Related Business Functions

Source NameFunction Name



2.4Processing 


1Partial Fetch of F43121
2Count number of records



^

Data Structure

D7601090 - Get Receiver Next Line Number - Brazil                - 43A

Data Item Data Structure DescriptionI/ORequired
MATCcMatchTypeIY

DOCOmnOrderNumberInvoiceIY

PDCTszDocumentTypePurchaseIY

KCOOszOrderCompanyIY

LNIDmnLineNumberIY

DOCmnDocumentNumberVoucherIY

NLINmnNumberofLinesOY

EV01cReturnStatusON


^

Parameter NameData ItemData TypeReq/OptI/O/Both
cMatchTypeMATCcharOPTNONE

A code, attached to each purchase-order detail record or receipt record, that indicates whether a voucher exists and whether the voucher 
or receipt record has been reversed. Valid values are: 1 No voucher exists. 2 A voucher exists. 3 The voucher has been reversed. 4 The receipt 
record has been reversed. Note: Record types 3 and 4 are audit records only; you cannot access these record types for the Voucher Match 
program (P4314) or the PO Receipts program (P4312).

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

szDocumentTypePurchasePDCTcharOPTNONE

A value that is hard-coded in the originating programs and passed to the Accounts Payable system. In Accounts Receivable, the document 
type on the purchase order issued by the customer can be entered directly into the Accounts Receivable Ledger (F03B11)

szCompanyKeyOrderNoKCOOcharOPTNONE

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.

mnLineNumberLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnDocVoucherInvoiceEDOCMATH_NUMERICOPTNONE

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.

mnNoOfLinesOnOrderNLINMATH_NUMERICOPTNONE

A number representing the number of lines on either a purchase or sales order. or The number of receivers recorded during the receipts 
process.  This field will be used in Voucher Matching.

cReturnStatusEV01charOPTNONE

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

mnAddressNumberAN8MATH_NUMERICOPTNONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

szCostCenterMCUcharOPTNONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

Related Functions

None

Related Tables

None