C_SlsDocFlfllmntAnalyzer

DDL: C_SLSDOCFLFLLMNTANALYZER SQL: CSOFANALYZER Type: view CONSUMPTION

Track Sales Orders

C_SlsDocFlfllmntAnalyzer is a Consumption CDS View that provides data about "Track Sales Orders" in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 88 fields with key field SalesDocument. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument SalesDocument from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_SalesDocumentRjcnReason _SalesDocumentRjcnReason $projection.SalesDocumentRjcnReason = _SalesDocumentRjcnReason.SalesDocumentRjcnReason
[0..1] C_Dischannelvaluehelp _DistributionChannelVH $projection.SalesOrganization = _DistributionChannelVH.SalesOrganization and $projection.DistributionChannel = _DistributionChannelVH.DistributionChannel
[0..1] C_OrgDivisionValueHelp _OrganizationDivisionVH $projection.SalesOrganization = _OrganizationDivisionVH.SalesOrganization and $projection.DistributionChannel = _OrganizationDivisionVH.DistributionChannel and $projection.OrganizationDivision = _OrganizationDivisionVH.Division
[0..1] C_SalesOfficeValueHelp _SalesOfficeVH $projection.SalesOrganization = _SalesOfficeVH.SalesOrganization and $projection.DistributionChannel = _SalesOfficeVH.DistributionChannel and $projection.OrganizationDivision = _SalesOfficeVH.OrganizationDivision and $projection.SalesOffice = _SalesOfficeVH.SalesOffice
[0..1] C_SalesGroupValueHelp _SalesGroupVH $projection.SalesOffice = _SalesGroupVH.SalesOffice and $projection.SalesGroup = _SalesGroupVH.SalesGroup
[0..1] C_Overallsddocumentrjcnstatus _OverallSDDocRejectionStsVH $projection.OverallSDDocumentRejectionSts = _OverallSDDocRejectionStsVH.OverallSDDocumentRejectionSts
[0..1] E_SalesDocumentBasic _Extension SalesDocument.SalesDocument = _Extension.SalesDocument

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.representativeKey SalesDocument view
EndUserText.label Track Sales Orders view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
Search.searchable true view
AccessControl.authorizationCheck #CHECK view
Metadata.allowExtensions true view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CSOFANALYZER view

