Table

GUPTradeAgreementInquiryResult

Trade agreement setup inquiry result

Holds trade agreement lines (prices, discounts and charges) as returned by an inquiry. Each row covers a customer, vendor, group or all parties, an item or group, validity dates, quantity range and amounts. It also links to price rules, attribute-based pricing and journal lines. It has no defined key in the metadata.

Table name
GUPTradeAgreementInquiryResult
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
GlobalUnifiedPricing

Fields (54)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountCodeKind of party the line applies to: Table, Group or All.Enum
PriceDiscPartyCode
PriceDiscPartyCodeType (enum)
NoGUPTradeAgreementInquiryResultEntity
AccountRelationCustomer or vendor account that the line applies to.String (20)
PriceDiscAccountRelation
NoCustTable.AccountNumVendTable.AccountNumGUPTradeAgreementInquiryResultEntity
AgreementReference to a price agreement.String
PriceAgreement
NoNone
AgreementHeaderExt_RUSystem record ID of the agreement, used for Russia.Int64
AgreementHeaderExtRecId_RU
NoAgreementHeaderExt_RU.RecIdNone
AllocateMarkupYes/No flag for including the charges in the unit price.Enum
NoYes (enum)
NoNone
AmountAmount in the transaction currency.Real
PriceDiscAmount
NoGUPTradeAgreementInquiryResultEntity
CalendarDaysYes/No flag that relates to working days for the lead time.Enum
CalendarDays
NoYes (enum)
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CurrencyCurrency code of the line, which points to a currency record.String (3)
CurrencyCode
YesCurrency.CurrencyCodeGUPTradeAgreementInquiryResultEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryTimeLead time for delivery.Integer
LeadTimeDelivery
NoGUPTradeAgreementInquiryResultEntity
DisregardLeadTimeYes/No flag for ignoring the lead time.Enum
DisregardLeadTime
NoYes (enum)
NoGUPTradeAgreementInquiryResultEntity
FromDateStart date of the line.Date
FromDate
NoGUPTradeAgreementInquiryResultEntity
GenericCurrencyYes/No flag for including a generic currency.Enum
SalesGenericCurrency
NoYes (enum)
NoGUPTradeAgreementInquiryResultEntity
InventBaileeFreeDays_RUNumber of free days, used for Russia.Integer
InventBaileeFreeDays_RU
NoNone
InventDimIdID of the inventory dimension combination, which points to an inventory dimensions record.String (20)
InventDimId
NoInventDim.inventDimIdNone
ItemCodeKind of product the line applies to: Table, Group or All.Enum
PriceDiscProductCode
PriceDiscProductCodeType (enum)
NoGUPTradeAgreementInquiryResultEntity
ItemRelationItem or item group the line applies to; refers to an item.String (20)
PriceDiscItemRelation
NoInventTable.ItemIdGUPTradeAgreementInquiryResultEntity
JournalNumNumber of the price or discount journal.String (20)
PriceDiscJournalNum
NoGUPTradeAgreementInquiryResultEntityGUPTradeAgreementInquiryResultEntity
LineNumNumber of the line.Real
LineNum
NoGUPTradeAgreementInquiryResultEntity
LogLog text for the line.String (255)
PriceJournalLogTrans
NoGUPTradeAgreementInquiryResultEntity
MarkupPrice charges on the line.Real
PriceMarkup
NoGUPTradeAgreementInquiryResultEntity
MaximumRetailPrice_INMaximum retail price, used for India.Real
MaximumRetailPrice_IN
NoNone
MCRFixedAmountCurFixed amount on the line.Real
MCRFixedAmountCur
NoNone
MCRMerchandisingEventIDID of the merchandising event, which points to a merchandising event record.String
MCRMerchandisingEventID
NoTAMMerchandisingEvent.MerchandisingEventIDNone
MCRPriceDiscGroupTypeType of price discount group: Standard, Source code or Trade allowance.Enum
MCRPriceDiscGroupType (enum)
NoNone
ModuleModule the line is for: Inventory, Customer or Vendor.Enum
PriceDiscModule
ModuleInventCustVend (enum)
NoNone
MustBeDeletedYes/No flag. The label is empty, so it probably marks the row for deletion.low confidenceEnum
NoYes (enum)
NoNone
OriginalPriceDiscAdmTransRecIdSystem record ID of the trade agreement journal line it came from.Int64
RefRecId
NoPriceDiscAdmTrans.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PDSCalculationIdID of the attribute-based pricing calculation, which points to a calculation record.String
PDSCalculationId
NoPDSCalculationTable.CalculationIdGUPTradeAgreementInquiryResultEntity
Percent1First discount percentage.Real
DiscPct
NoNone
Percent2Second discount percentage.Real
DiscPct
NoNone
PostedYes/No flag showing whether the journal is posted.Enum
JournalPosted
NoYes (enum)
NoNone
PriceApplyAdjustmentYes/No flag showing whether a price adjustment is allowed on this price.Enum
GUPPriceDiscPriceApplyAdjustment
NoYes (enum)
NoGUPTradeAgreementInquiryResultEntity
PriceComponentCombinationSystem record ID of the price attribute group combination, which points to that record.Int64
GUPPriceComponentCodeCombinationRecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PriceDiscTableRecIdSystem record ID of a related price or discount record. No relation is given in the metadata.low confidenceInt64
RefRecId
NoNone
PriceGroupID of the price group.String
PriceGroupId
NoGUPTradeAgreementInquiryResultEntity
PricePreventDiscountYes/No flag that stops further discounts on this price.Enum
GUPPriceDiscPricePreventDiscount
NoYes (enum)
NoGUPTradeAgreementInquiryResultEntity
PriceUnitQuantity that the price applies to.Real
PriceUnit
NoGUPTradeAgreementInquiryResultEntity
PricingAttributesHeaderAreMatchedYes/No flag showing whether pricing attributes at header level are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingAttributesLineAreMatchedYes/No flag showing whether pricing attributes at line level are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingRuleHeaderSystem record ID of the header price rule, which points to a price rule.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPTradeAgreementInquiryResultEntity
PricingRuleLineSystem record ID of the line price rule, which points to a price rule.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPTradeAgreementInquiryResultEntity
QuantityAmountFromLower limit of the quantity range.Real
AmountQty
NoGUPTradeAgreementInquiryResultEntity
QuantityAmountToUpper limit of the quantity range.Real
AmountQuantityTo
NoGUPTradeAgreementInquiryResultEntity
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
relationType of trade agreement: purchase or sales price, line discount, multiline discount, total discount, or postage discount.Enum
PriceType (enum)
NoNone
SearchAgainYes/No flag labelled 'Find next'.Enum
SearchAgain
NoYes (enum)
NoGUPTradeAgreementInquiryResultEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ToDateEnd date of the line.Date
ToDate
NoGUPTradeAgreementInquiryResultEntity
UnitAppliesToAllYes/No flag for allowing unit conversion.Enum
GUPUnitAppliesToAll
NoYes (enum)
NoGUPTradeAgreementInquiryResultEntity
UnitIdUnit symbol, which points to a unit record.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolGUPTradeAgreementInquiryResultEntity

