Table

TAMRebateTable

Rebate management

Holds rebate management agreements, keyed by the rebate management number. Each one sets the type (rebate or royalty), the customer, vendor or item scope, the calculation method, the posting profiles and the status. It links to deals, categories, groups, pricing rules and posting profiles.

Table name
TAMRebateTable
Module
Cross-module and platform
Table group
WorksheetLine
Table type
Regular
Data per company
No
Configuration key
LogisticsBasic
Primary index
RebateIdx
Replacement key
None
Key fields
RebateId
Model
RebatesAndDeductions

Fields (46)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RebateIdRebate management number that identifies the agreement.String (20)
TAMRebateId
YesGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
AccountCodeShows whether the account relation is a single account, a group or all accounts.Enum
TAMRebateAccountCode
TableGroupAll (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
AccountRelationCustomer or vendor account, or group, that the agreement applies to.String (20)
TAMRebateAccountRelation
NoCustTable.AccountNumVendTable.AccountNumGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
AveragePurchPriceNoOfMonthsNumber of months used for the average purchase price basis.Integer
TAMRebateAvgPurchPriceNoOfMonths
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
CalculationMethodMethod used for the rebate: stepped, cumulative, rolling or total.Enum
TAMRebateCalcMethod (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
CategoryPoints to the rebate reduction principle by its system record ID.Int64
TAMRebateCategoryRecId
NoTAMRebateCategory.RecIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
DescriptionShort text describing the agreement.String (60)
Description
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
DocumentNotesNotes text kept for documents linked to the agreement.String (60)
TAMRebateDocumentNotes
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
GuaranteePostingIdPosting profile used for the guarantee, taken from the rebate posting profiles.String
TAMRebateGuaranteePostingId
NoTAMRebatePosting.RebatePostingIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
IncludeCreditNoteYes/No flag for including credit notes.Enum
TAMRebateIncludeCN
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
IncludeDiscountedAmountYes/No flag for including discounted amounts.Enum
TAMRebateIncludeDisc
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
IncludeFreeTextYes/No flag for including free text lines.Enum
TAMRebateIncludeFT
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
IncludeSettlementDiscountYes/No flag for including settlement discounts.Enum
TAMRebateIncludeSettleDisc
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
IncludeTaxYes/No flag showing whether amounts include sales tax.Enum
TAMRebateGSTInclusive
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
InventDimIdNumber of the inventory dimension record linked to the agreement.String (20)
InventDimId
NoInventDim.inventDimIdNone
ItemCodeShows whether the item relation is a single item, a group or all items.Enum
TAMRebateItemCode
TableGroupAll (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
ItemRelationItem or item group that the agreement applies to.String (20)
TAMRebateItemRelation
NoInventTable.ItemIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
MatchedByOrderAccountYes/No flag showing whether matching is done by the order account.Enum
TAMRebateMatchedByOrderAccount
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
MinimumAmountMinimum amount set for the agreement. The currency is not stated in the metadata.Real
TAMRebateMinAmount
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
ModuleInventCustVendModule the agreement applies to: inventory, customer or vendor.Enum
ModuleInventCustVend (enum)
YesTAMRebatePosting.ModuleInventCustVendTAMRebatePosting.ModuleInventCustVendGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
PackedQueryStored query settings that select the transactions for the agreement.Container
PackedQueryRun
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
PaidInvoicesYes/No flag limiting the agreement to paid invoices only.Enum
TAMRebatePaidInvoices
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceComponentCombinationPoints to a price attribute group combination by its system record ID.Int64
GUPPriceComponentCodeCombinationRecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntity
PricingAttributesHeaderAreMatchedYes/No flag showing whether pricing attributes are matched at header level.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingAttributesLineAreMatchedYes/No flag showing whether pricing attributes are matched at line level.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingRuleHeaderPoints to a price rule by its system record ID, used at header level.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntity
PricingRuleLinePoints to a price rule by its system record ID, used at line level.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntity
RebateAgreementTypeName of the rebate agreement type.String (60)
GUPRebateAgreementTypeName
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntity
RebateBasisShows whether the rebate is based on quantity or value.Enum
TAMRebateBasis (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
RebateBasisVendFor vendor rebates, shows whether the basis is purchase orders or sales orders.Enum
TAMRebateBasisVend (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
RebateCompanyIdCompany whose customers, items and dimensions the agreement uses.String
SelectableDataArea
YesCustTable.DataAreaIdInventDim.DataAreaIdInventTable.DataAreaIdVendTable.DataAreaIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
RebateDealPoints to the rebate management deal by its system record ID.Int64
TAMRebateDealRecId
YesTAMRebateDeal.RecIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
RebatePostingIdPosting profile used by the agreement, matched on rebate type and module.String
TAMRebatePostingId
NoTAMRebatePosting.RebatePostingIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
RebatePriceBasisPrice basis used: FIFO, latest purchase price, average purchase price or sales price.Enum
TAMRebatePriceBasis (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
RebateTypeShows whether the agreement is for a rebate or a royalty.Enum
TAMRebateType (enum)
NoTAMRebatePosting.RebateTypeTAMRebatePosting.RebateTypeGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
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
SourceTypeType of source transaction used: order, delivery or invoice.Enum
TAMRebateSourceType (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
StatusIdStatus of the agreement. It points to a rebate status record.String (20)
TAMRebateStatusId
NoTAMRebateStatusTable.StatusIdGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
SupportNegativeTierYes/No flag for automatic negative tiers.low confidenceEnum
TAMRebateSupportNegativeTier
NoYes (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
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
UnitIdUnit of measure used by the agreement.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
UnitTypeShows whether the unit is the inventory unit or the catch weight unit.Enum
PdsUnitType (enum)
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity
VariantIdProduct variant number the agreement applies to.String
RetailVariantId
NoGUPTAMRebateAndDeductionsAgreementHeaderV2EntityGUPTAMRebateAndDeductionsAgreementHeaderEntityTAMRebateAndDeductionsAgreementHeaderEntity

Indexes (3)

Relations (19)

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

  • CustTable → CustTable

    Join on RebateCompanyId = CustTable.DataAreaId, AccountCode = TableGroupAll::Table, ModuleInventCustVend = ModuleInventCustVend::Cust, AccountRelation = CustTable.AccountNum

    Many TAMRebateTable records → exactly one CustTable record

  • CustTableVendRebate → CustTable

    Join on RebateCompanyId = CustTable.DataAreaId, RebateBasisVend = TAMRebateBasisVend::Sales, AccountCode = TableGroupAll::Table, ModuleInventCustVend = ModuleInventCustVend::Vend, AccountRelation = CustTable.AccountNum

    Many TAMRebateTable records → zero or one CustTable record

  • InventDim → InventDim

    Join on RebateCompanyId = InventDim.DataAreaId, InventDimId = InventDim.inventDimId

    Many TAMRebateTable records → exactly one InventDim record

  • InventTable → InventTable

    Join on RebateCompanyId = InventTable.DataAreaId, ItemCode = TableGroupAll::Table, ItemRelation = InventTable.ItemId

    Many TAMRebateTable records → zero or one InventTable record

  • TAMRebateCategory → TAMRebateCategory

    Join on Category = TAMRebateCategory.RecId

    Many TAMRebateTable records → zero or one TAMRebateCategory record

  • TAMRebateDeal → TAMRebateDeal

    Join on RebateDeal = TAMRebateDeal.RecId

    Many TAMRebateTable records → exactly one TAMRebateDeal record

  • TAMRebateGroupCust → TAMRebateGroup

    Join on RebateCompanyId = TAMRebateGroup.DataAreaId, TAMRebateGroup.ModuleInventCustVend = ModuleInventCustVend::Cust, ModuleInventCustVend = ModuleInventCustVend::Cust, AccountCode = TableGroupAll::GroupId, AccountRelation = TAMRebateGroup.RebateGroupId

    Many TAMRebateTable records → exactly one TAMRebateGroup record

  • TAMRebateGroupInvent → TAMRebateGroup

    Join on RebateCompanyId = TAMRebateGroup.DataAreaId, TAMRebateGroup.ModuleInventCustVend = ModuleInventCustVend::Invent, ItemCode = TableGroupAll::GroupId, ItemRelation = TAMRebateGroup.RebateGroupId

    Many TAMRebateTable records → zero or one TAMRebateGroup record

  • TAMRebateGroupVend → TAMRebateGroup

    Join on RebateCompanyId = TAMRebateGroup.DataAreaId, TAMRebateGroup.ModuleInventCustVend = ModuleInventCustVend::Vend, RebateBasisVend = TAMRebateBasisVend::Purch, ModuleInventCustVend = ModuleInventCustVend::Vend, AccountCode = TableGroupAll::GroupId, AccountRelation = TAMRebateGroup.RebateGroupId

    Many TAMRebateTable records → zero or one TAMRebateGroup record

  • TAMRebateGroupVendSales → TAMRebateGroup

    Join on RebateCompanyId = TAMRebateGroup.DataAreaId, TAMRebateGroup.ModuleInventCustVend = ModuleInventCustVend::Cust, RebateBasisVend = TAMRebateBasisVend::Sales, ModuleInventCustVend = ModuleInventCustVend::Vend, AccountCode = TableGroupAll::GroupId, AccountRelation = TAMRebateGroup.RebateGroupId

    Many TAMRebateTable records → zero or one TAMRebateGroup record

  • TAMRebatePosting → TAMRebatePosting

    Join on RebateType = TAMRebatePosting.RebateType, ModuleInventCustVend = TAMRebatePosting.ModuleInventCustVend, RebatePostingId = TAMRebatePosting.RebatePostingId

    Many TAMRebateTable records → exactly one TAMRebatePosting record

  • TAMRebatePostingGuarantee → TAMRebatePosting

    Join on ModuleInventCustVend = TAMRebatePosting.ModuleInventCustVend, RebateType = TAMRebatePosting.RebateType, GuaranteePostingId = TAMRebatePosting.RebatePostingId

    Many TAMRebateTable records → exactly one TAMRebatePosting record

  • TAMRebateStatusTable → TAMRebateStatusTable

    Join on StatusId = TAMRebateStatusTable.StatusId

    Many TAMRebateTable records → exactly one TAMRebateStatusTable record

  • UnitOfMeasure → UnitOfMeasure

    Join on UnitId = UnitOfMeasure.Symbol

    Many TAMRebateTable records → exactly one UnitOfMeasure record

  • VendTable → VendTable

    Join on RebateCompanyId = VendTable.DataAreaId, RebateBasisVend = TAMRebateBasisVend::Purch, AccountCode = TableGroupAll::Table, ModuleInventCustVend = ModuleInventCustVend::Vend, AccountRelation = VendTable.AccountNum

    Many TAMRebateTable records → exactly one VendTable record

  • VariantId → InventDimCombination

    Join on RebateCompanyId = InventDimCombination.DataAreaId, VariantId = InventDimCombination.RetailVariantId, ItemRelation = InventDimCombination.ItemId

    Many TAMRebateTable records → exactly one InventDimCombination record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one TAMRebateTable record → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one TAMRebateTable record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Zero or one TAMRebateTable record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record

Get this data out

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

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

Email sales@drdynamics.co.uk