Fields (88)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SalesDocument SalesDocument SD Document
OverallFulfillmentStatus FulfillmentStatus OverallFulfillmentStatus
FulfillmentStatusInOrder FulfillmentStatus FulfillmentStatusInOrder
FulfillmentStatusInSupply FulfillmentStatus FulfillmentStatusInSupply
FulfillmentStatusInDelivery FulfillmentStatus FulfillmentStatusInDelivery
FulfillmentStatusInTransit FulfillmentStatus FulfillmentStatusInTransit
FulfillmentStatusInInvoice FulfillmentStatus FulfillmentStatusInInvoice
FulfillmentStatusInAccounting FulfillmentStatus FulfillmentStatusInAccounting
FulfillmentProcessPhase FulfillmentProcessPhase
SDDocumentCategory I_SalesDocument SDDocumentCategory Document Cat.
SalesDocumentType I_SalesDocument SalesDocumentType Sales Doc. Type
SalesDocumentProcessingType I_SalesDocument SalesDocumentProcessingType
CreatedByUser I_SalesDocument CreatedByUser User Name
CreatedByUserName _CreatedByUser UserDescription Full Name
LastChangedByUser I_SalesDocument LastChangedByUser User Name
LastChangedByUserName _LastChangedByUser UserDescription Full Name
CreationDate I_SalesDocument CreationDate Time Stamp
LastChangeDate I_SalesDocument LastChangeDate Time Stamp
SalesOrganization I_SalesDocument SalesOrganization Sales Organization
DistributionChannel I_SalesDocument DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision I_SalesDocument OrganizationDivision Org. Division
SalesGroup I_SalesDocument SalesGroup Sales Group
SalesOffice I_SalesDocument SalesOffice Sales Office
SoldToParty I_SalesDocument SoldToParty Sold-to Party
SoldToPartyIsOneTimeAccount
PurchaseOrderByCustomer
SalesDocumentDate I_SalesDocument SalesDocumentDate Document Date
TotalNetAmount I_SalesDocument TotalNetAmount Total Net Amount
TransactionCurrency I_SalesDocument TransactionCurrency Transaction Currency
TotalGrossAmount
RequestedDeliveryDate I_SalesDocument RequestedDeliveryDate Requested Delivery Date
OverallSDProcessStatus I_SalesDocument OverallSDProcessStatus
OverallTotalDeliveryStatus I_SalesDocument OverallTotalDeliveryStatus
OverallPurchaseConfStatus
OverallSDDocumentRejectionSts I_SalesDocument OverallSDDocumentRejectionSts
DeliveryBlockReason I_SalesDocument DeliveryBlockReason Delivery Block
HeaderBillingBlockReason I_SalesDocument HeaderBillingBlockReason Billing Block
SalesDocumentRjcnReason
SalesDocApprovalStatus SalesDocApprovalStatus
OverallChmlCmplncStatus
OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus
OverallTrdCmplncEmbargoSts
OvrlTrdCmplncSnctndListChkSts
OvrlTrdCmplncLegalCtrlChkSts
ValueChainBusinessObject
ValueChainType
SlsDocValChnIntegrationText
BusinessSolutionOrder I_SalesDocument BusinessSolutionOrder Solution Order
_FulfillmentStatusInOrder _FulfillmentStatusInOrder
_FulfillmentStatusInSupply _FulfillmentStatusInSupply
_FulfillmentStatusInDelivery _FulfillmentStatusInDelivery
_FulfillmentStatusInTransit _FulfillmentStatusInTransit
_FulfillmentStatusInInvoice _FulfillmentStatusInInvoice
_FulfillmentStatusInAccounting _FulfillmentStatusInAccounting
_FulfillmentProcessPhase _FulfillmentProcessPhase
_SDDocumentCategory _SDDocumentCategory
_SalesDocumentType _SalesDocumentType
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_OrganizationDivision _OrganizationDivision
_SalesGroup _SalesGroup
_SalesOffice _SalesOffice
_SoldToParty _SoldToParty
_TransactionCurrency _TransactionCurrency
_OverallSDProcessStatus _OverallSDProcessStatus
_OverallPurchaseConfStatus _OverallPurchaseConfStatus
_OverallTotalDeliveryStatus _OverallTotalDeliveryStatus
_OverallSDDocumentRejectionSts _OverallSDDocumentRejectionSts
_SalesDocApprovalStatus _SalesDocApprovalStatus
_OverallChmlCmplncStatus _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts _OvrlSftyDataSheetSts
_OvrlTradeCmplncEmbargoStatus _OvrlTradeCmplncEmbargoStatus
_OvTrdCmplncSnctndListChkSts _OvTrdCmplncSnctndListChkSts
_OvrlTrdCmplncLegalCtrlChkSts _OvrlTrdCmplncLegalCtrlChkSts
_DeliveryBlockReason _DeliveryBlockReason
_HeaderBillingBlockReason _HeaderBillingBlockReason
_SalesDocumentRjcnReason _SalesDocumentRjcnReason
_DistributionChannelVH _DistributionChannelVH
_OrganizationDivisionVH _OrganizationDivisionVH
_SalesOfficeVH _SalesOfficeVH
_SalesGroupVH _SalesGroupVH
_OverallSDDocRejectionStsVH _OverallSDDocRejectionStsVH
OrganizationBPName1 _SoldToParty OrganizationBPName1 Name 1
OrganizationBPName2 _SoldToParty OrganizationBPName2 Name 2
UserDescription _LastChangedByUser UserDescription Full Name
_SolutionOrderATAddedforCE2008

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_SlsDocFlfllmntAnalyzer.
-- 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: CSOFANALYZER

