ReleaseVendorScheduleMaintainArr

Release Vendor Schedule, Maintain Array

Major Business Rule

Object Name: B3401170

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This business function will be used to create and maintain an array of 99 elements, which will 
contain purchasing information passed in from the calling program and can later be retrieved by the program 

for general processing.


1.2Setup Notes and Prerequisites


1.3Special Logic

2.Technical Specifications
Note:The Array will have a maximum of 99 elements.

If the Mode is '1' (Insert Mode)

If GENLNG is 0(NULL),

Create Array of 99 elements each containing AN8, DOCO, DCTO, KCOO, LLX. Initialize the 
array's AN8 values to 0.

Return GENLNG of Array to (Output Array Pointer).

End if
Search from the start of Array for an element that matches the (Input AN8) and store the index 
of the element in Wk Index.

If match found and Wk Index >= 0 and <= 99

Copy (Input LLX) to element's LLX field where the array element's index = Wk 

Index.

Else

Search from the start of the Array for the first element to have an AN8 value of 0 and 
store the index of the element found in Wk Index.

If match found and Wk Index >= 0 and <= 99

Copy the input parameters (AN8, DOCO, DCTO, KCOO, LLX), to the array element with 
index = Wk Index.

Else
ERRC = '1'

End if

End if

End if


If the Mode is '2' (Fetch Mode)

Search from the start of the Array for element with AN8 matching (Input AN8) and store the 
index in Wk Index

If match found and Wk Index >= 0 and <= 99

Move node item DOCO to output parameter (DOCO)

Move node item DCTO to output parameter (DCTO)

Move node item KCOO to output parameter (KCOO)

Move node item LLX to output parameter (LLX) 

Else

ERRC = '1'

End if

End if


If Mode = '3'

Destroy Array

End if 


If errors occur during processing, move '4365' to DTAI.

Note that the Array Pointer(GENLNG) value returned by the business function during the first read 

must be stored in the calling application and passed in over and over again during subsequent reads.


^

Data Structure

D3401170 - Release Vendor Schedule, Maintain Array


Data Item Data Structure DescriptionI/ORequiredNotes

GENLNG      Array Pointer                  I/OYes

AN8            Vendor Number                  I/OYes

DOCO            Order Number                  I/OYes

DCTO            Document Type                  I/OYes

KCOO            Company                        I/OYes

LLX            Line Id (Size 3)                  I/OYes

EV01            Mode                              IYes      '1' = Insert 

                                                                        '2' = Fetch 

                                                                        '3' = Destroy

ERRC            Status                        O      '0' = Match 

                                                                        '1' = No Match

DTAI            Data Item                         O      Contains error message id if 

error 

                                                                        exists.



^

Parameter NameData ItemData TypeReq/OptI/O/Both
idArrayPointerGENLNGIDNONENONE

General purpose ID variable.

mnVendorNumberAN8MATH_NUMERICNONENONE

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

mnOrderNumberDOCOMATH_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

szCompanyKCOOcharNONENONE

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.

mnLineIDLLXMATH_NUMERICNONENONE

This identifies the lowest level in any bill of material at which a particular component may appear..

cModeEV01charNONENONE

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

cStatusERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

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.

Related Functions

None

Related Tables

None