C_RFM_MaSaDoSlsItmDeviationChk

DDL: C_RFM_MASADOSLSITMDEVIATIONCHK Type: view CONSUMPTION

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)

SourceAliasJoin Type
C_RFM_MaSaDoSlsItmCustBasic C_RFM_MaSaDoSlsItmCustBasic from

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;