C_QuotationFs
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)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesQuotation | I_SalesQuotation | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA