C_MassChangeSlsDocRequest
Mass Change of Sales Document Request
C_MassChangeSlsDocRequest is a Consumption CDS View that provides data about "Mass Change of Sales Document Request" in SAP S/4HANA. It reads from 1 data source (I_SDMassChgCkptMassChgReqBsc) and exposes 86 fields with key field SlsDocMassChangeRequestUUID. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SDMassChgCkptMassChgReqBsc | MCCReq | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SDMassChgCkptSlsDocHdrChg | _SalesDocumentHdrNewValue | $projection.SlsDocMassChangeRequestUUID = _SalesDocumentHdrNewValue.SlsDocMassChangeRequestUUID |
| [0..1] | I_SDMassChgCkptSlsDocItemChg | _SalesDocumentItmNewValue | $projection.SlsDocMassChangeRequestUUID = _SalesDocumentItmNewValue.SlsDocMassChangeRequestUUID |
| [0..1] | I_SDMassChgCkptSlsSchdLnChg | _SalesDocumentSlnNewValue | $projection.SlsDocMassChangeRequestUUID = _SalesDocumentSlnNewValue.SlsDocMassChangeRequestUUID |
| [0..1] | I_SDMassChgCkptSlsPartChg | _SalesDocumentPartNewValue | $projection.SlsDocMassChangeRequestUUID = _SalesDocumentPartNewValue.SlsDocMassChangeRequestUUID |
| [0..*] | I_SDMassChgCkptChgFldList | _SalesDocumentChgFieldList | $projection.SlsDocMassChangeRequestUUID = _SalesDocumentChgFieldList.SlsDocMassChangeRequestUUID |
| [0..*] | C_SDMassChgCkptChgSlsDoc | _SalesDocumentSelectionList | $projection.SlsDocMassChangeRequestUUID = _SalesDocumentSelectionList.SlsDocMassChangeRequestUUID |
| [0..1] | C_MassChangeSlsDocReadRequest | _MassChangeReadRequest | $projection.SlsDocMassChangeRequestUUID = _MassChangeReadRequest.SlsDocMassChangeRequestUUID |
| [0..1] | C_MassChangeSlsDocCtrlParam | _MassChangeCntrlParam | $projection.SlsDocMassChangeRequestUUID = _MassChangeCntrlParam.SlsDocMassChangeRequestUUID |
| [0..1] | E_SDMassChgCkptSlsDocHdrChgBsc | _HeaderExtension | $projection.SlsDocMassChangeRequestUUID = _HeaderExtension.SlsDocMassChangeRequestUUID |
| [0..1] | E_SDMassChgCkptSlsDocItmChgBsc | _ItemExtension | $projection.SlsDocMassChangeRequestUUID = _ItemExtension.SlsDocMassChangeRequestUUID |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Mass Change of Sales Document Request | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AbapCatalog.sqlViewName | CSDMCSLSDOCREQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.representativeKey | SlsDocMassChangeRequestUUID | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| OData.entitySet.name | SlsDocReq | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (86)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SlsDocMassChangeRequestUUID | I_SDMassChgCkptMassChgReqBsc | SlsDocMassChangeRequestUUID | Job ID |
| SlsDocMassChgEntityLevel | I_SDMassChgCkptMassChgReqBsc | SlsDocMassChgEntityLevel | Entity Level | |
| SDDocumentCategory | I_SDMassChgCkptMassChgReqBsc | SDDocumentCategory | Document Cat. | |
| SlsDocMassChangeRequestRefUUID | I_SDMassChgCkptMassChgReqBsc | SlsDocMassChangeRequestRefUUID | Job ID | |
| SDDocumentReason | _SalesDocumentHdrNewValue | SDDocumentReason | Order Reason | |
| SDDocumentReasonText | ||||
| SalesOffice | _SalesDocumentHdrNewValue | SalesOffice | Sales Office | |
| SalesOfficeName | ||||
| SalesGroup | _SalesDocumentHdrNewValue | SalesGroup | Sales Group | |
| SalesGroupName | ||||
| SalesDistrict | _SalesDocumentHdrNewValue | SalesDistrict | Sales District | |
| SalesDistrictName | ||||
| RequestedDeliveryDate | _SalesDocumentHdrNewValue | RequestedDeliveryDate | Requested Delivery Date | |
| ShippingCondition | _SalesDocumentHdrNewValue | ShippingCondition | Shipping Conditions | |
| ShippingConditionName | ||||
| ShippingType | _SalesDocumentHdrNewValue | ShippingType | Shipping Type | |
| ShippingTypeName | ||||
| ReceivingPoint | _SalesDocumentHdrNewValue | ReceivingPoint | Recv. Point | |
| CustomerPaymentTerms | _SalesDocumentHdrNewValue | CustomerPaymentTerms | Pyt Terms | |
| CustomerPaymentTermsName | ||||
| PaymentMethod | _SalesDocumentHdrNewValue | PaymentMethod | Pymt Meth. | |
| TransactionCurrency | _SalesDocumentHdrNewValue | TransactionCurrency | Transaction Currency | |
| CurrencyName | ||||
| PricingDate | _SalesDocumentHdrNewValue | PricingDate | Pricing Date | |
| BillingDocumentDate | _SalesDocumentHdrNewValue | BillingDocumentDate | Billing Date | |
| SalesDocumentDate | _SalesDocumentHdrNewValue | SalesDocumentDate | Document Date | |
| IncotermsClassification | _SalesDocumentHdrNewValue | IncotermsClassification | Incoterms | |
| IncotermsClassificationName | ||||
| IncotermsTransferLocation | _SalesDocumentHdrNewValue | IncotermsTransferLocation | Incoterms 2 | |
| IncotermsLocation1 | _SalesDocumentHdrNewValue | IncotermsLocation1 | Inco. Location1 | |
| IncotermsLocation2 | _SalesDocumentHdrNewValue | IncotermsLocation2 | Inco. Location2 | |
| IncotermsVersion | _SalesDocumentHdrNewValue | IncotermsVersion | Inco. Version | |
| IncotermsVersionName | ||||
| DeliveryBlockReason | _SalesDocumentHdrNewValue | DeliveryBlockReason | Delivery Block | |
| HeaderBillingBlockReason | _SalesDocumentHdrNewValue | HeaderBillingBlockReason | Billing Block | |
| SalesDocumentRjcnReason | _SalesDocumentHdrNewValue | SalesDocumentRjcnReason | RejectionReason | |
| PurchaseOrderByCustomer | _SalesDocumentHdrNewValue | PurchaseOrderByCustomer | Purchase Order Number | |
| CustomerPurchaseOrderDate | _SalesDocumentHdrNewValue | CustomerPurchaseOrderDate | Purchase Order Date | |
| CompleteDeliveryIsDefined | _SalesDocumentHdrNewValue | CompleteDeliveryIsDefined | Complete Dlv. | |
| SalesDocumentItemCategory | _SalesDocumentItmNewValue | SalesDocumentItemCategory | Item Category | |
| SalesDocumentItemCategoryName | ||||
| Product | _SalesDocumentItmNewValue | Product | Product Sold | |
| ProductName | ||||
| SalesDocumentItemText | _SalesDocumentItmNewValue | SalesDocumentItemText | Item Descr. | |
| ProductHierarchyNode | _SalesDocumentItmNewValue | ProductHierarchyNode | Prod. Hierarchy | |
| Batch | _SalesDocumentItmNewValue | Batch | Lot No. | |
| Division | _SalesDocumentItmNewValue | Division | Internal Division ID | |
| DeliveryPriority | _SalesDocumentItmNewValue | DeliveryPriority | Delivery Prior. | |
| DeliveryPriorityDesc | ||||
| Plant | _SalesDocumentItmNewValue | Plant | Valuation Area | |
| PlantName | ||||
| UnloadingPointName | _SalesDocumentItmNewValue | UnloadingPointName | Unloading Point Name | |
| StorageLocation | _SalesDocumentItmNewValue | StorageLocation | StorageLocation | |
| StorageLocationName | ||||
| ShippingPoint | _SalesDocumentItmNewValue | ShippingPoint | Shipping Point | |
| ShippingPointName | ||||
| Route | _SalesDocumentItmNewValue | Route | Vehicle route | |
| RouteName | ||||
| ItemBillingBlockReason | _SalesDocumentItmNewValue | ItemBillingBlockReason | Billing Block | |
| ExpdDelivQuantityChangeReason | _SalesDocumentItmNewValue | ExpdDelivQuantityChangeReason | Return/Change Reason | |
| ReturnReason | _SalesDocumentItmNewValue | ReturnReason | Return Reason | |
| CustRetItmFollowUpActivity | _SalesDocumentItmNewValue | CustRetItmFollowUpActivity | Follow-Up Act. | |
| WBSElementInternalID | _SalesDocumentItmNewValue | WBSElementInternalID | WBS Internal ID | |
| WBSElementExternalID | ||||
| WBSDescription | ||||
| MaterialByCustomer | _SalesDocumentItmNewValue | MaterialByCustomer | Customer Mat. | |
| PricingType | _SalesDocumentItmNewValue | PricingType | Pricing Type | |
| ProfitCenter | _SalesDocumentItmNewValue | ProfitCenter | Profit Center | |
| ProfitCenterName | ||||
| ScheduleLineCategory | _SalesDocumentSlnNewValue | ScheduleLineCategory | Sched.Line Cat. | |
| DelivBlockReasonForSchedLine | _SalesDocumentSlnNewValue | DelivBlockReasonForSchedLine | Delivery Block | |
| PartnerFunction | _SalesDocumentPartNewValue | PartnerFunction | Partner Functn | |
| Customer | ||||
| Supplier | ||||
| Personnel | ||||
| ContactPerson | ||||
| PartnerIsDeleted | _SalesDocumentPartNewValue | PartnerIsDeleted | Deleted | |
| AddressID | _SalesDocumentPartNewValue | AddressID | Ship-to address | |
| BusinessPartner | _SalesDocumentPartNewValue | BusinessPartner | Issuing Authority | |
| SalesDocument | ||||
| SalesDocumentItem | ||||
| ScheduleLine | ||||
| _MassChangeReadRequest | _MassChangeReadRequest | |||
| _SalesDocumentSelectionList | _SalesDocumentSelectionList | |||
| _SalesDocumentChgFieldList | _SalesDocumentChgFieldList | |||
| _MassChangeCntrlParam | _MassChangeCntrlParam |
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_MassChangeSlsDocRequest.
-- 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_MassChangeSlsDocRequest AS
SELECT
MCCReq.SlsDocMassChangeRequestUUID AS SlsDocMassChangeRequestUUID,
MCCReq.SlsDocMassChgEntityLevel AS SlsDocMassChgEntityLevel,
MCCReq.SDDocumentCategory AS SDDocumentCategory,
MCCReq.SlsDocMassChangeRequestRefUUID AS SlsDocMassChangeRequestRefUUID,
_SalesDocumentHdrNewValue.SDDocumentReason AS SDDocumentReason,
_SalesDocumentHdrNewValue._SDDocumentReason._Text[1:Language = $session.system_language].SDDocumentReasonText AS SDDocumentReasonText,
_SalesDocumentHdrNewValue.SalesOffice AS SalesOffice,
_SalesDocumentHdrNewValue._SalesOffice._Text[1:Language = $session.system_language].SalesOfficeName AS SalesOfficeName,
_SalesDocumentHdrNewValue.SalesGroup AS SalesGroup,
_SalesDocumentHdrNewValue._SalesGroup._Text[1:Language = $session.system_language].SalesGroupName AS SalesGroupName,
_SalesDocumentHdrNewValue.SalesDistrict AS SalesDistrict,
_SalesDocumentHdrNewValue._SalesDistrict._Text[1:Language = $session.system_language].SalesDistrictName AS SalesDistrictName,
_SalesDocumentHdrNewValue.RequestedDeliveryDate AS RequestedDeliveryDate,
_SalesDocumentHdrNewValue.ShippingCondition AS ShippingCondition,
_SalesDocumentHdrNewValue._ShippingCondition._Text[1:Language = $session.system_language].ShippingConditionName AS ShippingConditionName,
_SalesDocumentHdrNewValue.ShippingType AS ShippingType,
_SalesDocumentHdrNewValue._ShippingType._Text[1:Language = $session.system_language].ShippingTypeName AS ShippingTypeName,
_SalesDocumentHdrNewValue.ReceivingPoint AS ReceivingPoint,
_SalesDocumentHdrNewValue.CustomerPaymentTerms AS CustomerPaymentTerms,
_SalesDocumentHdrNewValue._CustomerPaymentTerms._Text[1:Language = $session.system_language].CustomerPaymentTermsName AS CustomerPaymentTermsName,
_SalesDocumentHdrNewValue.PaymentMethod AS PaymentMethod,
_SalesDocumentHdrNewValue.TransactionCurrency AS TransactionCurrency,
_SalesDocumentHdrNewValue._TransactionCurrency._Text[1:Language = $session.system_language].CurrencyName AS CurrencyName,
_SalesDocumentHdrNewValue.PricingDate AS PricingDate,
_SalesDocumentHdrNewValue.BillingDocumentDate AS BillingDocumentDate,
_SalesDocumentHdrNewValue.SalesDocumentDate AS SalesDocumentDate,
_SalesDocumentHdrNewValue.IncotermsClassification AS IncotermsClassification,
_SalesDocumentHdrNewValue._IncotermsClassification._Text[1:Language = $session.system_language].IncotermsClassificationName AS IncotermsClassificationName,
_SalesDocumentHdrNewValue.IncotermsTransferLocation AS IncotermsTransferLocation,
_SalesDocumentHdrNewValue.IncotermsLocation1 AS IncotermsLocation1,
_SalesDocumentHdrNewValue.IncotermsLocation2 AS IncotermsLocation2,
_SalesDocumentHdrNewValue.IncotermsVersion AS IncotermsVersion,
_SalesDocumentHdrNewValue._IncotermsVersion._Text[1:Language = $session.system_language].IncotermsVersionName AS IncotermsVersionName,
_SalesDocumentHdrNewValue.DeliveryBlockReason AS DeliveryBlockReason,
_SalesDocumentHdrNewValue.HeaderBillingBlockReason AS HeaderBillingBlockReason,
_SalesDocumentHdrNewValue.SalesDocumentRjcnReason AS SalesDocumentRjcnReason,
_SalesDocumentHdrNewValue.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
_SalesDocumentHdrNewValue.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
_SalesDocumentHdrNewValue.CompleteDeliveryIsDefined AS CompleteDeliveryIsDefined,
_SalesDocumentItmNewValue.SalesDocumentItemCategory AS SalesDocumentItemCategory,
_SalesDocumentItmNewValue._ItemCategory._Text[1:Language = $session.system_language].SalesDocumentItemCategoryName AS SalesDocumentItemCategoryName,
_SalesDocumentItmNewValue.Product AS Product,
_SalesDocumentItmNewValue._Product._Text[1:Language = $session.system_language].ProductName AS ProductName,
_SalesDocumentItmNewValue.SalesDocumentItemText AS SalesDocumentItemText,
_SalesDocumentItmNewValue.ProductHierarchyNode AS ProductHierarchyNode,
_SalesDocumentItmNewValue.Batch AS Batch,
_SalesDocumentItmNewValue.Division AS Division,
_SalesDocumentItmNewValue.DeliveryPriority AS DeliveryPriority,
_SalesDocumentItmNewValue._DeliveryPriority._Text[1:Language = $session.system_language].DeliveryPriorityDesc AS DeliveryPriorityDesc,
_SalesDocumentItmNewValue.Plant AS Plant,
_SalesDocumentItmNewValue._Plant.PlantName AS PlantName,
_SalesDocumentItmNewValue.UnloadingPointName AS UnloadingPointName,
_SalesDocumentItmNewValue.StorageLocation AS StorageLocation,
_SalesDocumentItmNewValue._StorageLocation.StorageLocationName AS StorageLocationName,
_SalesDocumentItmNewValue.ShippingPoint AS ShippingPoint,
_SalesDocumentItmNewValue._ShippingPoint._Text[1:Language = $session.system_language].ShippingPointName AS ShippingPointName,
_SalesDocumentItmNewValue.Route AS Route,
_SalesDocumentItmNewValue._Route._Text[1:Language = $session.system_language].RouteName AS RouteName,
_SalesDocumentItmNewValue.ItemBillingBlockReason AS ItemBillingBlockReason,
_SalesDocumentItmNewValue.ExpdDelivQuantityChangeReason AS ExpdDelivQuantityChangeReason,
_SalesDocumentItmNewValue.ReturnReason AS ReturnReason,
_SalesDocumentItmNewValue.CustRetItmFollowUpActivity AS CustRetItmFollowUpActivity,
_SalesDocumentItmNewValue.WBSElementInternalID AS WBSElementInternalID,
cast(' ' as ps_posid_edit ) AS WBSElementExternalID,
cast ( ' ' as ps_s4_post1 ) AS WBSDescription,
_SalesDocumentItmNewValue.MaterialByCustomer AS MaterialByCustomer,
_SalesDocumentItmNewValue.PricingType AS PricingType,
_SalesDocumentItmNewValue.ProfitCenter AS ProfitCenter,
cast(' ' as abap.char( 100 ) ) AS ProfitCenterName,
_SalesDocumentSlnNewValue.ScheduleLineCategory AS ScheduleLineCategory,
_SalesDocumentSlnNewValue.DelivBlockReasonForSchedLine AS DelivBlockReasonForSchedLine,
_SalesDocumentPartNewValue.PartnerFunction AS PartnerFunction,
cast( _SalesDocumentPartNewValue.Partner as kunnr ) AS Customer,
cast( _SalesDocumentPartNewValue.Partner as lifnr ) AS Supplier,
cast( _SalesDocumentPartNewValue.Partner as pernr_d ) AS Personnel,
cast( _SalesDocumentPartNewValue.Partner as parnr ) AS ContactPerson,
_SalesDocumentPartNewValue.PartnerIsDeleted AS PartnerIsDeleted,
_SalesDocumentPartNewValue.AddressID AS AddressID,
_SalesDocumentPartNewValue.BusinessPartner AS BusinessPartner,
cast( '' as vbeln_va ) AS SalesDocument,
cast( '' as posnr_va ) AS SalesDocumentItem,
cast( '' as etenr ) AS ScheduleLine
FROM I_SDMassChgCkptMassChgReqBsc AS MCCReq
LEFT OUTER JOIN I_SDMassChgCkptSlsDocHdrChg AS _SalesDocumentHdrNewValue ON SlsDocMassChangeRequestUUID = _SalesDocumentHdrNewValue.SlsDocMassChangeRequestUUID -- association [0..1]
LEFT OUTER JOIN I_SDMassChgCkptSlsDocItemChg AS _SalesDocumentItmNewValue ON SlsDocMassChangeRequestUUID = _SalesDocumentItmNewValue.SlsDocMassChangeRequestUUID -- association [0..1]
LEFT OUTER JOIN I_SDMassChgCkptSlsSchdLnChg AS _SalesDocumentSlnNewValue ON SlsDocMassChangeRequestUUID = _SalesDocumentSlnNewValue.SlsDocMassChangeRequestUUID -- association [0..1]
LEFT OUTER JOIN I_SDMassChgCkptSlsPartChg AS _SalesDocumentPartNewValue ON SlsDocMassChangeRequestUUID = _SalesDocumentPartNewValue.SlsDocMassChangeRequestUUID -- association [0..1]
LEFT OUTER JOIN I_SDMassChgCkptChgFldList AS _SalesDocumentChgFieldList ON SlsDocMassChangeRequestUUID = _SalesDocumentChgFieldList.SlsDocMassChangeRequestUUID -- association [0..*]
LEFT OUTER JOIN C_SDMassChgCkptChgSlsDoc AS _SalesDocumentSelectionList ON SlsDocMassChangeRequestUUID = _SalesDocumentSelectionList.SlsDocMassChangeRequestUUID -- association [0..*]
LEFT OUTER JOIN C_MassChangeSlsDocReadRequest AS _MassChangeReadRequest ON SlsDocMassChangeRequestUUID = _MassChangeReadRequest.SlsDocMassChangeRequestUUID -- association [0..1]
LEFT OUTER JOIN C_MassChangeSlsDocCtrlParam AS _MassChangeCntrlParam ON SlsDocMassChangeRequestUUID = _MassChangeCntrlParam.SlsDocMassChangeRequestUUID -- association [0..1]
LEFT OUTER JOIN E_SDMassChgCkptSlsDocHdrChgBsc AS _HeaderExtension ON SlsDocMassChangeRequestUUID = _HeaderExtension.SlsDocMassChangeRequestUUID -- association [0..1]
LEFT OUTER JOIN E_SDMassChgCkptSlsDocItmChgBsc AS _ItemExtension ON SlsDocMassChangeRequestUUID = _ItemExtension.SlsDocMassChangeRequestUUID -- association [0..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