| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
| szRelatedPoSoNumber | RORN | char | OPT | INPUT | 
A number that identifies a secondary purchase order, sales order, or work order that is associated with the original order. This number is for 
 informational purposes only.
  | 
| szRelatedOrderType | RCTO | char | OPT | INPUT | 
A user defined code (system 00, type DT) that indicates the document type of the secondary or related order. For example, a purchase 
 order might be document type OP and might have been created to fill a related work order with document type WO.  | 
| szCompanyKeyRelated | RKCO | char | OPT | INPUT | 
The key company that is associated with the document number of the related order.
  | 
| cTypeAddressNumber | ANTY | char | OPT | INPUT | 
This will indicate the address number that is associated with the order address information.  The possible values are as follows:
   1 Sold-to 
 Address Number (Sales Orders) Supplier Address Number (Purchase Orders)
   2 Ship-to Address Number  | 
| mnDocumentOrderInvoiceE | DOCO | MATH_NUMERIC | OPT | INPUT | 
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.  | 
| szOrderType | DCTO | char | OPT | INPUT | 
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
  | 
| szCompanyKeyOrderNo | KCOO | char | OPT | INPUT | 
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.  | 
| szUserId | USER | char | OPT | INPUT | 
The code that identifies a user profile.
  | 
| szProgramId | PID | char | OPT | INPUT | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
 interactive program is P4210, and the number of the Print Invoices batch process report is R42565.
The program ID is a variable length value. 
 It is assigned according to a structured syntax in the form TSSXXX, where:
T
The first character of the number is alphabetic and identifies the 
 type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
 program.
SS
The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
 indicates that this program belongs to system 42, which is the Sales Order Processing system.
XXX
The remaining characters of the numer are 
 numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
 program.
  | 
| jdDateUpdated | UPMJ | JDEDATE | OPT | INPUT | 
The date that specifies the last update to the file record.  | 
| szWorkStationId | JOBN | char | OPT | INPUT | 
The code that identifies the work station ID that executed a particular job.
  | 
| mnTimeLastUpdated | UPMT | MATH_NUMERIC | OPT | INPUT | 
The time that specifies when the program executed the last update to this record.  |