WriteHoldCode

Write Hold Code

Major Business Rule

Object Name: B4001100

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

Checks for the existance of a hold code and writes  one if it does not exist to the F4208 file with 

information passed from the calling application or program.




Technical Specification


Retrievals:

If Hold Code Type CTYP is not 'L' or 'O' or Responsible Person RPER is zero:

Retrieve the fields CTYP and RPER from the table F42008.  Use the business function 

B4300100 to retrieve these values (GetHoldCodeInformation).


Using the following as a fetch key : HOLD, DCTO, DOCO, KCOO, SFXO, MCU, TRDJ, LNID fetch record from 

the Hold Code Table (F4209). 


If the Fetch Fails then Insert the record loading the data below:


If the Fetch Passes and the release date is blank(RDJ) then Update the record loading the data below:


HOHCOD with HOLD (DS = GBR Data Structure)

HODOCO with DODO (DS)

HODCTO with DCTO (DS)

HOKCOO with KCOO (DS)

HOMCU with MCU (DS)

HORDJ with zeros

HORPER with RPER from table F42009 or DS.

HOAN8 with AN8 (DS)

HOTRDJ with TRDJ (DS)

HODRQJ with DRQJ (DS)

HOPDDJ with PDDJ (DS)

HOCTYP with CTYP from table F42009 or DS.

HOSFXO with SFXO (DS)

HORDC with blanks

HOLNID from LNID (DS)

HOITM from ITM (DS)

HOLITM from LITM (DS)

HOAITM from AITM (DS)

HORDB with blanks

HORDT with zeros



Data Structure

D4001100 -  Write Hold Code

Parameter NameData ItemData TypeReq/OptI/O/Both
szBranchPlantMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szHoldCodeHOLDcharNONENONE

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

mnSupplierNumberAN8MATH_NUMERICNONENONE

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

jdTransactionDateTRDJJDEDATENONENONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

jdRequestedDateDRQJJDEDATENONENONE

The date that an item is scheduled to arrive or that an action is scheduled for completion.

jdPromisedDatePDDJJDEDATENONENONE

The promised shipment date for either a sales order or purchase order. The Supply and Demand Programs use this date to calculate 
Available to Promise information. This value can be automatically calculated during sales order entry. This date represents the day that the item 
can be shipped from the warehouse.

szOrderSuffixSFXOcharNONENONE

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.

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

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.

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.

mnOrderLineNumberLNIDMATH_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.

mnShortItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szLongItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szThirdItemNumberAITMcharNONENONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned item number. 2.  2nd Item Number - The 25-digit, free-form, user 
defined alphanumeric item number. 3.  3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item number.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

szHoldCodeTypeCTYPcharNONENONE

A code that determines whether the hold code applies to an individual line within an order (L) or the order as a whole (O). For credit holds, 
the hold code applies to the whole order. For margin holds, you can apply the hold code to a line or the whole order.

mnResponsiblePersonRPERMATH_NUMERICNONENONE

The address book number of the person who is responsible for reviewing and releasing orders placed on hold.

mnDistributionLineNumberDLNIDMATH_NUMERICOPTNONE

mnParentAddressNumberPA8MATH_NUMERICOPTNONE

The address book number of the parent company. The system uses this number to associate a particular address with a parent company 
or location. Any value that you enter in this field updates the Address Organizational Structure Master table (F0150) for the blank structure 
type. This address number must exist in the Address Book Master table (F0101) for validation purposes. Examples of address book records 
that would have a parent number include:   o  Subsidiaries with parent companies     o  Branches with a home office     o  Job sites with a general 
contractor 

mnShipToAddressNumberSHANMATH_NUMERICOPTNONE

The address number of the location to which you want to ship this order. The address book provides default values for customer address, 
including street, city, state, zip code, and country.

Related Functions

B4001110 Get Hold Code Information

Related Tables

F42008 Order Hold Constants
F4209 Held Orders