Table
InterCompanyPurchSalesReference
Sales/purchase references
Links a purchase order to a sales order. Each row pairs one purchase order number with one sales order number. The key is the sales order plus the purchase order.
- Table name
InterCompanyPurchSalesReference- Module
Procurement and sourcing- Table group
Worksheet- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
SalesPurchIdx- Replacement key
None- Key fields
SalesId, PurchId- Model
Foundation
Fields (8)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesIdNumber of the sales order in the pair. It points to a sales order record. | String (20)SalesId | Yes | SalesTable.SalesId | None |
PurchIdNumber of the purchase order in the pair. It points to a purchase order record. | String (20)PurchId | Yes | PurchTable.PurchId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
Relations (2)
Each relation joins InterCompanyPurchSalesReference to another table on the fields shown.
PurchTable→PurchTableJoin on
PurchId = PurchTable.PurchIdMany InterCompanyPurchSalesReference records → exactly one PurchTable record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdMany InterCompanyPurchSalesReference records → exactly one SalesTable record
Get this data out
No public entity reads from InterCompanyPurchSalesReference. Its data is only reachable through the application, a custom entity or a database export.
Need help with InterCompanyPurchSalesReference in a report, an integration or a migration? Talk to Dr Dynamics.