I_Order2CashSalesOrder

DDL: I_ORDER2CASHSALESORDER Type: view BASIC

Sales order

I_Order2CashSalesOrder is a Basic CDS View (Dimension) that provides data about "Sales order" in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 215 fields with key field SalesOrder. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument SalesDocument from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_BusinessAreaText _BusinessAreaText $projection.BusinessArea = _BusinessAreaText.BusinessArea
[0..*] I_CreditControlAreaText _CreditControlAreaText $projection.CreditControlArea = _CreditControlAreaText.CreditControlArea
[0..1] I_SalesOrderType _SalesOrderType $projection.SalesOrderType = _SalesOrderType.SalesOrderType
[0..*] I_SalesOrderPricingElement _PricingElement $projection.SalesOrder = _PricingElement.SalesOrder
[0..*] I_Order2CashSalesOrderItem _Salesorderitemfs $projection.SalesOrder = SalesDocument.SalesDocument
[0..1] E_SalesDocumentBasic _Extension SalesDocument.SalesDocument = _Extension.SalesDocument

Annotations (16)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales order view
Analytics.internalName #LOCAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName IO2CSALESORDER view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.representativeKey SalesOrder view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view

Fields (215)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder SD Document
SalesOrderType Sales Doc. Type
SalesOrderProcessingType SalesDocumentProcessingType
CreatedByUser CreatedByUser User Name
LastChangedByUser LastChangedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangeDate LastChangeDate Time Stamp
LastChangeDateTime LastChangeDateTime Timestamp
SenderBusinessSystemName SenderBusinessSystemName
ExternalDocumentID ExternalDocumentID Ext. Reference ID
ExternalDocLastChangeDateTime ExternalDocLastChangeDateTime
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
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
SlsDocIsRlvtForProofOfDeliv SlsDocIsRlvtForProofOfDeliv POD-relevant
CreditControlArea CreditControlArea Credit Control Area
CustomerRebateAgreement CustomerRebateAgreement
SalesOrderDate SalesDocumentDate Document Date
ServicesRenderedDate ServicesRenderedDate Services Rendered Date
SDDocumentReason SDDocumentReason Order Reason
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
SDDocumentCollectiveNumber SDDocumentCollectiveNumber
CustomerPurchaseOrderType CustomerPurchaseOrderType
CustomerPurchaseOrderDate CustomerPurchaseOrderDate Purchase Order Date
CustomerPurchaseOrderSuplmnt CustomerPurchaseOrderSuplmnt
SalesDistrict SalesDistrict Sales District
StatisticsCurrency StatisticsCurrency
ProductCatalog ProductCatalog Catalog
NextCreditCheckDate NextCreditCheckDate
LastCustomerContactDate LastCustomerContactDate
TotalNetAmount TotalNetAmount Total Net Amount
TransactionCurrency TransactionCurrency Transaction Currency
PricingDate PricingDate Pricing Date
PriceDetnExchangeRate PriceDetnExchangeRate Exchange Rate
RetailPromotion RetailPromotion Promotion
SalesOrderCondition SalesDocumentCondition
SDPricingProcedure SDPricingProcedure Pric. Procedure
CustomerPriceGroup CustomerPriceGroup CustPrice Group
PriceListType PriceListType Price List Tp.
CustomerTaxClassification1 CustomerTaxClassification1
CustomerTaxClassification2 CustomerTaxClassification2
CustomerTaxClassification3 CustomerTaxClassification3
CustomerTaxClassification4 CustomerTaxClassification4
CustomerTaxClassification5 CustomerTaxClassification5
CustomerTaxClassification6 CustomerTaxClassification6
CustomerTaxClassification7 CustomerTaxClassification7
CustomerTaxClassification8 CustomerTaxClassification8
CustomerTaxClassification9 CustomerTaxClassification9
TaxDepartureCountry TaxDepartureCountry Tx Dep Ctry/Reg
VATRegistrationCountry VATRegistrationCountry CtryRgnSlsTxNo.
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
DeliveryDateTypeRule DeliveryDateTypeRule Deliv Date Rule
ShippingType ShippingType Shipping Type
ShippingCondition ShippingCondition Shipping Conditions
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
IncotermsVersion IncotermsVersion Inco. Version
CompleteDeliveryIsDefined CompleteDeliveryIsDefined Complete Dlv.
DeliveryBlockReason DeliveryBlockReason Delivery Block
FashionCancelDate FashionCancelDate
BillingDocumentDate BillingDocumentDate Billing Date
BillingCompanyCode BillingCompanyCode CCodeToBeBilled
HeaderBillingBlockReason HeaderBillingBlockReason Billing Block
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
PaymentMethod PaymentMethod Pymt Meth.
FixedValueDate FixedValueDate Fixed Val. Date
FiscalYear FiscalYear G/L Fiscal Year
FiscalPeriod FiscalPeriod Tax period
ExchangeRateDate ExchangeRateDate Translatn Date
ExchangeRateType ExchangeRateType Exch. Rate Type
BusinessArea BusinessArea Business Area
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup AccAssmtGrpCust
CostCenter CostCenter Cost Center
ControllingArea ControllingArea Controlling Area
OrderID OrderID Order ID
ControllingObject ControllingObject Object number
AssignmentReference AssignmentReference Assignment Reference
PaymentPlan PaymentPlan Paym.Ca.Pl.No.
ContractAccount ContractAccount Contract Acct
AdditionalValueDays AdditionalValueDays Add. Value Days
CustomerCreditAccount CustomerCreditAccount
ReferenceSDDocument ReferenceSDDocument Reference Doc.
ReferenceSDDocumentCategory ReferenceSDDocumentCategory Prec.Doc.Categ.
CorrespncExternalReference CorrespncExternalReference Your Reference
AccountingDocExternalReference AccountingDocExternalReference
BusinessSolutionOrder BusinessSolutionOrder Solution Order
OverallSDProcessStatus OverallSDProcessStatus
OverallPurchaseConfStatus OverallPurchaseConfStatus
OverallSDDocumentRejectionSts OverallSDDocumentRejectionSts
TotalBlockStatus TotalBlockStatus
OverallDelivConfStatus OverallDelivConfStatus
OverallTotalDeliveryStatus OverallTotalDeliveryStatus
OverallDeliveryStatus OverallDeliveryStatus
OverallDeliveryBlockStatus OverallDeliveryBlockStatus
OverallOrdReltdBillgStatus OverallOrdReltdBillgStatus
OverallBillingBlockStatus OverallBillingBlockStatus
OverallTotalSDDocRefStatus OverallTotalSDDocRefStatus
OverallSDDocReferenceStatus OverallSDDocReferenceStatus
TotalCreditCheckStatus TotalCreditCheckStatus
MaxDocValueCreditCheckStatus MaxDocValueCreditCheckStatus
FinDocCreditCheckStatus FinDocCreditCheckStatus
ExprtInsurCreditCheckStatus ExprtInsurCreditCheckStatus
PaytAuthsnCreditCheckSts PaytAuthsnCreditCheckSts
CentralCreditCheckStatus CentralCreditCheckStatus
CentralCreditChkTechErrSts CentralCreditChkTechErrSts
HdrGeneralIncompletionStatus HdrGeneralIncompletionStatus Incompletion status
OverallPricingIncompletionSts OverallPricingIncompletionSts
HeaderDelivIncompletionStatus HeaderDelivIncompletionStatus
HeaderBillgIncompletionStatus HeaderBillgIncompletionStatus
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts
OvrlItmBillingIncompletionSts OvrlItmBillingIncompletionSts
OvrlItmDelivIncompletionSts OvrlItmDelivIncompletionSts
OverallChmlCmplncStatus OverallChmlCmplncStatus
OverallDangerousGoodsStatus OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus OverallSafetyDataSheetStatus
SalesDocApprovalStatus SalesDocApprovalStatus
OverallTrdCmplncEmbargoSts OverallTrdCmplncEmbargoSts
OvrlTrdCmplncSnctndListChkSts OvrlTrdCmplncSnctndListChkSts
OvrlTrdCmplncLegalCtrlChkSts OvrlTrdCmplncLegalCtrlChkSts
SalesOrderDownPaymentStatus ContractDownPaymentStatus
OmniChnlSalesPromotionStatus OmniChnlSalesPromotionStatus
AlternativePricingDate AlternativePricingDate
_StandardPartner _StandardPartner
_PricingElement _PricingElement
_SDPricingProcedure _SDPricingProcedure
_CustomerPriceGroup _CustomerPriceGroup
_PriceListType _PriceListType
_SalesOrderType _SalesOrderType
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_OrganizationDivision _OrganizationDivision
_SalesGroup _SalesGroup
_SalesOffice _SalesOffice
_SoldToParty _SoldToParty
_CustomerGroup _CustomerGroup
_AdditionalCustomerGroup1 _AdditionalCustomerGroup1
_AdditionalCustomerGroup2 _AdditionalCustomerGroup2
_AdditionalCustomerGroup3 _AdditionalCustomerGroup3
_AdditionalCustomerGroup4 _AdditionalCustomerGroup4
_AdditionalCustomerGroup5 _AdditionalCustomerGroup5
_CreditControlArea _CreditControlArea
_SDDocumentReason _SDDocumentReason
_CustomerPurchaseOrderType _CustomerPurchaseOrderType
_SalesDistrict _SalesDistrict
_TransactionCurrency _TransactionCurrency
_StatisticsCurrency _StatisticsCurrency
_ShippingType _ShippingType
_ShippingCondition _ShippingCondition
_IncotermsClassification _IncotermsClassification
_IncotermsVersion _IncotermsVersion
_DeliveryBlockReason _DeliveryBlockReason
_DeliveryDateTypeRule _DeliveryDateTypeRule
_BillingCompanyCode _BillingCompanyCode
_HeaderBillingBlockReason _HeaderBillingBlockReason
_CustomerPaymentTerms _CustomerPaymentTerms
_ExchangeRateType _ExchangeRateType
_BusinessArea _BusinessArea
_CustomerAccountAssgmtGroup _CustomerAccountAssgmtGroup
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_ControllingObject _ControllingObject
_CustomerCreditAccount _CustomerCreditAccount
_ReferenceSDDocumentCategory _ReferenceSDDocumentCategory
_SolutionOrder _SolutionOrder
_OverallSDProcessStatus _OverallSDProcessStatus
_OverallPurchaseConfStatus _OverallPurchaseConfStatus
_OverallSDDocumentRejectionSts _OverallSDDocumentRejectionSts
_TotalBlockStatus _TotalBlockStatus
_OverallDelivConfStatus _OverallDelivConfStatus
_OverallTotalDeliveryStatus _OverallTotalDeliveryStatus
_OverallDeliveryStatus _OverallDeliveryStatus
_OverallDeliveryBlockStatus _OverallDeliveryBlockStatus
_OverallOrdReltdBillgStatus _OverallOrdReltdBillgStatus
_OverallBillingBlockStatus _OverallBillingBlockStatus
_OverallTotalSDDocRefStatus _OverallTotalSDDocRefStatus
_OverallSDDocReferenceStatus _OverallSDDocReferenceStatus
_TotalCreditCheckStatus _TotalCreditCheckStatus
_MaxDocValueCreditCheckStatus _MaxDocValueCreditCheckStatus
_FinDocCreditCheckStatus _FinDocCreditCheckStatus
_ExprtInsurCreditCheckStatus _ExprtInsurCreditCheckStatus
_PaytAuthsnCreditCheckSts _PaytAuthsnCreditCheckSts
_CentralCreditCheckStatus _CentralCreditCheckStatus
_CentralCreditChkTechErrSts _CentralCreditChkTechErrSts
_HdrGeneralIncompletionStatus _HdrGeneralIncompletionStatus
_OverallPricingIncompletionSts _OverallPricingIncompletionSts
_HeaderDelivIncompletionStatus _HeaderDelivIncompletionStatus
_HeaderBillgIncompletionStatus _HeaderBillgIncompletionStatus
_OvrlItmGeneralIncompletionSts _OvrlItmGeneralIncompletionSts
_OvrlItmBillingIncompletionSts _OvrlItmBillingIncompletionSts
_OvrlItmDelivIncompletionSts _OvrlItmDelivIncompletionSts
_OverallChmlCmplncStatus _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts _OvrlSftyDataSheetSts
_SalesDocApprovalStatus _SalesDocApprovalStatus
_OvrlTradeCmplncEmbargoStatus _OvrlTradeCmplncEmbargoStatus
_OvTrdCmplncSnctndListChkSts _OvTrdCmplncSnctndListChkSts
_OvrlTrdCmplncLegalCtrlChkSts _OvrlTrdCmplncLegalCtrlChkSts
_OmniChnlSalesPromotionStatus _OmniChnlSalesPromotionStatus
_DownPaymentStatus _DownPaymentStatus
_EngagementProjectItem _EngagementProjectItem
_BusinessAreaText _BusinessAreaText
_CreditControlAreaText _CreditControlAreaText

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 I_Order2CashSalesOrder.
-- 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 I_Order2CashSalesOrder AS
SELECT
  cast(SalesDocument as vdm_sales_order preserving type) AS SalesOrder,
  cast( SalesDocumentType as sales_order_type preserving type ) AS SalesOrderType,
  SalesDocumentProcessingType AS SalesOrderProcessingType,
  CreatedByUser,
  LastChangedByUser,
  CreationDate,
  CreationTime,
  LastChangeDate,
  LastChangeDateTime,
  SenderBusinessSystemName,
  ExternalDocumentID,
  ExternalDocLastChangeDateTime,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  SalesGroup,
  SalesOffice,
  CustomerGroup,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5,
  SlsDocIsRlvtForProofOfDeliv,
  CreditControlArea,
  CustomerRebateAgreement,
  SalesDocumentDate AS SalesOrderDate,
  ServicesRenderedDate,
  SDDocumentReason,
  PurchaseOrderByCustomer,
  SDDocumentCollectiveNumber,
  CustomerPurchaseOrderType,
  CustomerPurchaseOrderDate,
  CustomerPurchaseOrderSuplmnt,
  SalesDistrict,
  StatisticsCurrency,
  ProductCatalog,
  NextCreditCheckDate,
  LastCustomerContactDate,
  TotalNetAmount,
  TransactionCurrency,
  PricingDate,
  PriceDetnExchangeRate,
  RetailPromotion,
  SalesDocumentCondition AS SalesOrderCondition,
  SDPricingProcedure,
  CustomerPriceGroup,
  PriceListType,
  CustomerTaxClassification1,
  CustomerTaxClassification2,
  CustomerTaxClassification3,
  CustomerTaxClassification4,
  CustomerTaxClassification5,
  CustomerTaxClassification6,
  CustomerTaxClassification7,
  CustomerTaxClassification8,
  CustomerTaxClassification9,
  TaxDepartureCountry,
  VATRegistrationCountry,
  RequestedDeliveryDate,
  DeliveryDateTypeRule,
  ShippingType,
  ShippingCondition,
  IncotermsClassification,
  IncotermsTransferLocation,
  IncotermsLocation1,
  IncotermsLocation2,
  IncotermsVersion,
  CompleteDeliveryIsDefined,
  DeliveryBlockReason,
  FashionCancelDate,
  BillingDocumentDate,
  BillingCompanyCode,
  HeaderBillingBlockReason,
  CustomerPaymentTerms,
  PaymentMethod,
  FixedValueDate,
  FiscalYear,
  FiscalPeriod,
  ExchangeRateDate,
  ExchangeRateType,
  BusinessArea,
  CustomerAccountAssignmentGroup,
  CostCenter,
  ControllingArea,
  OrderID,
  ControllingObject,
  AssignmentReference,
  PaymentPlan,
  ContractAccount,
  AdditionalValueDays,
  CustomerCreditAccount,
  ReferenceSDDocument,
  ReferenceSDDocumentCategory,
  CorrespncExternalReference,
  AccountingDocExternalReference,
  BusinessSolutionOrder,
  OverallSDProcessStatus,
  OverallPurchaseConfStatus,
  OverallSDDocumentRejectionSts,
  TotalBlockStatus,
  OverallDelivConfStatus,
  OverallTotalDeliveryStatus,
  OverallDeliveryStatus,
  OverallDeliveryBlockStatus,
  OverallOrdReltdBillgStatus,
  OverallBillingBlockStatus,
  OverallTotalSDDocRefStatus,
  OverallSDDocReferenceStatus,
  TotalCreditCheckStatus,
  MaxDocValueCreditCheckStatus,
  FinDocCreditCheckStatus,
  ExprtInsurCreditCheckStatus,
  PaytAuthsnCreditCheckSts,
  CentralCreditCheckStatus,
  CentralCreditChkTechErrSts,
  HdrGeneralIncompletionStatus,
  OverallPricingIncompletionSts,
  HeaderDelivIncompletionStatus,
  HeaderBillgIncompletionStatus,
  OvrlItmGeneralIncompletionSts,
  OvrlItmBillingIncompletionSts,
  OvrlItmDelivIncompletionSts,
  OverallChmlCmplncStatus,
  OverallDangerousGoodsStatus,
  OverallSafetyDataSheetStatus,
  SalesDocApprovalStatus,
  OverallTrdCmplncEmbargoSts,
  OvrlTrdCmplncSnctndListChkSts,
  OvrlTrdCmplncLegalCtrlChkSts,
  ContractDownPaymentStatus AS SalesOrderDownPaymentStatus,
  OmniChnlSalesPromotionStatus,
  AlternativePricingDate
FROM I_SalesDocument AS SalesDocument
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea  -- association [0..*]
LEFT OUTER JOIN I_CreditControlAreaText AS _CreditControlAreaText ON CreditControlArea = _CreditControlAreaText.CreditControlArea  -- association [0..*]
LEFT OUTER JOIN I_SalesOrderType AS _SalesOrderType ON SalesOrderType = _SalesOrderType.SalesOrderType  -- association [0..1]
LEFT OUTER JOIN I_SalesOrderPricingElement AS _PricingElement ON SalesOrder = _PricingElement.SalesOrder  -- association [0..*]
LEFT OUTER JOIN I_Order2CashSalesOrderItem AS _Salesorderitemfs ON SalesOrder = SalesDocument.SalesDocument  -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesDocument.SalesDocument = _Extension.SalesDocument  -- association [0..1]
;