POTRANSDTL – PO Transaction Detail

System
Purchase Order (PO)
Prefix
POT
Primary key
COMPANY, DOC-TYPE, DOC-NBR-NUM, LINE-NBR, TRANS-SEQ
Fields
16
Updated by
221 programs
Referenced by
1 program

POTRANSDTL is the PO Transaction Detail table in Lawson Purchase Order (prefix POT). It is indexed by COMPANY, DOC-TYPE, DOC-NBR-NUM, LINE-NBR, TRANS-SEQ (POTSET1); alternate indexes: POTSET2. It is related 1:1 to PORECLINE and PORETURNLN. It is updated by AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 and 213 more and referenced by POIE.1. The table has 16 fields, 2 indexes and 2 documented relations.

About POTRANSDTL

No description in the Lawson data dictionary.

Fields (16)

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

Field / columnTypeDescription & valuesUpdated by
POT-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.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-DOC-TYPE PK
DOC_TYPE
Alpha 2This field contains the type of transaction.
  • PO Receiving
  • IN Receiving Inspection Rejection
  • RA Receiving Adjustment
  • VR Vendor Return
AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-SOURCE-DOC-A
SOURCE_DOC_A
Alpha 10 (Right Justified)This is the source document number if the document number in the source system is alphanumeric.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-DOC-NBR-NUM PK
DOC_NBR_NUM
Numeric 10AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-REC-NUMBER
REC_NUMBER
Numeric 10The receiver number. Assigned when this receiving information was added.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-LINE-NBR PK
LINE_NBR
Numeric 6This field contains the line number.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-LOT
LOT
Alpha 10This field contains the identifier for the homogeneous quantity of material.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-SUBLOT
SUBLOT
Alpha 6This field contains the identifier for a detail breakdown of a lot number.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-SERIAL
SERIAL
Alpha 16AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-BIN
BIN
Alpha 7This field contains a storage area for an item or any number of items.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-ITEM
ITEM
Alpha 32This field contains the item identifier.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-QUANTITY
QUANTITY
Signed 13.4This field contains the desired quantity.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-SECONDARY-QTY
SECONDARY_QTY
Signed 13.4This field contains the secondary quantity, which is tracked if the item is a catch weight item. This quantity is a memo quantity only. It is not used for valuation.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-HOLD-FLAG
HOLD_FLAG
Alpha 1This field enables this entire lot to be put on hold, not allowing any issues or transfers to be made for this lot.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-EXPIRE-DATE
EXPIRE_DATE
Numeric 8 (yyyymmdd)This field contains the expiration date for an entire lot.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
POT-TRANS-SEQ PK
TRANS_SEQ
Numeric 6AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)

Indexes (2)

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

IndexKeysFlagsConditionUsed in
POTSET1COMPANY, DOC-TYPE, DOC-NBR-NUM, LINE-NBR, TRANS-SEQPrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)
POTSET2COMPANY, REC-NUMBER, LINE-NBR, LOT, SUBLOT, SERIAL, DOC-TYPE, DOC-NBR-NUMKeyChange, SubsetWhere LOT != Spaces Or SERIAL != SpacesAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
PoreclinePORECLINENot RequiredValid When POT-REC-NUMBER != ZeroesPOT-COMPANYPRL-COMPANY, POT-REC-NUMBERPRL-REC-NUMBER, POT-LINE-NBRPRL-LINE-NBR
PoreturnlnPORETURNLNNot RequiredValid When POT-DOC-TYPE = "VR"POT-COMPANYPTL-COMPANY, POT-DOC-NBR-NUMPTL-RETURN-NUMBER, POT-LINE-NBRPTL-RET-LINE-NBR

Programs

Updated by (221)

Referenced by (1)