Functional Description
Purpose
To retrieve a complete row in the Purchase Order Receiver file (F43121) given: Order # and Type and 
Suffix and Line #, Company, and # of Lines
Technical Specification
Edits:
IF (Index != 2) THEN
 Index = 1
IF (Index  = 1) THEN
 IF Matching Type (MATC) is not specified THEN
  Retrieve first record matching the rest of the keys.
 ENDIF
ELSE
 Retreive F43121 by DOC and DCT and KCO.
ENDIF
Retrievals:
If the record is found, then allocate and copied record into pointer.
D4300370 - Structure for GetPurchaseOrderReceipt
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE | 
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
  | ||||
| szOrderType | DCTO | char | NONE | NONE | 
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 
  | ||||
| szOrderCompany | KCOO | char | NONE | NONE | 
A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
  | ||||
| szOrderSuffix | SFXO | char | NONE | NONE | 
In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
  | ||||
| mnOrderLineNumber | LNID | MATH_NUMERIC | NONE | NONE | 
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
  | ||||
| cReturnFlag | EV01 | char | NONE | NONE | 
An option that specifies the type of processing for an event.  | ||||
| cErrorCode | ERR | char | NONE | NONE | 
The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
  | ||||
| cCallType | ERR | char | NONE | NONE | 
The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
  | ||||
| idPointerToF43121DataStructure | GENLNG | ID | NONE | NONE | 
General purpose ID variable.  | ||||
| cMatchType | MATC | char | NONE | NONE | 
A code, attached to each purchase-order detail record or receipt record, that indicates whether a voucher exists and whether the voucher 
  | ||||
| mnIndex | CDL | MATH_NUMERIC | NONE | NONE | 
The length of the user defined code. It cannot be greater than 10 characters.  | ||||
| szReceiptCompany | 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, 
  | ||||
| mnReceiptNumber | 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 
  | ||||
| szReceiptType | 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 
  | ||||
| mnNumberOfLines | NLIN | MATH_NUMERIC | NONE | NONE | 
A number representing the number of lines on either a purchase or sales order.
or The number of receivers recorded during the receipts 
  | ||||
| None | 
| None |