SQL data model - RECADV description

SQL Tables description description - RECADV

 

Abstract

This paragraph describes the RECADV (receipt advices) tables hierarchy and fields stored in the original "EdiPax+net+web-eancom.mdb".
Use Microsoft Access "tools/relation" menu or any other compatible tool to browse table relations (primary key, foreign key, integrity) and table structures.

The simpliest (basic) version of the RECeipt ADVice does not support packaging level (1 CPS only, no split per package) and all products will be added together at the package level.
For compatibility reason, we do ship the RECADV_group table. When creating despatch advices, you will have to create 1 "dummy" record in the "RECADV_group" table.
 

Remark : "Comment" fields must be 255 character long, minimum to accomodate EDIFACT FTX segment.

Table UNB

Common table for UNB segment.

Table UNH

Common table for UNH segment. FK_UNB is related to UNB.PK_UNB.

Table RECADV_header (or RECADV_D_96A_UN_EAN008)

RECADV_header optional
Database item name Description
PK_BGMprimary key (autonumber)
Audit numberunique internal key - refer to UpdateBatch - audit number
Interchange reference number required, EDIFACT mandatory interchange unique reference
Message reference number required, EDIFACT mandatory message unique reference inside interchange
Document reference number required, mandatory document reference inside the messages, unique key per sender
Document type receipt advice
Shipment Number required
Document Date required
Delivery daterequired
Order numberrequired, coded
Order date
Supplier coderequired, coded
Supplier nameoptional
Buyer coderequired, coded
Buyer nameoptional
Delivery coderequired, coded
Delivery nameoptional
Status record flow status
FK_UNHforeign key pointing to higher level primary key

Table RECADV_group or (RECADV_D_96A_UN_EAN008_SG10)

The simplified, basic, mono package version do not include multi package shipment information - included for upgrade/compatibility reason

RECADV Group.
Database item name Description
PK_CPSprimary key (autonumber)
Package IDrequired
Parent IDparent package ID
Packaging level
Mark type
OuterPack type
Number package
Number items
Package type
Marking instructions
Item type
Serial number
GIN qualifier
ID number1
ID number2
Status record flow status
FK_BGMforeign key pointing to higher level primary key

Table RECADV_items (or RECADV_D_96A_UN_EAN008_SG15)

RECADV items when backorder
Database item name Description
PK_LINprimary key (autonumber)
RECADV Line
GTINGlobal Trade Item Number - coded
EAN number
Supplier article
Buyer part
Promotional variant
Despatch quantity
Quantity unit
Item identification
Serial numberbatch number also
Serial mark
GIN qualifier
Quantity variancewhen backorder
Discrepancy reasonwhen backorder
Backorder delivery date
Quantity variance qualifierwhen backorder
CU in TUnumber customer units inside trade units
Item description
Comment
ID number1
ID number2
Marking instructions
Reference line numberreference to order line
Status record flow status
FK_CPSforeign key pointing to higher level primary key

See also

SQL Data Model and Relations

ORDERS SQL tables description

INVOIC SQL tables description

Flow SQL tables description