Indexes (7)

Relations (30)

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

  • AgreementHeaderExt_RU → AgreementHeaderExt_RU

    Join on AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecId

    Many GUPTradeAgreementInquiryResult records → zero or one AgreementHeaderExt_RU record

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many GUPTradeAgreementInquiryResult records → exactly one Currency record

  • CustEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::EndDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • CustLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::LineDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • CustMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::MultiLineDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • CustPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::PriceSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • CustTable → CustTable

    Join on Module = ModuleInventCustVend::Cust, AccountCode = PriceDiscPartyCodeType::Table, AccountRelation = CustTable.AccountNum

    Many GUPTradeAgreementInquiryResult records → zero or one CustTable record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many GUPTradeAgreementInquiryResult records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemCode = PriceDiscProductCodeType::Table, ItemRelation = InventTable.ItemId

    Many GUPTradeAgreementInquiryResult records → zero or one InventTable record

  • MCRPostageGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MCRPostageDisc, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::MCRPostageDisc, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • PdsCalculationId → PDSCalculationTable

    Join on PDSCalculationId = PDSCalculationTable.CalculationId

    Many GUPTradeAgreementInquiryResult records → zero or one PDSCalculationTable record

  • PriceDiscAdmTrans → PriceDiscAdmTrans

    Join on OriginalPriceDiscAdmTransRecId = PriceDiscAdmTrans.RecId

    Zero or one GUPTradeAgreementInquiryResult record → zero or one PriceDiscAdmTrans record

  • PurchEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::EndDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • PurchLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::LineDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • PurchMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::MultiLineDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • PurchPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PricePurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • SalesEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::EndDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • SalesLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::LineDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • SalesMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::MultiLineDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • SalesPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PriceSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • TAMMerchandisingEvent → TAMMerchandisingEvent

    Join on MCRMerchandisingEventID = TAMMerchandisingEvent.MerchandisingEventID

    Many GUPTradeAgreementInquiryResult records → exactly one TAMMerchandisingEvent record

  • UnitId → UnitOfMeasure

    Join on UnitId = UnitOfMeasure.Symbol

    Many GUPTradeAgreementInquiryResult records → zero or one UnitOfMeasure record

  • VendEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::EndDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • VendLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::LineDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • VendMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::MultiLineDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • VendPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::PricePurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record

  • VendTable → VendTable

    Join on Module = ModuleInventCustVend::Vend, AccountCode = PriceDiscPartyCodeType::Table, AccountRelation = VendTable.AccountNum

    Many GUPTradeAgreementInquiryResult records → zero or one VendTable record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one GUPTradeAgreementInquiryResult record → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one GUPTradeAgreementInquiryResult record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Zero or one GUPTradeAgreementInquiryResult record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record

Get this data out

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

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

Email sales@drdynamics.co.uk