OECOMMHDR – Order Entry Comment Header

System
Billing (BL)
Prefix
OCH
Primary key
COMPANY, STD-COMM
Fields
4
Updated by
0 programs
Referenced by
0 programs

OECOMMHDR is the Order Entry Comment Header table in Lawson Billing (prefix OCH). It is indexed by COMPANY, STD-COMM (OCHSET1). It is related 1:1 to OECOMPANY and 1:M to OESTDCOMM. The table has 4 fields, 1 index and 2 documented relations.

About OECOMMHDR

This file stores the header for standard comments. Standard comments are used to save keystrokes during order entry for frequently used comments. This code is all that needs to be entered to copy the associated comments onto the order, standard order, or invoice.

Fields (4)

Column = COBOL field name without the OCH- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored. PK = primary key (present in every index); SETn = leading/alternate key of that index.

Field / columnTypeDescription & valuesUpdated by
#OCH-COMPANY PK
COMPANY
Numeric 4Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources.—
#OCH-STD-COMM PK
STD_COMM
Alpha 4User-defined code tied to comment text. The standard comment code can be simply added to an order or a line and the text tied to the code will default onto the order. There are options users can choose when setting up the codes indicating where the text should print. User-defined value identifying a standard comment. Standard comments are established on BL03.1 (Standard Comments).—
#OCH-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)The description of the standard comment.—
#OCH-LAST-SEQ
LAST_SEQ
Numeric 3Last sequence number indicating the last line of text tied to this standard comment code.—

Indexes (1)

Keys are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
OCHSET1
  1. COMPANY
  2. STD-COMM
PrimaryBLI2.1

Relations

Relationship map — 1:1 lookups/parents on the left, 1:M children on the right (up to 14 each)
OECOMPANYOESTDCOMMOECOMMHDR

One to one (1) — lookups and parents

RelationTableRulesConditionField map
OecompanyOECOMPANYRequired
OCH-COMPANY→OEC-COMPANY

One to many (1) — child tables

RelationTableRulesConditionField map
OestdcommOESTDCOMMDelete Cascades
OCH-COMPANY→OSC-COMPANY
OCH-STD-COMM→OSC-STD-COMM
—→OSC-LANGUAGE-CODE
—→OSC-SEQ

Programs

No Lawson programs are documented as updating or referencing this table.