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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountCodeKind of party the line applies to: Table, Group or All. | EnumPriceDiscPartyCodePriceDiscPartyCodeType (enum) | No | GUPTradeAgreementInquiryResultEntity | |
AccountRelationCustomer or vendor account that the line applies to. | String (20)PriceDiscAccountRelation | No | CustTable.AccountNumVendTable.AccountNum | GUPTradeAgreementInquiryResultEntity |
AgreementReference to a price agreement. | StringPriceAgreement | No | None | |
AgreementHeaderExt_RUSystem record ID of the agreement, used for Russia. | Int64AgreementHeaderExtRecId_RU | No | AgreementHeaderExt_RU.RecId | None |
AllocateMarkupYes/No flag for including the charges in the unit price. | EnumNoYes (enum) | No | None | |
AmountAmount in the transaction currency. | RealPriceDiscAmount | No | GUPTradeAgreementInquiryResultEntity | |
CalendarDaysYes/No flag that relates to working days for the lead time. | EnumCalendarDaysNoYes (enum) | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
CurrencyCurrency code of the line, which points to a currency record. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | GUPTradeAgreementInquiryResultEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryTimeLead time for delivery. | IntegerLeadTimeDelivery | No | GUPTradeAgreementInquiryResultEntity | |
DisregardLeadTimeYes/No flag for ignoring the lead time. | EnumDisregardLeadTimeNoYes (enum) | No | GUPTradeAgreementInquiryResultEntity | |
FromDateStart date of the line. | DateFromDate | No | GUPTradeAgreementInquiryResultEntity | |
GenericCurrencyYes/No flag for including a generic currency. | EnumSalesGenericCurrencyNoYes (enum) | No | GUPTradeAgreementInquiryResultEntity | |
InventBaileeFreeDays_RUNumber of free days, used for Russia. | IntegerInventBaileeFreeDays_RU | No | None | |
InventDimIdID of the inventory dimension combination, which points to an inventory dimensions record. | String (20)InventDimId | No | InventDim.inventDimId | None |
ItemCodeKind of product the line applies to: Table, Group or All. | EnumPriceDiscProductCodePriceDiscProductCodeType (enum) | No | GUPTradeAgreementInquiryResultEntity | |
ItemRelationItem or item group the line applies to; refers to an item. | String (20)PriceDiscItemRelation | No | InventTable.ItemId | GUPTradeAgreementInquiryResultEntity |
JournalNumNumber of the price or discount journal. | String (20)PriceDiscJournalNum | No | GUPTradeAgreementInquiryResultEntityGUPTradeAgreementInquiryResultEntity | |
LineNumNumber of the line. | RealLineNum | No | GUPTradeAgreementInquiryResultEntity | |
LogLog text for the line. | String (255)PriceJournalLogTrans | No | GUPTradeAgreementInquiryResultEntity | |
MarkupPrice charges on the line. | RealPriceMarkup | No | GUPTradeAgreementInquiryResultEntity | |
MaximumRetailPrice_INMaximum retail price, used for India. | RealMaximumRetailPrice_IN | No | None | |
MCRFixedAmountCurFixed amount on the line. | RealMCRFixedAmountCur | No | None | |
MCRMerchandisingEventIDID of the merchandising event, which points to a merchandising event record. | StringMCRMerchandisingEventID | No | TAMMerchandisingEvent.MerchandisingEventID | None |
MCRPriceDiscGroupTypeType of price discount group: Standard, Source code or Trade allowance. | EnumMCRPriceDiscGroupType (enum) | No | None | |
ModuleModule the line is for: Inventory, Customer or Vendor. | EnumPriceDiscModuleModuleInventCustVend (enum) | No | None | |
MustBeDeletedYes/No flag. The label is empty, so it probably marks the row for deletion.low confidence | EnumNoYes (enum) | No | None | |
OriginalPriceDiscAdmTransRecIdSystem record ID of the trade agreement journal line it came from. | Int64RefRecId | No | PriceDiscAdmTrans.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PDSCalculationIdID of the attribute-based pricing calculation, which points to a calculation record. | StringPDSCalculationId | No | PDSCalculationTable.CalculationId | GUPTradeAgreementInquiryResultEntity |
Percent1First discount percentage. | RealDiscPct | No | None | |
Percent2Second discount percentage. | RealDiscPct | No | None | |
PostedYes/No flag showing whether the journal is posted. | EnumJournalPostedNoYes (enum) | No | None | |
PriceApplyAdjustmentYes/No flag showing whether a price adjustment is allowed on this price. | EnumGUPPriceDiscPriceApplyAdjustmentNoYes (enum) | No | GUPTradeAgreementInquiryResultEntity | |
PriceComponentCombinationSystem record ID of the price attribute group combination, which points to that record. | Int64GUPPriceComponentCodeCombinationRecId | No | GUPPriceComponentCodePriceAttributeGroupCombination.RecId | None |
PriceDiscTableRecIdSystem record ID of a related price or discount record. No relation is given in the metadata.low confidence | Int64RefRecId | No | None | |
PriceGroupID of the price group. | StringPriceGroupId | No | GUPTradeAgreementInquiryResultEntity | |
PricePreventDiscountYes/No flag that stops further discounts on this price. | EnumGUPPriceDiscPricePreventDiscountNoYes (enum) | No | GUPTradeAgreementInquiryResultEntity | |
PriceUnitQuantity that the price applies to. | RealPriceUnit | No | GUPTradeAgreementInquiryResultEntity | |
PricingAttributesHeaderAreMatchedYes/No flag showing whether pricing attributes at header level are matched. | EnumGUPPricingAttributesAreMatchedNoYes (enum) | No | None | |
PricingAttributesLineAreMatchedYes/No flag showing whether pricing attributes at line level are matched. | EnumGUPPricingAttributesAreMatchedNoYes (enum) | No | None | |
PricingRuleHeaderSystem record ID of the header price rule, which points to a price rule. | Int64GUPRefRecId | No | GUPPricingRule.RecId | GUPTradeAgreementInquiryResultEntity |
PricingRuleLineSystem record ID of the line price rule, which points to a price rule. | Int64GUPRefRecId | No | GUPPricingRule.RecId | GUPTradeAgreementInquiryResultEntity |
QuantityAmountFromLower limit of the quantity range. | RealAmountQty | No | GUPTradeAgreementInquiryResultEntity | |
QuantityAmountToUpper limit of the quantity range. | RealAmountQuantityTo | No | GUPTradeAgreementInquiryResultEntity | |
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 | |
relationType of trade agreement: purchase or sales price, line discount, multiline discount, total discount, or postage discount. | EnumPriceType (enum) | No | None | |
SearchAgainYes/No flag labelled 'Find next'. | EnumSearchAgainNoYes (enum) | No | GUPTradeAgreementInquiryResultEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToDateEnd date of the line. | DateToDate | No | GUPTradeAgreementInquiryResultEntity | |
UnitAppliesToAllYes/No flag for allowing unit conversion. | EnumGUPUnitAppliesToAllNoYes (enum) | No | GUPTradeAgreementInquiryResultEntity | |
UnitIdUnit symbol, which points to a unit record. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | GUPTradeAgreementInquiryResultEntity |
Indexes (7)
PriceDiscIdxrelation,ItemCode,ItemRelation,AccountCode,AccountRelation,Currency,InventDimId,UnitId,QuantityAmountFrom,RecId,FromDate,AgreementHeaderExt_RUUnique.
AccountIdxrelation,AccountCode,AccountRelation,Currency,ItemCode,ItemRelation,UnitId,QuantityAmountFrom,FromDate,AgreementHeaderExt_RUNot unique.
ItemIdxrelation,ItemCode,ItemRelation,Currency,AccountCode,AccountRelation,UnitId,QuantityAmountFrom,FromDateNot unique.
ItemDimIdxItemRelation,ItemCode,InventDimId,AccountCodeNot unique.
GenericCurrencyGenericCurrency,relation,ItemCode,ItemRelation,AccountCode,AccountRelation,InventDimId,UnitIdNot unique.
AgreementHeaderExt_RUIdxNot unique.
PriceDiscAdmTransIdxOriginalPriceDiscAdmTransRecIdNot unique.
Relations (30)
Each relation joins GUPTradeAgreementInquiryResult to another table on the fields shown.
AgreementHeaderExt_RU→AgreementHeaderExt_RUJoin on
AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecIdMany GUPTradeAgreementInquiryResult records → zero or one AgreementHeaderExt_RU record
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany GUPTradeAgreementInquiryResult records → exactly one Currency record
CustEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::EndDiscSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
CustLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::LineDiscSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
CustMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::MultiLineDiscSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
CustPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::PriceSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
CustTable→CustTableJoin on
Module = ModuleInventCustVend::Cust,AccountCode = PriceDiscPartyCodeType::Table,AccountRelation = CustTable.AccountNumMany GUPTradeAgreementInquiryResult records → zero or one CustTable record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany GUPTradeAgreementInquiryResult records → zero or one InventDim record
InventTable→InventTableJoin on
ItemCode = PriceDiscProductCodeType::Table,ItemRelation = InventTable.ItemIdMany GUPTradeAgreementInquiryResult records → zero or one InventTable record
MCRPostageGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MCRPostageDisc,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::MCRPostageDisc,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
PdsCalculationId→PDSCalculationTableJoin on
PDSCalculationId = PDSCalculationTable.CalculationIdMany GUPTradeAgreementInquiryResult records → zero or one PDSCalculationTable record
PriceDiscAdmTrans→PriceDiscAdmTransJoin on
OriginalPriceDiscAdmTransRecId = PriceDiscAdmTrans.RecIdZero or one GUPTradeAgreementInquiryResult record → zero or one PriceDiscAdmTrans record
PurchEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::EndDiscPurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
PurchLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::LineDiscPurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
PurchMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::MultiLineDiscPurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
PurchPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::PricePurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
SalesEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::EndDiscSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
SalesLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::LineDiscSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
SalesMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::MultiLineDiscSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
SalesPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::PriceSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
TAMMerchandisingEvent→TAMMerchandisingEventJoin on
MCRMerchandisingEventID = TAMMerchandisingEvent.MerchandisingEventIDMany GUPTradeAgreementInquiryResult records → exactly one TAMMerchandisingEvent record
UnitId→UnitOfMeasureJoin on
UnitId = UnitOfMeasure.SymbolMany GUPTradeAgreementInquiryResult records → zero or one UnitOfMeasure record
VendEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::EndDiscPurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
VendLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::LineDiscPurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
VendMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::MultiLineDiscPurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
VendPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::PricePurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany GUPTradeAgreementInquiryResult records → zero or one PriceDiscGroup record
VendTable→VendTableJoin on
Module = ModuleInventCustVend::Vend,AccountCode = PriceDiscPartyCodeType::Table,AccountRelation = VendTable.AccountNumMany GUPTradeAgreementInquiryResult records → zero or one VendTable record
GUPPricingRuleHeader→GUPPricingRuleJoin on
PricingRuleHeader = GUPPricingRule.RecIdZero or one GUPTradeAgreementInquiryResult record → exactly one GUPPricingRule record
GUPPricingRuleLine→GUPPricingRuleJoin on
PricingRuleLine = GUPPricingRule.RecIdZero or one GUPTradeAgreementInquiryResult record → exactly one GUPPricingRule record
GUPPriceComponentCodePriceAttributeGroupCombination→GUPPriceComponentCodePriceAttributeGroupCombinationJoin on
PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecIdZero 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.
GUPTradeAgreementInquiryResultEntity· 28 fields from this table
Need help with GUPTradeAgreementInquiryResult in a report, an integration or a migration? Talk to Dr Dynamics.