R_SalesQuotationTP

DDL: R_SALESQUOTATIONTP Type: view_entity TRANSACTIONAL Package: RAP_SD_SLS_QUT

Sales Quotation - TP

R_SalesQuotationTP is a Transactional CDS View that provides data about "Sales Quotation - TP" in SAP S/4HANA. It reads from 1 data source (I_SalesQuotation) and exposes 108 fields with key field SalesQuotation. It has 9 associations to related views. Part of development package RAP_SD_SLS_QUT.

Data Sources (1)

SourceAliasJoin Type
I_SalesQuotation SalesQuotation from

Associations (9)

CardinalityTargetAliasCondition
[0..1] R_OutputRequestTP _OutputRequest $projection.OutputRequestUUID = _OutputRequest.OutputRequestUUID
[0..1] I_SalesQuotationPartner _SoldToParty $projection.SalesQuotation = _SoldToParty.SalesQuotation and _SoldToParty.PartnerFunction = 'AG'
[0..1] I_SlsOrganizationDistrChnl _SlsOrganizationDistrChnl $projection.SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization and $projection.DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel
[1] E_SalesDocumentBasic _Extension $projection.SalesQuotation = _Extension.SalesDocument
[0..*] R_SalesQuotationItemTP _Item
[0..*] R_SalesQuotationPartnerTP _Partner
[0..*] R_SalesQuotationTextTP _Text
[0..*] R_SlsQuotationPricingElementTP _PricingElement
[0..1] R_SalesQuotationShipToPartyTP _ShipToParty

Annotations (13)

NameValueLevelField
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
ObjectModel.sapObjectNodeType.name SalesQuotation view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix SDH view
AbapCatalog.extensibility.quota.maximumFields 204 view
AbapCatalog.extensibility.quota.maximumBytes 6800 view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Sales Quotation - TP view

Fields (108)

