C_MassChangeSalesQuotation
Mass Change of Sales Quotation
C_MassChangeSalesQuotation is a Consumption CDS View that provides data about "Mass Change of Sales Quotation" in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 156 fields with key field SalesQuotation. It has 10 associations to related views. Part of development package SD_CHANGE_COCKPIT_QUT_ODATA.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocument | _SalesQuotation | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SDDocStandardPartner | _StandardPartner | $projection.SalesQuotation = _StandardPartner.SDDocument |
| [0..*] | I_SlsDocNonStdPartner | _NonStdPartner | $projection.SalesQuotation = _NonStdPartner.SDDocument |
| [1..*] | I_SDDocumentPartner | _SDDocumentPartner | $projection.SalesQuotation = _SDDocumentPartner.SDDocument |
| [0..*] | C_MassChangeSalesQuotationItem | _SalesQuotationItem | $projection.SalesQuotation = _SalesQuotationItem.SalesQuotation |
| [0..*] | C_SalesDocumentItemWl | _SalesDocumentItem | $projection.SalesQuotation = _SalesDocumentItem.SalesDocument |
| [0..*] | C_MassChgSalesDocumentItemWl | _MassChgSalesDocumentItemWL | $projection.SalesQuotation = _MassChgSalesDocumentItemWL.SalesDocument |
| [0..1] | E_SalesDocumentBasic | _Extension | $projection.SalesQuotation = _Extension.SalesDocument |
| [0..1] | C_SalesDocumentUserVH | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | C_SalesDocPaymentMethodVH | _PaymentMethod | $projection.PaymentMethod = _PaymentMethod.PaymentMethod and $projection.BillingCompanyCode = _PaymentMethod.BillingCompanyCode |
| [0..*] | I_CostCenterText | _CostCenterText | $projection.CostCenter = _CostCenterText.CostCenter and $projection.ControllingArea = _CostCenterText.ControllingArea and _CostCenterText.ValidityEndDate >= $session.system_date and _CostCenterText.Language = $session.system_language |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSDMCSLSQTAN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | SalesQuotation | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view | |
| OData.entitySet.name | SlsQtn | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view | |
| EndUserText.label | Mass Change of Sales Quotation | view | |
| Consumption.semanticObject | SalesQuotation | view |
Fields (156)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesQuotation | SD Document | ||
| SalesQuotationType | Sales Doc. Type | |||
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| SDDocumentReason | SDDocumentReason | Order Reason | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreatedByUser | CreatedByUser | User Name | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | Org. Division | |||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| SlsOrdShippingType | ShippingType | Shipping Type | ||
| HeaderIncotermsClassification | Incoterms | |||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| OrganizationBPName1 | _SoldToParty | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | _SoldToParty | OrganizationBPName2 | Name 2 | |
| ShipToParty | _StandardPartner | ShipToParty | Ship-To Party (obsolete) | |
| PayerParty | _StandardPartner | PayerParty | Payer | |
| BillToParty | _StandardPartner | BillToParty | Inv. Recipient | |
| ResponsibleEmployee | _StandardPartner | ResponsibleEmployee | Employee Resp. | |
| SalesEmployee | _StandardPartner | SalesEmployee | Sales Employee | |
| ShipToPartyName | ||||
| SoldToPartyName | ||||
| BillToPartyName | ||||
| PayerPartyName | ||||
| ResponsibleEmployeeName | ||||
| SalesEmployeeName | ||||
| OverallSDProcessStatus | OverallSDProcessStatus | |||
| SalesDocApprovalStatus | SalesDocApprovalStatus | |||
| OverallSDDocumentRejectionSts | ||||
| TotalBlockStatus | TotalBlockStatus | |||
| HdrGeneralIncompletionStatus | ||||
| HeaderBillgIncompletionStatus | ||||
| OverallPricingIncompletionSts | ||||
| OverallTrdCmplncEmbargoSts | ||||
| OvrlTrdCmplncSnctndListChkSts | ||||
| OvrlTrdCmplncLegalCtrlChkSts | ||||
| OverallChmlCmplncStatus | OverallChmlCmplncStatus | |||
| OverallDangerousGoodsStatus | ||||
| ContractDownPaymentStatus | ||||
| TotalNetAmount | TotalNetAmount | Total Net Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| BusinessArea | BusinessArea | Business Area | ||
| CostCenter | CostCenter | Cost Center | ||
| CostCenterDescription | _CostCenterText | CostCenterDescription | Description | |
| ControllingArea | ControllingArea | Controlling Area | ||
| BillingCompanyCode | BillingCompanyCode | CCodeToBeBilled | ||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | Purchase Order Date | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| BindingPeriodValidityStartDate | BindingPeriodValidityStartDate | |||
| BindingPeriodValidityEndDate | BindingPeriodValidityEndDate | Binding Period | ||
| SalesQuotationDate | SalesDocumentDate | Document Date | ||
| CreditControlArea | CreditControlArea | Credit Control Area | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Grp 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Grp 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Grp 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Grp 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Grp 5 | ||
| CustomerPriceGroup | CustomerPriceGroup | CustPrice Group | ||
| CustomerPriceGroupName | ||||
| SalesQuotationApprovalReason | ||||
| CustomerPaymentTerms | Pyt Terms | |||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| AdditionalPartnerName | ||||
| PartnerFunction | ||||
| Customer | ||||
| Supplier | ||||
| Personnel | ||||
| ContactPerson | ||||
| Product | ||||
| SalesQuotationItemCategory | ||||
| Division | ||||
| SDProcessStatus | ||||
| OrderRelatedBillingStatus | ||||
| SDDocumentRejectionStatus | ||||
| ItemGeneralIncompletionStatus | ||||
| ItemBillingIncompletionStatus | ||||
| PricingIncompletionStatus | ||||
| ItemDeliveryIncompletionStatus | ||||
| SDDocReferenceStatus | ||||
| TotalSDDocReferenceStatus | ||||
| TrdCmplncEmbargoSts | ||||
| TrdCmplncSnctndListChkSts | ||||
| ChmlCmplncStatus | ||||
| DangerousGoodsStatus | ||||
| ContractItemDownPaymentStatus | ||||
| SalesDocumentRjcnReason | ||||
| IncotermsClassification | ||||
| PaymentTerms | ||||
| ItemBillingBlockReason | ||||
| SlsDocMassChangeRequestUUID | ||||
| ProfitCenter | ||||
| SlsDocMassChgEntityLevel | ||||
| SalesDocumentType | I_SalesDocument | SalesDocumentType | Sales Doc. Type | |
| _StandardPartner | _StandardPartner | |||
| _NonStdPartner | _NonStdPartner | |||
| _SalesQuotationItem | _SalesQuotationItem | |||
| _SDDocumentReason | _SDDocumentReason | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOffice | _SalesOffice | |||
| _SalesDistrict | _SalesDistrict | |||
| _ShippingType | _ShippingType | |||
| _ShippingCondition | _ShippingCondition | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _SoldToParty | _SoldToParty | |||
| _ShipToParty | _StandardPartner | _ShipToParty | ||
| _PayerParty | _StandardPartner | _PayerParty | ||
| _BillToParty | _StandardPartner | _BillToParty | ||
| _ResponsibleEmployee | _StandardPartner | _ResponsibleEmployee | ||
| _SalesEmployee | _StandardPartner | _SalesEmployee | ||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _SalesDocApprovalStatus | _SalesDocApprovalStatus | |||
| _OverallSDDocumentRejectionSts | _OverallSDDocumentRejectionSts | |||
| _TotalBlockStatus | _TotalBlockStatus | |||
| _HdrGeneralIncompletionStatus | _HdrGeneralIncompletionStatus | |||
| _HeaderBillgIncompletionStatus | _HeaderBillgIncompletionStatus | |||
| _OverallPricingIncompletionSts | _OverallPricingIncompletionSts | |||
| _OvrlTradeCmplncEmbargoStatus | _OvrlTradeCmplncEmbargoStatus | |||
| _OvTrdCmplncSnctndListChkSts | _OvTrdCmplncSnctndListChkSts | |||
| _OvrlTrdCmplncLegalCtrlChkSts | _OvrlTrdCmplncLegalCtrlChkSts | |||
| _OverallChmlCmplncStatus | _OverallChmlCmplncStatus | |||
| _OverallDangerousGoodsStatus | _OverallDangerousGoodsStatus | |||
| _DownPaymentStatus | _DownPaymentStatus | |||
| _BusinessArea | _BusinessArea | |||
| _CostCenterText | _CostCenterText | |||
| _ControllingArea | _ControllingArea | |||
| _BillingCompanyCode | _BillingCompanyCode | |||
| _CreditControlArea | _CreditControlArea | |||
| _CustomerGroup | _CustomerGroup | |||
| _AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | |||
| _AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | |||
| _AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | |||
| _AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | |||
| _AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _SalesDocumentType | _SalesDocumentType | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _MassChgSalesDocumentItemWL | _MassChgSalesDocumentItemWL | |||
| _SDDocumentPartner | _SDDocumentPartner | |||
| _PaymentMethod | _PaymentMethod | |||
| _CreatedByUser | _CreatedByUser | |||
| _SalesDocApprovalReason | _SalesDocApprovalReason | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _CostCenter | _CostCenter |
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_MassChangeSalesQuotation.
-- 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 C_MassChangeSalesQuotation AS
SELECT
cast(SalesDocument as sales_quotation preserving type) AS SalesQuotation,
cast( SalesDocumentType as sales_quotation_type preserving type ) AS SalesQuotationType,
SDDocumentCategory,
SDDocumentReason,
CreationDate,
CreatedByUser,
SalesOrganization,
DistributionChannel,
cast(OrganizationDivision as organization_division preserving type ) AS OrganizationDivision,
SalesGroup,
SalesOffice,
SalesDistrict,
ShippingCondition,
ShippingType AS SlsOrdShippingType,
cast( IncotermsClassification as vdm_header_incoterm1 preserving type ) AS HeaderIncotermsClassification,
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
SoldToParty,
_SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
_SoldToParty.OrganizationBPName2 AS OrganizationBPName2,
_StandardPartner.ShipToParty AS ShipToParty,
_StandardPartner.PayerParty AS PayerParty,
_StandardPartner.BillToParty AS BillToParty,
_StandardPartner.ResponsibleEmployee AS ResponsibleEmployee,
_StandardPartner.SalesEmployee AS SalesEmployee,
cast('' as ad_namtext ) AS ShipToPartyName,
cast('' as ad_namtext ) AS SoldToPartyName,
cast('' as ad_namtext ) AS BillToPartyName,
cast('' as ad_namtext ) AS PayerPartyName,
cast('' as ad_namtext ) AS ResponsibleEmployeeName,
cast('' as ad_namtext ) AS SalesEmployeeName,
OverallSDProcessStatus,
SalesDocApprovalStatus,
cast(OverallSDDocumentRejectionSts as ovrl_sd_doc_rejection_status preserving type ) AS OverallSDDocumentRejectionSts,
TotalBlockStatus,
cast(HdrGeneralIncompletionStatus as hdr_general_incompltn_status preserving type ) AS HdrGeneralIncompletionStatus,
cast(HeaderBillgIncompletionStatus as hdrbillgincompletionstatus preserving type ) AS HeaderBillgIncompletionStatus,
cast(OverallPricingIncompletionSts as ovrl_pricing_incompletion_sts preserving type ) AS OverallPricingIncompletionSts,
cast(OverallTrdCmplncEmbargoSts as overall_embargo_status preserving type ) AS OverallTrdCmplncEmbargoSts,
cast(OvrlTrdCmplncSnctndListChkSts as ovrl_watchlist_screening_sts preserving type ) AS OvrlTrdCmplncSnctndListChkSts,
cast(OvrlTrdCmplncLegalCtrlChkSts as overall_legal_control_status preserving type ) AS OvrlTrdCmplncLegalCtrlChkSts,
OverallChmlCmplncStatus,
cast(OverallDangerousGoodsStatus as overall_dangerous_goods_status preserving type ) AS OverallDangerousGoodsStatus,
cast(ContractDownPaymentStatus as hdr_down_payment_status preserving type ) AS ContractDownPaymentStatus,
TotalNetAmount,
TransactionCurrency,
BusinessArea,
CostCenter,
_CostCenterText.CostCenterDescription AS CostCenterDescription,
ControllingArea,
BillingCompanyCode,
CustomerPurchaseOrderDate,
PurchaseOrderByCustomer,
BindingPeriodValidityStartDate,
BindingPeriodValidityEndDate,
SalesDocumentDate AS SalesQuotationDate,
CreditControlArea,
CustomerGroup,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
CustomerPriceGroup,
_CustomerPriceGroup._Text[1:Language = $session.system_language].CustomerPriceGroupName AS CustomerPriceGroupName,
cast( SalesDocApprovalReason as sd_apm_approval_reason_vdm preserving type ) AS SalesQuotationApprovalReason,
cast( CustomerPaymentTerms as hdr_dzterm preserving type ) AS CustomerPaymentTerms,
PaymentMethod,
cast( ' ' as abap.char( 100 )) AS AdditionalPartnerName,
cast( ' ' as parvw_unv preserving type ) AS PartnerFunction,
cast( ' ' as kunnr) AS Customer,
cast( ' ' as lifnr) AS Supplier,
cast( '00000000' as pernr_d) AS Personnel,
cast( '0000000000' as parnr) AS ContactPerson,
cast( '' as productnumber ) AS Product,
cast( ' ' as pstyv preserving type ) AS SalesQuotationItemCategory,
cast( ' ' as spart preserving type ) AS Division,
cast( '' as overall_sd_doc_processing_sts preserving type ) AS SDProcessStatus,
cast( ' ' as fksaa preserving type ) AS OrderRelatedBillingStatus,
cast( ' ' as absta_vb preserving type ) AS SDDocumentRejectionStatus,
cast( ' ' as general_item_incompletion_sts preserving type ) AS ItemGeneralIncompletionStatus,
cast( ' ' as itms_incompltn_sts_billg preserving type ) AS ItemBillingIncompletionStatus,
cast('' as pricing_incompletion_status preserving type ) AS PricingIncompletionStatus,
cast('' as itm_deliv_incompletion_status preserving type ) AS ItemDeliveryIncompletionStatus,
cast('' as rfsta preserving type ) AS SDDocReferenceStatus,
cast('' as rfgsa preserving type ) AS TotalSDDocReferenceStatus,
cast('' as embargochksts preserving type ) AS TrdCmplncEmbargoSts,
cast('' as watchlistscrngchksts preserving type ) AS TrdCmplncSnctndListChkSts,
cast('' as mon_tdd_pcsta preserving type ) AS ChmlCmplncStatus,
cast('' as mon_tdd_dgsta preserving type ) AS DangerousGoodsStatus,
cast('' as dp_clear_sta preserving type ) AS ContractItemDownPaymentStatus,
cast( ' ' as abgru_va preserving type ) AS SalesDocumentRjcnReason,
cast( ' ' as inco1 preserving type ) AS IncotermsClassification,
cast(' ' as abap.char(4) ) AS PaymentTerms,
cast(' ' as billing_block_reason_item preserving type ) AS ItemBillingBlockReason,
hextobin( '00000000000000000000000000000000' ) AS SlsDocMassChangeRequestUUID,
cast( ' ' as prctr preserving type ) AS ProfitCenter,
cast ( 'H' as sd_mcc_entity_level ) AS SlsDocMassChgEntityLevel,
_SalesQuotation.SalesDocumentType AS SalesDocumentType,
_StandardPartner._ShipToParty AS _ShipToParty,
_StandardPartner._PayerParty AS _PayerParty,
_StandardPartner._BillToParty AS _BillToParty,
_StandardPartner._ResponsibleEmployee AS _ResponsibleEmployee,
_StandardPartner._SalesEmployee AS _SalesEmployee
FROM I_SalesDocument AS _SalesQuotation
LEFT OUTER JOIN I_SDDocStandardPartner AS _StandardPartner ON SalesQuotation = _StandardPartner.SDDocument -- association [0..1]
LEFT OUTER JOIN I_SlsDocNonStdPartner AS _NonStdPartner ON SalesQuotation = _NonStdPartner.SDDocument -- association [0..*]
LEFT OUTER JOIN I_SDDocumentPartner AS _SDDocumentPartner ON SalesQuotation = _SDDocumentPartner.SDDocument -- association [1..*]
LEFT OUTER JOIN C_MassChangeSalesQuotationItem AS _SalesQuotationItem ON SalesQuotation = _SalesQuotationItem.SalesQuotation -- association [0..*]
LEFT OUTER JOIN C_SalesDocumentItemWl AS _SalesDocumentItem ON SalesQuotation = _SalesDocumentItem.SalesDocument -- association [0..*]
LEFT OUTER JOIN C_MassChgSalesDocumentItemWl AS _MassChgSalesDocumentItemWL ON SalesQuotation = _MassChgSalesDocumentItemWL.SalesDocument -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesQuotation = _Extension.SalesDocument -- association [0..1]
LEFT OUTER JOIN C_SalesDocumentUserVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN C_SalesDocPaymentMethodVH AS _PaymentMethod ON PaymentMethod = _PaymentMethod.PaymentMethod AND BillingCompanyCode = _PaymentMethod.BillingCompanyCode -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON CostCenter = _CostCenterText.CostCenter AND ControllingArea = _CostCenterText.ControllingArea AND _CostCenterText.ValidityEndDate >= $session.system_date AND _CostCenterText.Language = $session.system_language -- association [0..*]
;
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