PurgeHeldOrderRecords

Purge Held Order Records

Major Business Rule

Object Name: B4002020

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

Use this function to delete records from the Held Order Table (F4209).  You can delete records for 
the entrie sales order or specific sales detail line.  When deleting for specific line, this function 

will retrieve the next related hold code from the F4209 for the sales order involved.




Technical Specification

2.4Processing 

1.If  LNID is passed, delete records from Held Order File (F4209) using DOCO, DCTO, KCOO, SFXO, 
and LNID in the parameter data structure.  If LNID is not passed, use the first four keys to delete 

only.

2.After deleting using the line number (LNID),  read the F4209 using DOCO, DCTO, KCOO, SFXO for 

the first related record that has a blank release date (HORDJ).  Return the HOHCOD to the hold code 

output field.




^

Data Structure

D4002020 - Purge Held order Records

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

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

szOrderKeyCompanyKCOOcharNONENONE

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.

szHoldOrdersCodeHOLDcharNONENONE

A user defined code (42/HC) that identifies why an order is on hold.

szOrderSuffixSFXOcharOPTNONE

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 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

Related Functions

None

Related Tables

F4209 Held Orders