KeyFieldSource TableSource FieldDescription
KEY SalesQuotation I_SalesQuotation SalesQuotation
SalesQuotationType I_SalesQuotation SalesQuotationType Sales Doc. Type
CustomerName _SoldToParty FullName Name
SoldToPartyAddressID _SoldToParty AddressID Ship-to address
SalesOrganization I_SalesQuotation SalesOrganization Sales Organization
DistributionChannel I_SalesQuotation DistributionChannel RefDistCh-Cust/Mat.
ReferenceDistributionChannel _SlsOrganizationDistrChnl ReferenceDistributionChannel
OrganizationDivision I_SalesQuotation OrganizationDivision Org. Division
SalesOffice I_SalesQuotation SalesOffice Sales Office
SalesGroup I_SalesQuotation SalesGroup Sales Group
SoldToParty I_SalesQuotation SoldToParty Sold-to Party
SalesDistrict I_SalesQuotation SalesDistrict Sales District
PurchaseOrderByCustomer I_SalesQuotation PurchaseOrderByCustomer Purchase Order Number
SalesQuotationDate I_SalesQuotation SalesQuotationDate Document Date
CustomerPurchaseOrderDate I_SalesQuotation CustomerPurchaseOrderDate Purchase Order Date
CustomerGroup I_SalesQuotation CustomerGroup Customer Group
AdditionalCustomerGroup1 I_SalesQuotation AdditionalCustomerGroup1 Customer Grp 1
AdditionalCustomerGroup2 I_SalesQuotation AdditionalCustomerGroup2 Customer Grp 2
AdditionalCustomerGroup3 I_SalesQuotation AdditionalCustomerGroup3 Customer Grp 3
AdditionalCustomerGroup4 I_SalesQuotation AdditionalCustomerGroup4 Customer Grp 4
AdditionalCustomerGroup5 I_SalesQuotation AdditionalCustomerGroup5 Customer Grp 5
ControllingArea I_SalesQuotation ControllingArea Controlling Area
BindingPeriodValidityStartDate I_SalesQuotation BindingPeriodValidityStartDate
BindingPeriodValidityEndDate I_SalesQuotation BindingPeriodValidityEndDate Binding Period
HdrOrderProbabilityInPercent I_SalesQuotation HdrOrderProbabilityInPercent
TotalNetAmount I_SalesQuotation TotalNetAmount Total Net Amount
TransactionCurrency I_SalesQuotation TransactionCurrency Transaction Currency
PricingDate I_SalesQuotation PricingDate Pricing Date
CustomerPriceGroup I_SalesQuotation CustomerPriceGroup CustPrice Group
SDPricingProcedure I_SalesQuotation SDPricingProcedure Pric. Procedure
CreationDate I_SalesQuotation CreationDate Time Stamp
CreatedByUser I_SalesQuotation CreatedByUser User Name
LastChangedByUser I_SalesQuotation LastChangedByUser User Name
CreationTime I_SalesQuotation CreationTime Time of Change
RequestedDeliveryDate I_SalesQuotation RequestedDeliveryDate Requested Delivery Date
IncotermsVersion I_SalesQuotation IncotermsVersion Inco. Version
IncotermsClassification I_SalesQuotation IncotermsClassification Incoterms
IncotermsLocation1 I_SalesQuotation IncotermsLocation1 Inco. Location1
IncotermsLocation2 I_SalesQuotation IncotermsLocation2 Inco. Location2
ShippingCondition I_SalesQuotation ShippingCondition Shipping Conditions
ShippingType I_SalesQuotation ShippingType Shipping Type
BillingDocumentDate I_SalesQuotation BillingDocumentDate Billing Date
ReferenceSDDocument I_SalesQuotation ReferenceSDDocument Reference Doc.
ReferenceSDDocumentCategory I_SalesQuotation ReferenceSDDocumentCategory Prec.Doc.Categ.
CustomerCreditAccount I_SalesQuotation CustomerCreditAccount
SDDocumentReason I_SalesQuotation SDDocumentReason Order Reason
SalesQuotationApprovalReason I_SalesQuotation SalesQuotationApprovalReason
SalesDocApprovalStatus I_SalesQuotation SalesDocApprovalStatus
OverallSDProcessStatus I_SalesQuotation OverallSDProcessStatus
HdrGeneralIncompletionStatus
OvrlItmGeneralIncompletionSts
OverallSDDocReferenceStatus I_SalesQuotation OverallSDDocReferenceStatus
OverallSDDocumentRejectionSts I_SalesQuotation OverallSDDocumentRejectionSts
TotalCreditCheckStatus I_SalesQuotation TotalCreditCheckStatus
OverallChmlCmplncStatus I_SalesQuotation OverallChmlCmplncStatus
OverallDangerousGoodsStatus I_SalesQuotation OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus I_SalesQuotation OverallSafetyDataSheetStatus
OverallTrdCmplncEmbargoSts I_SalesQuotation OverallTrdCmplncEmbargoSts
PaymentMethod I_SalesQuotation PaymentMethod Pymt Meth.
CustomerPaymentTerms I_SalesQuotation CustomerPaymentTerms Pyt Terms
BillingCompanyCode I_SalesQuotation BillingCompanyCode CCodeToBeBilled
LastChangeDate I_SalesQuotation LastChangeDate Time Stamp
OutputRequestUUID OutputRequest OutputRequestUUID
_Item _Item
_Partner _Partner
_Text _Text
_PricingElement _PricingElement
_ShipToParty _ShipToParty
_OutputRequest _OutputRequest
_SalesQuotationType I_SalesQuotation _SalesQuotationType
_SalesOrganization I_SalesQuotation _SalesOrganization
_DistributionChannel I_SalesQuotation _DistributionChannel
_OrganizationDivision I_SalesQuotation _OrganizationDivision
_SalesOffice I_SalesQuotation _SalesOffice
_SalesGroup I_SalesQuotation _SalesGroup
_SalesDistrict I_SalesQuotation _SalesDistrict
_ShippingCondition I_SalesQuotation _ShippingCondition
_ShippingType I_SalesQuotation _ShippingType
_ControllingArea I_SalesQuotation _ControllingArea
_IncotermsVersion I_SalesQuotation _IncotermsVersion
_IncotermsClassification I_SalesQuotation _IncotermsClassification
_SDDocumentReason I_SalesQuotation _SDDocumentReason
_ReferenceSDDocumentCategory I_SalesQuotation _ReferenceSDDocumentCategory
_TransactionCurrency I_SalesQuotation _TransactionCurrency
_CustomerPaymentTerms I_SalesQuotation _CustomerPaymentTerms
_CustomerGroup I_SalesQuotation _CustomerGroup
_CustomerPriceGroup I_SalesQuotation _CustomerPriceGroup
_SDPricingProcedure I_SalesQuotation _SDPricingProcedure
_AdditionalCustomerGroup1 I_SalesQuotation _AdditionalCustomerGroup1
_AdditionalCustomerGroup2 I_SalesQuotation _AdditionalCustomerGroup2
_AdditionalCustomerGroup3 I_SalesQuotation _AdditionalCustomerGroup3
_AdditionalCustomerGroup4 I_SalesQuotation _AdditionalCustomerGroup4
_AdditionalCustomerGroup5 I_SalesQuotation _AdditionalCustomerGroup5
_LastChangedByUser I_SalesQuotation _LastChangedByUser
_CreatedByUser I_SalesQuotation _CreatedByUser
_CustomerCreditAccount I_SalesQuotation _CustomerCreditAccount
_SalesQuotationApprovalReason I_SalesQuotation _SalesQuotationApprovalReason
_SalesDocApprovalStatus I_SalesQuotation _SalesDocApprovalStatus
_OverallSDProcessStatus I_SalesQuotation _OverallSDProcessStatus
_HdrGeneralIncompletionStatus I_SalesQuotation _HdrGeneralIncompletionStatus
_OvrlItmGeneralIncompletionSts I_SalesQuotation _OvrlItmGeneralIncompletionSts
_OverallSDDocReferenceStatus I_SalesQuotation _OverallSDDocReferenceStatus
_OverallSDDocumentRejectionSts I_SalesQuotation _OverallSDDocumentRejectionSts
_TotalCreditCheckStatus I_SalesQuotation _TotalCreditCheckStatus
_OverallChmlCmplncStatus I_SalesQuotation _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus I_SalesQuotation _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts I_SalesQuotation _OvrlSftyDataSheetSts
_OvrlTradeCmplncEmbargoStatus I_SalesQuotation _OvrlTradeCmplncEmbargoStatus

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view R_SalesQuotationTP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW R_SalesQuotationTP AS
SELECT
  SalesQuotation.SalesQuotation AS SalesQuotation,
  SalesQuotation.SalesQuotationType AS SalesQuotationType,
  _SoldToParty.FullName AS CustomerName,
  _SoldToParty.AddressID AS SoldToPartyAddressID,
  SalesQuotation.SalesOrganization AS SalesOrganization,
  SalesQuotation.DistributionChannel AS DistributionChannel,
  _SlsOrganizationDistrChnl.ReferenceDistributionChannel AS ReferenceDistributionChannel,
  SalesQuotation.OrganizationDivision AS OrganizationDivision,
  SalesQuotation.SalesOffice AS SalesOffice,
  SalesQuotation.SalesGroup AS SalesGroup,
  SalesQuotation.SoldToParty AS SoldToParty,
  SalesQuotation.SalesDistrict AS SalesDistrict,
  SalesQuotation.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  SalesQuotation.SalesQuotationDate AS SalesQuotationDate,
  SalesQuotation.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
  SalesQuotation.CustomerGroup AS CustomerGroup,
  SalesQuotation.AdditionalCustomerGroup1 AS AdditionalCustomerGroup1,
  SalesQuotation.AdditionalCustomerGroup2 AS AdditionalCustomerGroup2,
  SalesQuotation.AdditionalCustomerGroup3 AS AdditionalCustomerGroup3,
  SalesQuotation.AdditionalCustomerGroup4 AS AdditionalCustomerGroup4,
  SalesQuotation.AdditionalCustomerGroup5 AS AdditionalCustomerGroup5,
  SalesQuotation.ControllingArea AS ControllingArea,
  SalesQuotation.BindingPeriodValidityStartDate AS BindingPeriodValidityStartDate,
  SalesQuotation.BindingPeriodValidityEndDate AS BindingPeriodValidityEndDate,
  SalesQuotation.HdrOrderProbabilityInPercent AS HdrOrderProbabilityInPercent,
  SalesQuotation.TotalNetAmount AS TotalNetAmount,
  SalesQuotation.TransactionCurrency AS TransactionCurrency,
  SalesQuotation.PricingDate AS PricingDate,
  SalesQuotation.CustomerPriceGroup AS CustomerPriceGroup,
  SalesQuotation.SDPricingProcedure AS SDPricingProcedure,
  SalesQuotation.CreationDate AS CreationDate,
  SalesQuotation.CreatedByUser AS CreatedByUser,
  SalesQuotation.LastChangedByUser AS LastChangedByUser,
  SalesQuotation.CreationTime AS CreationTime,
  SalesQuotation.RequestedDeliveryDate AS RequestedDeliveryDate,
  SalesQuotation.IncotermsVersion AS IncotermsVersion,
  SalesQuotation.IncotermsClassification AS IncotermsClassification,
  SalesQuotation.IncotermsLocation1 AS IncotermsLocation1,
  SalesQuotation.IncotermsLocation2 AS IncotermsLocation2,
  SalesQuotation.ShippingCondition AS ShippingCondition,
  SalesQuotation.ShippingType AS ShippingType,
  SalesQuotation.BillingDocumentDate AS BillingDocumentDate,
  SalesQuotation.ReferenceSDDocument AS ReferenceSDDocument,
  SalesQuotation.ReferenceSDDocumentCategory AS ReferenceSDDocumentCategory,
  SalesQuotation.CustomerCreditAccount AS CustomerCreditAccount,
  SalesQuotation.SDDocumentReason AS SDDocumentReason,
  SalesQuotation.SalesQuotationApprovalReason AS SalesQuotationApprovalReason,
  SalesQuotation.SalesDocApprovalStatus AS SalesDocApprovalStatus,
  SalesQuotation.OverallSDProcessStatus AS OverallSDProcessStatus,
  cast(SalesQuotation.HdrGeneralIncompletionStatus as hdr_general_incompltn_status preserving type ) AS HdrGeneralIncompletionStatus,
  cast(SalesQuotation.OvrlItmGeneralIncompletionSts as itms_ovrl_incompletion_status preserving type ) AS OvrlItmGeneralIncompletionSts,
  SalesQuotation.OverallSDDocReferenceStatus AS OverallSDDocReferenceStatus,
  SalesQuotation.OverallSDDocumentRejectionSts AS OverallSDDocumentRejectionSts,
  SalesQuotation.TotalCreditCheckStatus AS TotalCreditCheckStatus,
  SalesQuotation.OverallChmlCmplncStatus AS OverallChmlCmplncStatus,
  SalesQuotation.OverallDangerousGoodsStatus AS OverallDangerousGoodsStatus,
  SalesQuotation.OverallSafetyDataSheetStatus AS OverallSafetyDataSheetStatus,
  SalesQuotation.OverallTrdCmplncEmbargoSts AS OverallTrdCmplncEmbargoSts,
  SalesQuotation.PaymentMethod AS PaymentMethod,
  SalesQuotation.CustomerPaymentTerms AS CustomerPaymentTerms,
  SalesQuotation.BillingCompanyCode AS BillingCompanyCode,
  SalesQuotation.LastChangeDate AS LastChangeDate,
  OutputRequest.OutputRequestUUID AS OutputRequestUUID,
  SalesQuotation._SalesQuotationType AS _SalesQuotationType,
  SalesQuotation._SalesOrganization AS _SalesOrganization,
  SalesQuotation._DistributionChannel AS _DistributionChannel,
  SalesQuotation._OrganizationDivision AS _OrganizationDivision,
  SalesQuotation._SalesOffice AS _SalesOffice,
  SalesQuotation._SalesGroup AS _SalesGroup,
  SalesQuotation._SalesDistrict AS _SalesDistrict,
  SalesQuotation._ShippingCondition AS _ShippingCondition,
  SalesQuotation._ShippingType AS _ShippingType,
  SalesQuotation._ControllingArea AS _ControllingArea,
  SalesQuotation._IncotermsVersion AS _IncotermsVersion,
  SalesQuotation._IncotermsClassification AS _IncotermsClassification,
  SalesQuotation._SDDocumentReason AS _SDDocumentReason,
  SalesQuotation._ReferenceSDDocumentCategory AS _ReferenceSDDocumentCategory,
  SalesQuotation._TransactionCurrency AS _TransactionCurrency,
  SalesQuotation._CustomerPaymentTerms AS _CustomerPaymentTerms,
  SalesQuotation._CustomerGroup AS _CustomerGroup,
  SalesQuotation._CustomerPriceGroup AS _CustomerPriceGroup,
  SalesQuotation._SDPricingProcedure AS _SDPricingProcedure,
  SalesQuotation._AdditionalCustomerGroup1 AS _AdditionalCustomerGroup1,
  SalesQuotation._AdditionalCustomerGroup2 AS _AdditionalCustomerGroup2,
  SalesQuotation._AdditionalCustomerGroup3 AS _AdditionalCustomerGroup3,
  SalesQuotation._AdditionalCustomerGroup4 AS _AdditionalCustomerGroup4,
  SalesQuotation._AdditionalCustomerGroup5 AS _AdditionalCustomerGroup5,
  SalesQuotation._LastChangedByUser AS _LastChangedByUser,
  SalesQuotation._CreatedByUser AS _CreatedByUser,
  SalesQuotation._CustomerCreditAccount AS _CustomerCreditAccount,
  SalesQuotation._SalesQuotationApprovalReason AS _SalesQuotationApprovalReason,
  SalesQuotation._SalesDocApprovalStatus AS _SalesDocApprovalStatus,
  SalesQuotation._OverallSDProcessStatus AS _OverallSDProcessStatus,
  SalesQuotation._HdrGeneralIncompletionStatus AS _HdrGeneralIncompletionStatus,
  SalesQuotation._OvrlItmGeneralIncompletionSts AS _OvrlItmGeneralIncompletionSts,
  SalesQuotation._OverallSDDocReferenceStatus AS _OverallSDDocReferenceStatus,
  SalesQuotation._OverallSDDocumentRejectionSts AS _OverallSDDocumentRejectionSts,
  SalesQuotation._TotalCreditCheckStatus AS _TotalCreditCheckStatus,
  SalesQuotation._OverallChmlCmplncStatus AS _OverallChmlCmplncStatus,
  SalesQuotation._OverallDangerousGoodsStatus AS _OverallDangerousGoodsStatus,
  SalesQuotation._OvrlSftyDataSheetSts AS _OvrlSftyDataSheetSts,
  SalesQuotation._OvrlTradeCmplncEmbargoStatus AS _OvrlTradeCmplncEmbargoStatus
FROM I_SalesQuotation AS SalesQuotation
LEFT OUTER JOIN R_OutputRequestTP AS _OutputRequest ON OutputRequestUUID = _OutputRequest.OutputRequestUUID  -- association [0..1]
LEFT OUTER JOIN I_SalesQuotationPartner AS _SoldToParty ON SalesQuotation = _SoldToParty.SalesQuotation AND _SoldToParty.PartnerFunction = 'AG'  -- association [0..1]
LEFT OUTER JOIN I_SlsOrganizationDistrChnl AS _SlsOrganizationDistrChnl ON SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization AND DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesQuotation = _Extension.SalesDocument  -- association [1]
LEFT OUTER JOIN R_SalesQuotationItemTP AS _Item ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SalesQuotationPartnerTP AS _Partner ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SalesQuotationTextTP AS _Text ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SlsQuotationPricingElementTP AS _PricingElement ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SalesQuotationShipToPartyTP AS _ShipToParty ON /* condition not available in parsed metadata */  -- association [0..1]
;