UpdatePurchaseOrderHoldCode

Update Purchase Order Hold Code

Minor Business Rule

Object Name: B3100410

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This business function will update the Purchase Order table (F4301) with the Hold Code and write the 
row to the Held Orders table (F4209) if necessary.


1.2Setup Notes and Prerequisites

• None.

1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


If Input Hold Code <> Blanks and Input RORN <> 0 
Read F4301 using RORN,RCTO,RKCO and SFXO as keys.

If row found 

PHHCOD = Input Hold Code

Call Business function (B4300080) with HCRPER, PHAN8, PHTRDJ, PHDRQJ

   PHPDDJ, HCCYTP, PHSFXO in the Data Structure.

Update F4301 with Hold code. 

Endif.

Endif.


^

Data Structure

D3100410 - Update Purchase 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.

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.

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

F4209 Held Orders
F4301 Purchase Order Header