VerifyAndGetSalesHdr

Verify And Get Sales Header

Minor Business Rule

Object Name: B4200340

Parent DLL: CDIST

Location: Client/Server

Language: C

This Business Function Checks for the existence of Sales Order Header Record in the Sales Header 
Table (F4201) and optionally (when cReturnPtr = 1) returns the pointer to the F4201 row. If you are 

getting a pointer to F4201 record, please use the Business Function 'Free Ptr to Data Structure' to free up 

the memory allocated by this function. The required input parameters for this function are DOCO, DCTO, 

KCOO and cCallType and the optional parameters are "szErrorMesg, cReturnPtr and cSuppressErrorMesg" 

and the output parameter of this function is "idF4201Ptr"

^

Data Structure

D4200340 - Verify And Get Sales Header

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOrderNoDOCOMATH_NUMERICNONENONE

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.

szOrderTypeDCTOcharNONENONE

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

szKeyCompanyKCOOcharNONENONE

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.

cCallTypeEV01charNONENONE

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

szErrorMesgDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorMesgEV02charNONENONE

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

cReturnPtrEV03charNONENONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

idF4201PtrGENLNGIDNONENONE

General purpose ID variable.

cHistoryRecordFlagEV04charOPTOUTPUT

PeopleSoft event point processing flag 04.

Related Functions

None

Related Tables

F4201 Sales Order Header File