Table

RetailPackagePurch

Packages on purchase orders

Records packages that are on purchase orders. The key is the purchase order, package and line number. Each row holds the quantity, the quantity to receive and the cross docking quantity.

Table name
RetailPackagePurch
Module
Commerce merchandising
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
PurchPackageLineIdx
Replacement key
PurchPackageLineIdx
Key fields
PurchId, PackageId, LineNum
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchIdPurchase order that holds the package.String (20)
PurchIdBase
YesPurchTable.PurchIdRetailPackagePurchaseEntity
PackageIdPackage on the purchase order. Points to a package record.String
RetailPackageId
YesRetailPackageTable.PackageIdRetailPackagePurchaseEntity
LineNumNumber of the purchase order line.Real
LineNum
NoRetailPackagePurchaseEntity
AllocatedCrossDockQtyPackage quantity allocated for cross docking.Integer
RetailAllocatedCrossDockPackageQty
NoRetailPackagePurchaseEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyOrdered quantity of the package.Real
Qty
NoRetailPackagePurchaseEntity
QtyReceivedQuantity of the package to be received now, as the label says.Real
Qty
NoRetailPackagePurchaseEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

Each relation joins RetailPackagePurch to another table on the fields shown.

  • PurchLine → PurchLine

    Join on PurchId = PurchLine.PurchId, PackageId = PurchLine.RetailPackageId, LineNum = PurchLine.RBOPackageLineNum

    Many RetailPackagePurch records → exactly one PurchLine record

  • PurchTable → PurchTable

    Join on PurchId = PurchTable.PurchId

    Many RetailPackagePurch records → exactly one PurchTable record

  • RetailPackageTable → RetailPackageTable

    Join on PackageId = RetailPackageTable.PackageId

    Many RetailPackagePurch records → exactly one RetailPackageTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailPackagePurch; use one of them in Power BI, Power Platform or a data management project.

Need help with RetailPackagePurch in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk