UpdateSalesOrderHoldCode

Update Sales Order Hold Code

Minor Business Rule

Object Name: B3100260

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1. Functional Description 1.1 Purpose This business function will update the Sales Order table (F4201) with the Hold Code and write the row 
to the Held Orders table (F4209) if necessary. 1.2 Setup Notes and Prerequisites None. 1.3 Special Logic None. 2. Technical 
Specifications 2.4 Processing  If Input Hold Code <> Blanks and Input RORN <> 0  Read F4201) using DOCO,DCTO,KCOO as keys. If row found  SHHCOD = 
Input Hold Code Call Business function (B4300080) with HCRPER, SHAN8, SHTRDJ, SHDRQJ    SHPDDJ, HCCYTP, SHSFXO and 0 as 
LNID in the Data Structure. Update F4201 with Hold code.  Endif. Endif. ^

Data Structure

D3100260 - Update Sales Order Hold Code

Parameter NameData ItemData TypeReq/OptI/O/Both
szDocumentNumberRORNcharNONENONE

A number that identifies a secondary purchase order, sales order, or work order that is associated with the original order. This number is for 
informational purposes only.

szDocumentTypeRCTOcharNONENONE

A user defined code (system 00, type DT) that indicates the document type of the secondary or related order. For example, a purchase 
order might be document type OP and might have been created to fill a related work order with document type WO.

szKeyCompanyRKCOcharNONENONE

The key company that is associated with the document number of the related order.

szHoldCodeHCODcharNONENONE

A user defined code (42/HC) that identifies why an order was placed on hold (for example, credit, budget, or margin standards were 
exceeded).

Related Functions

B4001100 Write Hold Code

Related Tables

F4201 Sales Order Header File