C_QuotationFs

DDL: C_QUOTATIONFS SQL: CQUOTATIONFS Type: view CONSUMPTION Package: ODATA_SD_QUOTATION

Sales Quotation

C_QuotationFs is a Consumption CDS View that provides data about "Sales Quotation" in SAP S/4HANA. It reads from 1 data source (I_SalesQuotation) and exposes 39 fields with key field SalesQuotation. It has 7 associations to related views. Part of development package ODATA_SD_QUOTATION.

Data Sources (1)

SourceAliasJoin Type
I_SalesQuotation I_SalesQuotation from

Associations (7)

CardinalityTargetAliasCondition
[0..1] C_SoldToValueHelp _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..*] C_SDDocumentPartnerCard _SDDocumentPartnerCard $projection.SalesQuotation = _SDDocumentPartnerCard.SDDocument and _SDDocumentPartnerCard.SDDocumentItem = '000000'
[0..1] I_SalesQuotationPartner _ShipToParty $projection.SalesQuotation = _ShipToParty.SalesQuotation and _ShipToParty.PartnerFunction = 'WE'
[0..*] C_QuotationitemFs _QuotationitemFs $projection.SalesQuotation = _QuotationitemFs.SalesQuotation
[0..1] C_SalesDocumentUserVH _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] C_SalesDocumentUserVH _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[1] E_SalesDocumentBasic _Extension $projection.SalesQuotation = _Extension.SalesDocument

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CQUOTATIONFS view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Search.searchable true view
EndUserText.label Sales Quotation view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
UI.headerInfo.typeName Sales Quotation view
UI.headerInfo.typeNamePlural Sales Quotations view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value SalesDocumentTypeName view
Consumption.semanticObject SalesQuotation view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY SalesQuotation SalesQuotation
SalesDocumentTypeName
SalesQuotationType I_SalesQuotation SalesQuotationType Sales Doc. Type
SoldToParty I_SalesQuotation SoldToParty Sold-to Party
SoldToPartyName
ShipToParty
ShipToPartyName
OverallSDProcessStatus I_SalesQuotation OverallSDProcessStatus
BindingPeriodValidityStartDate I_SalesQuotation BindingPeriodValidityStartDate
BindingPeriodValidityEndDate I_SalesQuotation BindingPeriodValidityEndDate Binding Period
SalesQuotationApprovalReason I_SalesQuotation SalesQuotationApprovalReason Approval Request Reason
OverallSDDocumentRejectionSts I_SalesQuotation OverallSDDocumentRejectionSts
OverallSDDocReferenceStatus I_SalesQuotation OverallSDDocReferenceStatus
SalesDocApprovalStatus I_SalesQuotation SalesDocApprovalStatus
int1asSlsQtanApprovalStsCriticality
TransactionCurrency I_SalesQuotation TransactionCurrency Transaction Currency
TotalNetAmount TotalNetAmount Total Net Amount
DivisionName1astxt_vtrberasSalesAreaDesc
SalesOrganization I_SalesQuotation SalesOrganization Sales Organization
DistributionChannel I_SalesQuotation DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision I_SalesQuotation OrganizationDivision Org. Division
ResponsibleEmployee
ResponsibleEmployeeName
PurchaseOrderByCustomer I_SalesQuotation PurchaseOrderByCustomer Purchase Order Number
CustomerPurchaseOrderDate I_SalesQuotation CustomerPurchaseOrderDate Purchase Order Date
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
LastChangedByUser LastChangedByUser User Name
_SDDocumentPartnerCard _SDDocumentPartnerCard
_QuotationitemFs _QuotationitemFs
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_OverallSDProcessStatus _OverallSDProcessStatus
_OverallSDDocumentRejectionSts _OverallSDDocumentRejectionSts
_OverallSDDocReferenceStatus _OverallSDDocReferenceStatus
_SalesDocApprovalStatus _SalesDocApprovalStatus
_SalesQuotationApprovalReason _SalesQuotationApprovalReason
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser

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 C_QuotationFs.
-- 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.
-- SQL view name: CQUOTATIONFS

CREATE VIEW C_QuotationFs AS
SELECT
  SalesQuotation,
  concat_with_space(I_SalesQuotation._SalesQuotationType._Text[1: Language=$session.system_language ].SalesDocumentTypeName, ltrim(SalesQuotation, '0'), 1) AS SalesDocumentTypeName,
  I_SalesQuotation.SalesQuotationType AS SalesQuotationType,
  I_SalesQuotation.SoldToParty AS SoldToParty,
  cast('' as ad_namtext ) AS SoldToPartyName,
  cast ( _ShipToParty.Customer as kunwe ) AS ShipToParty,
  cast('' as ad_namtext ) AS ShipToPartyName,
  I_SalesQuotation.OverallSDProcessStatus AS OverallSDProcessStatus,
  I_SalesQuotation.BindingPeriodValidityStartDate AS BindingPeriodValidityStartDate,
  I_SalesQuotation.BindingPeriodValidityEndDate AS BindingPeriodValidityEndDate,
  I_SalesQuotation.SalesQuotationApprovalReason AS SalesQuotationApprovalReason,
  I_SalesQuotation.OverallSDDocumentRejectionSts AS OverallSDDocumentRejectionSts,
  I_SalesQuotation.OverallSDDocReferenceStatus AS OverallSDDocReferenceStatus,
  I_SalesQuotation.SalesDocApprovalStatus AS SalesDocApprovalStatus,
  I_SalesQuotation.TransactionCurrency AS TransactionCurrency,
  TotalNetAmount,
  cast( concat_with_space( concat( concat( _SalesOrganization._Text[1: Language=$session.system_language].SalesOrganizationName, concat_with_space(',',_DistributionChannel._Text[1: Language=$session.system_language].DistributionChannelName,1) ), ',' ), _OrganizationDivision._Text[1: Language=$session.system_language].DivisionName ,1) as txt_vtrber) as SalesAreaDesc AS DivisionName1astxt_vtrberasSalesAreaDesc,
  I_SalesQuotation.SalesOrganization AS SalesOrganization,
  I_SalesQuotation.DistributionChannel AS DistributionChannel,
  I_SalesQuotation.OrganizationDivision AS OrganizationDivision,
  cast( I_SalesQuotation._Partner[ PartnerFunction = 'ZM' ].Personnel as resp_empl preserving type ) AS ResponsibleEmployee,
  cast('' as ad_namtext ) AS ResponsibleEmployeeName,
  I_SalesQuotation.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  I_SalesQuotation.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
  CreatedByUser,
  CreationDate,
  LastChangedByUser
FROM I_SalesQuotation
LEFT OUTER JOIN C_SoldToValueHelp AS _SoldToParty ON SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN C_SDDocumentPartnerCard AS _SDDocumentPartnerCard ON SalesQuotation = _SDDocumentPartnerCard.SDDocument AND _SDDocumentPartnerCard.SDDocumentItem = '000000'  -- association [0..*]
LEFT OUTER JOIN I_SalesQuotationPartner AS _ShipToParty ON SalesQuotation = _ShipToParty.SalesQuotation AND _ShipToParty.PartnerFunction = 'WE'  -- association [0..1]
LEFT OUTER JOIN C_QuotationitemFs AS _QuotationitemFs ON SalesQuotation = _QuotationitemFs.SalesQuotation  -- association [0..*]
LEFT OUTER JOIN C_SalesDocumentUserVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN C_SalesDocumentUserVH AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesQuotation = _Extension.SalesDocument  -- association [1]
;