GetNextSOorPOTextRow

Get Next SO or PO Text Row

Minor Business Rule

Object Name: B4300560

Parent DLL: CDIST

Location: Client/Server

Language: C

Purpose
This BsFn will get the next sales/purchase order text record by index/key number combination and have 

the capability to provide records by either full key or partial key. It will have the capability to 

provide the user with field values of every record.


Setup Notes and Prerequisites

Request Type = '1' ==> Get first SO/PO Text Row using Index/Key

                       combination and store hRequest.

Request Type = '2' ==> Get Next Available SO/PO Text Row using

                       the hRequest.

Request Type = '3' ==> Close table, free hRequest.

^

Data Structure

D4300560 - Get Next SO or PO Text Row

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentNumberDOCOMATH_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.

szDocumentTypeDCTOcharNONENONE

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

szOrderNumberKeyCoKCOOcharNONENONE

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_NUMERICNONENONE

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.

mnWOLineNumberLINSMATH_NUMERICNONENONE

The Line Number associated with Work Order text information.

szMessageTextLineTXLNcharNONENONE

An internal counter used by order processing programs to determine the order in which the lines of a print message appear.

cRequestTypeEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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.

nIndexINT01integerNONENONE

Number of Days in Future to Query for Responses Due. 

nKeysINT02integerNONENONE

Number of Days in the Past to Query for Quote Requests Received. 

cEndOfFileEV01charNONENONE

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

cReturnFieldValuesEV01charNONENONE

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

cSuppressErrorMessageEV01charNONENONE

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

idhRequestF4314GENLNGIDNONENONE

General purpose ID variable.

Related Functions

None

Related Tables

F4314 Sales Order/Purchasing Text Detail Lines