CREATE VIEW C_SlsDocFlfllmntAnalyzer AS
SELECT
  SalesDocument.SalesDocument AS SalesDocument,
  FulfillmentStatus.OverallFulfillmentStatus AS OverallFulfillmentStatus,
  FulfillmentStatus.FulfillmentStatusInOrder AS FulfillmentStatusInOrder,
  FulfillmentStatus.FulfillmentStatusInSupply AS FulfillmentStatusInSupply,
  FulfillmentStatus.FulfillmentStatusInDelivery AS FulfillmentStatusInDelivery,
  FulfillmentStatus.FulfillmentStatusInTransit AS FulfillmentStatusInTransit,
  FulfillmentStatus.FulfillmentStatusInInvoice AS FulfillmentStatusInInvoice,
  FulfillmentStatus.FulfillmentStatusInAccounting AS FulfillmentStatusInAccounting,
  FulfillmentProcessPhase,
  SalesDocument.SDDocumentCategory AS SDDocumentCategory,
  SalesDocument.SalesDocumentType AS SalesDocumentType,
  SalesDocument.SalesDocumentProcessingType AS SalesDocumentProcessingType,
  SalesDocument.CreatedByUser AS CreatedByUser,
  _CreatedByUser.UserDescription AS CreatedByUserName,
  SalesDocument.LastChangedByUser AS LastChangedByUser,
  _LastChangedByUser.UserDescription AS LastChangedByUserName,
  SalesDocument.CreationDate AS CreationDate,
  SalesDocument.LastChangeDate AS LastChangeDate,
  SalesDocument.SalesOrganization AS SalesOrganization,
  SalesDocument.DistributionChannel AS DistributionChannel,
  SalesDocument.OrganizationDivision AS OrganizationDivision,
  SalesDocument.SalesGroup AS SalesGroup,
  SalesDocument.SalesOffice AS SalesOffice,
  SalesDocument.SoldToParty AS SoldToParty,
  cast(SoldToPartyAddressInfo.PartnerIsOneTimeAccount as isonetimeaccountsoldtoparty) AS SoldToPartyIsOneTimeAccount,
  SalesDocument.SalesDocumentDate AS SalesDocumentDate,
  SalesDocument.TotalNetAmount AS TotalNetAmount,
  SalesDocument.TransactionCurrency AS TransactionCurrency,
  cast( 0 as slsdoc_totalamount) AS TotalGrossAmount,
  SalesDocument.RequestedDeliveryDate AS RequestedDeliveryDate,
  SalesDocument.OverallSDProcessStatus AS OverallSDProcessStatus,
  SalesDocument.OverallTotalDeliveryStatus AS OverallTotalDeliveryStatus,
  cast(SalesDocument.OverallPurchaseConfStatus as totpurchaseconfsts preserving type ) AS OverallPurchaseConfStatus,
  SalesDocument.OverallSDDocumentRejectionSts AS OverallSDDocumentRejectionSts,
  SalesDocument.DeliveryBlockReason AS DeliveryBlockReason,
  SalesDocument.HeaderBillingBlockReason AS HeaderBillingBlockReason,
  cast( ' ' as abgru_va) AS SalesDocumentRjcnReason,
  SalesDocApprovalStatus,
  cast(SalesDocument.OverallChmlCmplncStatus as mon_tdd_total_pcsta preserving type) AS OverallChmlCmplncStatus,
  cast(SalesDocument.OverallDangerousGoodsStatus as mon_tdd_total_dgsta preserving type) AS OverallDangerousGoodsStatus,
  cast(SalesDocument.OverallSafetyDataSheetStatus as mon_tdd_total_sdssta preserving type) AS OverallSafetyDataSheetStatus,
  cast(SalesDocument.OverallTrdCmplncEmbargoSts as totembargochksts preserving type) AS OverallTrdCmplncEmbargoSts,
  cast(SalesDocument.OvrlTrdCmplncSnctndListChkSts as totwatchlistscrngchksts preserving type) AS OvrlTrdCmplncSnctndListChkSts,
  cast(SalesDocument.OvrlTrdCmplncLegalCtrlChkSts as totlglctrlchksts preserving type) AS OvrlTrdCmplncLegalCtrlChkSts,
  cast( '' as vcm_business_object_id ) AS ValueChainBusinessObject,
  cast( '' as vcm_value_chain_type ) AS ValueChainType,
  cast( '' as slsdocvalchnintegrationtext ) AS SlsDocValChnIntegrationText,
  SalesDocument.BusinessSolutionOrder AS BusinessSolutionOrder,
  _SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
  _SoldToParty.OrganizationBPName2 AS OrganizationBPName2,
  _LastChangedByUser.UserDescription AS UserDescription,
  SalesDocument._SolutionOrder AS _SolutionOrderATAddedforCE2008
FROM I_SalesDocument AS SalesDocument
LEFT OUTER JOIN I_SalesDocumentRjcnReason AS _SalesDocumentRjcnReason ON SalesDocumentRjcnReason = _SalesDocumentRjcnReason.SalesDocumentRjcnReason  -- association [0..1]
LEFT OUTER JOIN C_Dischannelvaluehelp AS _DistributionChannelVH ON SalesOrganization = _DistributionChannelVH.SalesOrganization AND DistributionChannel = _DistributionChannelVH.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN C_OrgDivisionValueHelp AS _OrganizationDivisionVH ON SalesOrganization = _OrganizationDivisionVH.SalesOrganization AND DistributionChannel = _OrganizationDivisionVH.DistributionChannel AND OrganizationDivision = _OrganizationDivisionVH.Division  -- association [0..1]
LEFT OUTER JOIN C_SalesOfficeValueHelp AS _SalesOfficeVH ON SalesOrganization = _SalesOfficeVH.SalesOrganization AND DistributionChannel = _SalesOfficeVH.DistributionChannel AND OrganizationDivision = _SalesOfficeVH.OrganizationDivision AND SalesOffice = _SalesOfficeVH.SalesOffice  -- association [0..1]
LEFT OUTER JOIN C_SalesGroupValueHelp AS _SalesGroupVH ON SalesOffice = _SalesGroupVH.SalesOffice AND SalesGroup = _SalesGroupVH.SalesGroup  -- association [0..1]
LEFT OUTER JOIN C_Overallsddocumentrjcnstatus AS _OverallSDDocRejectionStsVH ON OverallSDDocumentRejectionSts = _OverallSDDocRejectionStsVH.OverallSDDocumentRejectionSts  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesDocument.SalesDocument = _Extension.SalesDocument  -- association [0..1]
;