POAUDIT – Audit Records

System
Purchase Order (PO)
Prefix
PAU
Primary key
AUDIT-TYPE, AUDIT-ACTION, COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, PO-REVISION, PO-LINE-NBR, AOC-CODE, LINE-SEQ, FLD-NBR, UPDATE-DATE, UPDATE-TIME
Fields
18
Updated by
248 programs
Referenced by
0 programs

POAUDIT is the Audit Records table in Lawson Purchase Order (prefix PAU). It is indexed by AUDIT-TYPE, AUDIT-ACTION, COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, PO-REVISION, PO-LINE-NBR, AOC-CODE, LINE-SEQ, FLD-NBR, UPDATE-DATE, UPDATE-TIME (PAUSET1); alternate indexes: PAUSET2, PAUSET3 and PAUSET4. It is related 1:1 to MMDIST, POLINE, POREVISION and PURCHORDER. It is updated by AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 and 240 more. The table has 18 fields, 4 indexes and 4 documented relations.

About POAUDIT

No description in the Lawson data dictionary.

Fields (18)

Column = COBOL field name without the PAU- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
PAU-AUDIT-TYPE PK
AUDIT_TYPE
Alpha 2The type of source record that is being audited.
  • HD PO Header
  • HA Spread AOC
  • LN PO Line
  • LA Misc/Line AOC
  • DS PO Distribution
AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-AUDIT-ACTION PK
AUDIT_ACTION
Alpha 1The action (add, change, etc.) that is being audited.
  • A Add
  • C Change
  • L Cancel
  • B B/O Cancel
  • P Approve
  • E Reject
  • U Unrelease
AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-COMPANY PK
COMPANY
Numeric 4The company number.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-PO-NUMBER PK
PO_NUMBER
Alpha 14 (Right Justified)This field contains the number representing the purchase order.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-PO-RELEASE PK
PO_RELEASE
Numeric 4Used to identify a purchase order release (created from a Blanket or Standing order).AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-PO-CODE PK
PO_CODE
Alpha 4This is the purchase order code.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-PO-LINE-NBR PK
PO_LINE_NBR
Numeric 6The purchase order line number this record is associated with.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-FLD-NBR PK
FLD_NBR
Numeric 4This field contains the purchase order dictionary field number.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-AOC-CODE PK
AOC_CODE
Alpha 2This field contains the identifier for the add-on cost associated with this line item.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-UPDATE-DATE PK
UPDATE_DATE
Numeric 8 (yyyymmdd)This field contains the date the record was updated.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-UPDATE-TIME PK
UPDATE_TIME
Numeric 6This field contains the system time when the record was updated.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-PO-REVISION PK
PO_REVISION
Numeric 3The purchase order revision number. Assigned sequentially by the system when the purchase order is revised.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-BEFORE-IMAGE
BEFORE_IMAGE
Alpha 60This field contains the field image before the change.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-AFTER-IMAGE
AFTER_IMAGE
Alpha 60This field contains the field image before the change.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-USER-ID
USER_ID
Alpha 10 (Lower Case)Contains the user ID of the person who revised the purchase order.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-PRINT-REV
PRINT_REV
Alpha 1
  • Y Yes
  • N No
AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-DESC
DESC
Alpha 30 (Lower Case)The description of the field that has changed.AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)
PAU-LINE-SEQ PK
LINE_SEQ
Numeric 3AM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +52 more (list truncated in source)

Indexes (4)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
PAUSET1AUDIT-TYPE, AUDIT-ACTION, COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, PO-REVISION, PO-LINE-NBR, AOC-CODE, LINE-SEQ, FLD-NBR, UPDATE-DATE, UPDATE-TIMEPrimaryAM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +22 more (list truncated in source)
PAUSET2COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, PO-REVISION*, UPDATE-DATE*, UPDATE-TIME*, PO-LINE-NBR, AOC-CODE, LINE-SEQ, FLD-NBR, AUDIT-TYPE, AUDIT-ACTIONKeyChangeAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)
PAUSET3COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, PO-LINE-NBR, PO-REVISION*, AOC-CODE, LINE-SEQ, UPDATE-DATE*, UPDATE-TIME*, FLD-NBR, AUDIT-TYPE, AUDIT-ACTIONKeyChangeAM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +22 more (list truncated in source)
PAUSET4COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, PO-LINE-NBR, AOC-CODE, LINE-SEQ, PO-REVISION*, UPDATE-DATE*, UPDATE-TIME*, FLD-NBR, AUDIT-TYPE, AUDIT-ACTIONKeyChangeAM19.1, AM19.2, AP115, AP125, AP126, AP131, AP20.1, AP20.2 +22 more (list truncated in source)

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
MmdistMMDISTNot RequiredValid When PAU-LINE-SEQ != ZeroesPAU-COMPANYMMD-COMPANY, PAU-PO-NUMBERMMD-DOC-NUMBER, PAU-PO-RELEASEMMD-DOC-NBR-NUM, PAU-PO-CODEMMD-PO-CODE, PAU-LINE-SEQMMD-LINE-NBR, PAU-AOC-CODEMMD-AOC-CODE, PAU-LINE-SEQMMD-LINE-SEQ
PolinePOLINERequiredWhen PAU-PO-LINE-NBR != Zeroes And PAU-LINE-SEQ = ZeroesPAU-COMPANYPLI-COMPANY, PAU-PO-NUMBERPLI-PO-NUMBER, PAU-PO-RELEASEPLI-PO-RELEASE, PAU-PO-CODEPLI-PO-CODE, PAU-PO-LINE-NBRPLI-LINE-NBR
PorevisionPOREVISIONRequiredPAU-COMPANYPVS-COMPANY, PAU-PO-NUMBERPVS-PO-NUMBER, PAU-PO-RELEASEPVS-PO-RELEASE, PAU-PO-CODEPVS-PO-CODE, PAU-PO-REVISIONPVS-PO-REVISION
PurchorderPURCHORDERRequiredWhen PAU-PO-LINE-NBR = Zeroes And PAU-LINE-SEQ = ZeroesPAU-COMPANYPCR-COMPANY, PAU-PO-CODEPCR-PO-CODE, PAU-PO-NUMBERPCR-PO-NUMBER, PAU-PO-RELEASEPCR-PO-RELEASE

Programs

Updated by (248)