C_RFM_MaSaDoSlsItmDeviationChk
Sales Document Item Deviation Check
C_RFM_MaSaDoSlsItmDeviationChk is a Consumption CDS View that provides data about "Sales Document Item Deviation Check" in SAP S/4HANA. It reads from 1 data source (C_RFM_MaSaDoSlsItmCustBasic) and exposes 26 fields with key fields SalesDocument, SalesDocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_RFM_MaSaDoSlsItmCustBasic | C_RFM_MaSaDoSlsItmCustBasic | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Sales Document Item Deviation Check | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.sqlViewName | CRFMASADOITDVCHK | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | SalesDocument | SD Document | |
| KEY | SalesDocumentItem | SalesDocumentItem | Sales Document Item | |
| FormattedSalesDocumentItem | FormattedSalesDocumentItem | |||
| SalesDocumentType | SalesDocumentType | Sales Doc. Type | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| MarkFor | MarkFor | |||
| SoldToParty | SoldToParty | Sold-to Party | ||
| SlsOrdCustPaytTermsHasDeviated | ||||
| CustomerPaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| SlsOrdCustomerPaymentTerms | SlsOrdCustomerPaymentTerms | Pyt Terms | ||
| SlsIncotermsClassfctnHasDvtn | ||||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| SlsOrdIncotermsClassification | SlsOrdIncotermsClassification | Incoterms | ||
| SlsOrdIncotermsLoc1HasDeviated | ||||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| SlsOrdIncotermsLocation1 | SlsOrdIncotermsLocation1 | Inco. Location1 | ||
| SlsOrdCustPriceGrpHasDeviated | ||||
| CustomerPriceGroup | CustomerPriceGroup | CustPrice Group | ||
| SalesOrderCustomerPriceGroup | SalesOrderCustomerPriceGroup | CustPrice Group | ||
| SalesOrderDeliveryPriority | SalesOrderDeliveryPriority | Delivery Prior. | ||
| _CustomerSalesArea | _CustomerSalesArea | |||
| _CustSlsAreaShipToPty | _CustSlsAreaShipToPty | |||
| _CustSlsAreaMarkFor | _CustSlsAreaMarkFor |
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_RFM_MaSaDoSlsItmDeviationChk.
-- 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_RFM_MaSaDoSlsItmDeviationChk AS
SELECT
SalesDocument,
SalesDocumentItem,
FormattedSalesDocumentItem,
SalesDocumentType,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
ShipToParty,
MarkFor,
SoldToParty,
case when CustomerPaymentTerms <> SlsOrdCustomerPaymentTerms then 'X' else '' end AS SlsOrdCustPaytTermsHasDeviated,
CustomerPaymentTerms,
SlsOrdCustomerPaymentTerms,
case when IncotermsClassification <> SlsOrdIncotermsClassification then 'X' else '' end AS SlsIncotermsClassfctnHasDvtn,
IncotermsClassification,
SlsOrdIncotermsClassification,
case when IncotermsLocation1 <> SlsOrdIncotermsLocation1 then 'X' else '' end AS SlsOrdIncotermsLoc1HasDeviated,
IncotermsLocation1,
SlsOrdIncotermsLocation1,
case when CustomerPriceGroup <> SalesOrderCustomerPriceGroup then 'X' else '' end AS SlsOrdCustPriceGrpHasDeviated,
CustomerPriceGroup,
SalesOrderCustomerPriceGroup,
SalesOrderDeliveryPriority
FROM C_RFM_MaSaDoSlsItmCustBasic
;
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