I_SalesContract
Sales Contract
I_SalesContract (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Sales Contract · Sales
I_SalesContract is a Basic CDS View (Dimension) that provides data about "Sales Contract" in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 202 fields with key field SalesContract. It has 9 associations to related views. Part of development package VDM_SD_SLS_OA_CCO.
SAP Help Documentation
| Category | Sales Contracts |
|---|---|
| Data Category | Dimension |
| Status | Overall Status |
Purpose
This CDS view retrieves header information of a sales contract.
Supported Capabilities
To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations You have authorizations to access the relevant sales contract types. You have authorizations to access the relevant sales organizations. You have authorizations to access the relevant divisions. You have authorizations to access the relevant distribution channels.
Structure
Further Important Fields Important fields in this view include the following: Field Name Description SalesContract (key) Sales Contract SalesOrganization Sales Organization SoldToParty Sold-to Party SalesContractType Sales Contract Type SalesContractDate Document Date OverallSDProcessStatus Overall Status
Data Extraction
Data Extraction Type Full (physical deletions are possible in source tables) Delta (change data capture)
This CDS view retrieves header information of a sales contract.
Supported Capabilities
To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations You have authorizations to access the relevant sales contract types. You have authorizations to access the relevant sales organizations. You have authorizations to access the relevant divisions. You have authorizations to access the relevant distribution channels.
Structure
Further Important Fields Important fields in this view include the following: Field Name Description SalesContract (key) Sales Contract SalesOrganization Sales Organization SoldToParty Sold-to Party SalesContractType Sales Contract Type SalesContractDate Document Date OverallSDProcessStatus Overall Status
Data Extraction
Data Extraction Type Full (physical deletions are possible in source tables) Delta (change data capture)
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Sales |
| Application Component | SD-SLS-OA-CCO-2CL |
| Capabilities | Data Source for Data Extraction,Data Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities,Analytical Dimension |
| Extensible (Key User) | Yes |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Sales for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view retrieves header information of a sales contract.</p> <p>This CDS view provides the prerequisites for answering questions about all relevant aspects of sales contracts.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocument | SalesDocument | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_SalesContractItem | _Item | $projection.SalesContract = _Item.SalesContract |
| [0..1] | I_SalesContractType | _SalesContractType | $projection.SalesContractType = _SalesContractType.SalesContractType |
| [0..*] | I_SalesContractPartner | _Partner | $projection.SalesContract = _Partner.SalesContract |
| [0..1] | I_SalesDocument | _MasterSalesContract | $projection.MasterSalesContract = _MasterSalesContract.SalesDocument |
| [0..*] | I_BusinessAreaText | _BusinessAreaText | $projection.BusinessArea = _BusinessAreaText.BusinessArea |
| [0..*] | I_BusinessAreaText | _CostCenterBusinessAreaText | $projection.CostCenterBusinessArea = _CostCenterBusinessAreaText.BusinessArea |
| [0..*] | I_CreditControlAreaText | _CreditControlAreaText | $projection.CreditControlArea = _CreditControlAreaText.CreditControlArea |
| [0..1] | I_SalesContractApprovalReason | _SalesContractApprovalReason | $projection.SalesContractApprovalReason = _SalesContractApprovalReason.SalesContractApprovalReason |
| [0..1] | E_SalesDocumentBasic | _Extension | SalesDocument.SalesDocument = _Extension.SalesDocument |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Sales Contract | view | |
| AbapCatalog.sqlViewName | ISDSALESCONTRACT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | SalesContract | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.sapObjectNodeType.name | SalesContract | view | |
| Analytics.dataExtraction.enabled | true | view |
Fields (202)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesContract | Sales Contract | ||
| SalesContractType | Sales Contract Type | |||
| CreatedByUser | CreatedByUser | Name of Person Responsible for Creating the Object | ||
| LastChangedByUser | LastChangedByUser | User Who Last Changed the Business Document | ||
| CreationDate | CreationDate | Record Creation Date | ||
| CreationTime | CreationTime | Time at Which Record Was Created | ||
| LastChangeDate | LastChangeDate | Last Changed On | ||
| LastChangeDateTime | LastChangeDateTime | UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Group 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Group 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Group 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Group 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Group 5 | ||
| CreditControlArea | CreditControlArea | Credit Control Area | ||
| CustomerRebateAgreement | CustomerRebateAgreement | Agreement (various conditions grouped together) | ||
| SalesContractDate | SalesDocumentDate | Document Date (Date Received/Sent) | ||
| ServicesRenderedDate | ServicesRenderedDate | Date on which services are rendered | ||
| SDDocumentReason | SDDocumentReason | Order Reason (Reason for the Business Transaction) | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| PurchaseOrderByShipToParty | PurchaseOrderByShipToParty | Ship-to Party's Customer Reference | ||
| CustomerPurchaseOrderType | CustomerPurchaseOrderType | Customer Purchase Order Type | ||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | Customer Reference Date | ||
| CustomerPurchaseOrderSuplmnt | CustomerPurchaseOrderSuplmnt | Purchase order number supplement | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| ProductCatalog | ProductCatalog | Product Catalog Number | ||
| SalesDocumentDescription | Description of a Sales Contract | |||
| SalesContractSignedDate | SalesContractSignedDate | Date on Which Contract Is Signed | ||
| ContractPartnerCanclnDocDate | ContractPartnerCanclnDocDate | Date of Cancellation Document from Contract Partner | ||
| NmbrOfSalesContractValdtyPerd | NmbrOfSalesContractValdtyPerd | Validity Period of Contract | ||
| SalesContractValidityPerdUnit | SalesContractValidityPerdUnit | Unit of Validity Period of Contract | ||
| SalesContractValidityPerdCat | SalesContractValidityPerdCat | Validity Period Category of Contract | ||
| SalesContractValidityStartDate | AgrmtValdtyStartDate | Valid-From Date (Outline Agreements, Product Proposals) | ||
| SalesContractValidityEndDate | AgrmtValdtyEndDate | Valid-To Date (Outline Agreements, Product Proposals) | ||
| SlsContractCanclnReqRcptDate | SlsContractCanclnReqRcptDate | Date on Which Cancellation Request Was Received | ||
| RequestedCancellationDate | RequestedCancellationDate | Requested Cancellation Date | ||
| SalesContractCanclnParty | SalesContractCanclnParty | Cancellation Party | ||
| SalesContractCanclnReason | SalesContractCanclnReason | Reason for Cancellation of Contract | ||
| SalesContractCanclnProcedure | SalesContractCanclnProcedure | Assignment Cancellation Procedure/Cancellation Rule | ||
| EquipmentInstallationDate | EquipmentInstallationDate | Installation Date | ||
| EquipmentDeliveryAccptcDate | EquipmentDeliveryAccptcDate | Agreement Acceptance Date | ||
| EquipmentDismantlingDate | EquipmentDismantlingDate | Dismantling Date | ||
| SalesContractFollowUpAction | SalesContractFollowUpAction | Action at end of contract | ||
| SlsContractFollowUpActionDate | SlsContractFollowUpActionDate | Date for Action | ||
| CanclnDocByContrPartner | CanclnDocByContrPartner | Cancellation Document Number of Contract Partner | ||
| MasterSalesContract | MasterSalesContract | Master Contract Number | ||
| SlsContrPrtnAuthznForRelOrd | SlsContrPrtnAuthznForRelOrd | Partner Authorization Check | ||
| TotalNetAmount | TotalNetAmount | Net Value of the Sales Document in Document Currency | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| PricingDate | PricingDate | Date for Pricing and Exchange Rate | ||
| SDPricingProcedure | SDPricingProcedure | Pricing Procedure in Pricing | ||
| CustomerPriceGroup | CustomerPriceGroup | Customer Price Group | ||
| RetailPromotion | RetailPromotion | Retail Promotion | ||
| PriceDetnExchangeRate | PriceDetnExchangeRate | Exchange Rate for Price Determination | ||
| SalesContractCondition | SalesDocumentCondition | Number of the Document Condition | ||
| PriceListType | PriceListType | Price List Type | ||
| TaxDepartureCountry | TaxDepartureCountry | Tax Departure Country/Region | ||
| VATRegistrationCountry | VATRegistrationCountry | Destination Country/Region for Tax Determination | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| IncotermsClassification | IncotermsClassification | Incoterms (Part 1) | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms (Part 2) | ||
| IncotermsLocation1 | IncotermsLocation1 | Incoterms Location 1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Incoterms Location 2 | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version | ||
| CompleteDeliveryIsDefined | CompleteDeliveryIsDefined | Complete Delivery Defined for Each Sales Order | ||
| ShippingType | ShippingType | Shipping Type | ||
| BillingDocumentDate | BillingDocumentDate | Billing Date | ||
| BillingCompanyCode | BillingCompanyCode | Company Code to Be Billed | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Key for Terms of Payment | ||
| PaymentMethod | PaymentMethod | Payment Method | ||
| FixedValueDate | FixedValueDate | Fixed Value Date | ||
| AdditionalValueDays | AdditionalValueDays | Additional Value Days | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| FiscalPeriod | FiscalPeriod | Posting Period | ||
| ExchangeRateDate | ExchangeRateDate | Translation Date | ||
| ExchangeRateType | ExchangeRateType | Exchange Rate Type | ||
| BusinessArea | BusinessArea | Business Area | ||
| CustomerAccountAssignmentGroup | CustomerAccountAssignmentGroup | Customer Account Assignment Group | ||
| CostCenterBusinessArea | CostCenterBusinessArea | Business Area from Cost Center | ||
| CostCenter | CostCenter | Cost Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| OrderID | OrderID | Order Number | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| ReferenceSDDocument | ReferenceSDDocument | Document Number of Reference Document | ||
| ReferenceSDDocumentCategory | ReferenceSDDocumentCategory | Category of Reference Document | ||
| AccountingDocExternalReference | AccountingDocExternalReference | Reference Document Number | ||
| OverallSDProcessStatus | OverallSDProcessStatus | Overall Processing Status (Header/All Items) | ||
| OverallSDDocumentRejectionSts | OverallSDDocumentRejectionSts | Rejection Status (All Items) | ||
| TotalBlockStatus | TotalBlockStatus | Overall Block Status (Header) | ||
| OverallTotalSDDocRefStatus | OverallTotalSDDocRefStatus | Overall Reference Status (All Items) | ||
| OverallSDDocReferenceStatus | OverallSDDocReferenceStatus | Reference Status (All Items) | ||
| TotalCreditCheckStatus | TotalCreditCheckStatus | Overall Status of Credit Checks | ||
| MaxDocValueCreditCheckStatus | MaxDocValueCreditCheckStatus | Status of Credit Check Against Maximum Document Value | ||
| PaymentTermCreditCheckStatus | PaymentTermCreditCheckStatus | Status of Credit Check Against Terms of Payment | ||
| FinDocCreditCheckStatus | FinDocCreditCheckStatus | Status of Credit Check Against Financial Document | ||
| ExprtInsurCreditCheckStatus | ExprtInsurCreditCheckStatus | Status of Credit Check Against Export Credit Insurance | ||
| PaytAuthsnCreditCheckSts | PaytAuthsnCreditCheckSts | Status of Credit Check Against Payment Card Authorization | ||
| CentralCreditCheckStatus | CentralCreditCheckStatus | Status of Credit Check SAP Credit Management | ||
| CentralCreditChkTechErrSts | CentralCreditChkTechErrSts | Status of Technical Error SAP Credit Management | ||
| HdrGeneralIncompletionStatus | HdrGeneralIncompletionStatus | Incompletion Status (Header) | ||
| OverallPricingIncompletionSts | OverallPricingIncompletionSts | Pricing Incompletion Status (All Items) | ||
| HeaderBillgIncompletionStatus | HeaderBillgIncompletionStatus | Billing Incompletion Status (Header) | ||
| OvrlItmGeneralIncompletionSts | OvrlItmGeneralIncompletionSts | Incompletion Status (All Items) | ||
| OvrlItmBillingIncompletionSts | OvrlItmBillingIncompletionSts | Billing Incompletion Status (All Items) | ||
| ContractDownPaymentStatus | ContractDownPaymentStatus | Down Payment Status | ||
| SalesDocApprovalStatus | SalesDocApprovalStatus | Document Approval Status | ||
| SalesContractApprovalReason | SalesDocApprovalReason | Approval Request Reason ID | ||
| ContractManualCompletion | ContractManualCompletion | Manual Completion of Contract | ||
| OverallBillingBlockStatus | OverallBillingBlockStatus | Billing Block Status (All Items) | ||
| HeaderBillingBlockReason | HeaderBillingBlockReason | Billing Block in SD Document | ||
| OverallChmlCmplncStatus | OverallChmlCmplncStatus | Product Marketability Status (All Items) | ||
| OverallDangerousGoodsStatus | OverallDangerousGoodsStatus | Dangerous Goods Status (All Items) | ||
| OverallSafetyDataSheetStatus | OverallSafetyDataSheetStatus | Safety Data Sheet Status (All Items) | ||
| OverallTrdCmplncEmbargoSts | OverallTrdCmplncEmbargoSts | Embargo Status (All Items) | ||
| OvrlTrdCmplncSnctndListChkSts | OvrlTrdCmplncSnctndListChkSts | Screening Status (All Items) | ||
| OvrlTrdCmplncLegalCtrlChkSts | OvrlTrdCmplncLegalCtrlChkSts | Legal Control Status | ||
| _Item | _Item | |||
| _Partner | _Partner | |||
| _StandardPartner | _StandardPartner | |||
| _SalesContractType | _SalesContractType | |||
| _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 | |||
| _SalesContractValidityPerdUnit | _SalesContractValidityPerdUnit | |||
| _SalesContractValidityPerdCat | _SalesContractValidityPerdCat | |||
| _SalesContractCanclnParty | _SalesContractCanclnParty | |||
| _SalesContractCanclnReason | _SalesContractCanclnReason | |||
| _SalesContractFollowUpAction | _SalesContractFollowUpAction | |||
| _MasterSalesContract | _MasterSalesContract | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _BillingCompanyCode | _BillingCompanyCode | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _ExchangeRateType | _ExchangeRateType | |||
| _BusinessArea | _BusinessArea | |||
| _CustomerAccountAssgmtGroup | _CustomerAccountAssgmtGroup | |||
| _CostCenterBusinessArea | _CostCenterBusinessArea | |||
| _CostCenter | _CostCenter | |||
| _ControllingArea | _ControllingArea | |||
| _ReferenceSDDocumentCategory | _ReferenceSDDocumentCategory | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _OverallSDDocumentRejectionSts | _OverallSDDocumentRejectionSts | |||
| _TotalBlockStatus | _TotalBlockStatus | |||
| _OverallTotalSDDocRefStatus | _OverallTotalSDDocRefStatus | |||
| _OverallSDDocReferenceStatus | _OverallSDDocReferenceStatus | |||
| _TotalCreditCheckStatus | _TotalCreditCheckStatus | |||
| _MaxDocValueCreditCheckStatus | _MaxDocValueCreditCheckStatus | |||
| _PaymentTermCreditCheckStatus | _PaymentTermCreditCheckStatus | |||
| _FinDocCreditCheckStatus | _FinDocCreditCheckStatus | |||
| _ExprtInsurCreditCheckStatus | _ExprtInsurCreditCheckStatus | |||
| _PaytAuthsnCreditCheckSts | _PaytAuthsnCreditCheckSts | |||
| _CentralCreditCheckStatus | _CentralCreditCheckStatus | |||
| _CentralCreditChkTechErrSts | _CentralCreditChkTechErrSts | |||
| _HdrGeneralIncompletionStatus | _HdrGeneralIncompletionStatus | |||
| _OverallPricingIncompletionSts | _OverallPricingIncompletionSts | |||
| _HeaderBillgIncompletionStatus | _HeaderBillgIncompletionStatus | |||
| _OvrlItmGeneralIncompletionSts | _OvrlItmGeneralIncompletionSts | |||
| _OvrlItmBillingIncompletionSts | _OvrlItmBillingIncompletionSts | |||
| _DownPaymentStatus | _DownPaymentStatus | |||
| _SalesDocApprovalStatus | _SalesDocApprovalStatus | |||
| _SalesContractApprovalReason | _SalesContractApprovalReason | |||
| _ShippingCondition | _ShippingCondition | |||
| _SDPricingProcedure | _SDPricingProcedure | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _PriceListType | _PriceListType | |||
| _OverallBillingBlockStatus | _OverallBillingBlockStatus | |||
| _HeaderBillingBlockReason | _HeaderBillingBlockReason | |||
| _OverallChmlCmplncStatus | _OverallChmlCmplncStatus | |||
| _OverallDangerousGoodsStatus | _OverallDangerousGoodsStatus | |||
| _OvrlSftyDataSheetSts | _OvrlSftyDataSheetSts | |||
| _OvrlTradeCmplncEmbargoStatus | _OvrlTradeCmplncEmbargoStatus | |||
| _OvTrdCmplncSnctndListChkSts | _OvTrdCmplncSnctndListChkSts | |||
| _OvrlTrdCmplncLegalCtrlChkSts | _OvrlTrdCmplncLegalCtrlChkSts | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _CostCenterBusinessAreaText | _CostCenterBusinessAreaText | |||
| _CreditControlAreaText | _CreditControlAreaText | |||
| _TaxDepartureCountry | _TaxDepartureCountry | |||
| _VATRegistrationCountry | _VATRegistrationCountry | |||
| _ShippingType | _ShippingType | |||
| _SlsContrPrtnAuthznForOrd | _SlsContrPrtnAuthznForOrd |
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_SalesContract.
-- 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_SalesContract AS
SELECT
cast(SalesDocument as sales_contract preserving type) AS SalesContract,
cast(SalesDocumentType as sales_contract_type preserving type ) AS SalesContractType,
CreatedByUser,
LastChangedByUser,
CreationDate,
CreationTime,
LastChangeDate,
LastChangeDateTime,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
SalesGroup,
SalesOffice,
SoldToParty,
CustomerGroup,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
CreditControlArea,
CustomerRebateAgreement,
SalesDocumentDate AS SalesContractDate,
ServicesRenderedDate,
SDDocumentReason,
PurchaseOrderByCustomer,
PurchaseOrderByShipToParty,
CustomerPurchaseOrderType,
CustomerPurchaseOrderDate,
CustomerPurchaseOrderSuplmnt,
SalesDistrict,
ProductCatalog,
cast(SalesDocumentDescription as tdd_sls_contr_desc preserving type) AS SalesDocumentDescription,
SalesContractSignedDate,
ContractPartnerCanclnDocDate,
NmbrOfSalesContractValdtyPerd,
SalesContractValidityPerdUnit,
SalesContractValidityPerdCat,
AgrmtValdtyStartDate AS SalesContractValidityStartDate,
AgrmtValdtyEndDate AS SalesContractValidityEndDate,
SlsContractCanclnReqRcptDate,
RequestedCancellationDate,
SalesContractCanclnParty,
SalesContractCanclnReason,
SalesContractCanclnProcedure,
EquipmentInstallationDate,
EquipmentDeliveryAccptcDate,
EquipmentDismantlingDate,
SalesContractFollowUpAction,
SlsContractFollowUpActionDate,
CanclnDocByContrPartner,
MasterSalesContract,
SlsContrPrtnAuthznForRelOrd,
TotalNetAmount,
TransactionCurrency,
PricingDate,
SDPricingProcedure,
CustomerPriceGroup,
RetailPromotion,
PriceDetnExchangeRate,
SalesDocumentCondition AS SalesContractCondition,
PriceListType,
TaxDepartureCountry,
VATRegistrationCountry,
ShippingCondition,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
IncotermsVersion,
CompleteDeliveryIsDefined,
ShippingType,
BillingDocumentDate,
BillingCompanyCode,
CustomerPaymentTerms,
PaymentMethod,
FixedValueDate,
AdditionalValueDays,
FiscalYear,
FiscalPeriod,
ExchangeRateDate,
ExchangeRateType,
BusinessArea,
CustomerAccountAssignmentGroup,
CostCenterBusinessArea,
CostCenter,
ControllingArea,
OrderID,
AssignmentReference,
ReferenceSDDocument,
ReferenceSDDocumentCategory,
AccountingDocExternalReference,
OverallSDProcessStatus,
OverallSDDocumentRejectionSts,
TotalBlockStatus,
OverallTotalSDDocRefStatus,
OverallSDDocReferenceStatus,
TotalCreditCheckStatus,
MaxDocValueCreditCheckStatus,
PaymentTermCreditCheckStatus,
FinDocCreditCheckStatus,
ExprtInsurCreditCheckStatus,
PaytAuthsnCreditCheckSts,
CentralCreditCheckStatus,
CentralCreditChkTechErrSts,
HdrGeneralIncompletionStatus,
OverallPricingIncompletionSts,
HeaderBillgIncompletionStatus,
OvrlItmGeneralIncompletionSts,
OvrlItmBillingIncompletionSts,
ContractDownPaymentStatus,
SalesDocApprovalStatus,
SalesDocApprovalReason AS SalesContractApprovalReason,
ContractManualCompletion,
OverallBillingBlockStatus,
HeaderBillingBlockReason,
OverallChmlCmplncStatus,
OverallDangerousGoodsStatus,
OverallSafetyDataSheetStatus,
OverallTrdCmplncEmbargoSts,
OvrlTrdCmplncSnctndListChkSts,
OvrlTrdCmplncLegalCtrlChkSts
FROM I_SalesDocument AS SalesDocument
LEFT OUTER JOIN I_SalesContractItem AS _Item ON SalesContract = _Item.SalesContract -- association [0..*]
LEFT OUTER JOIN I_SalesContractType AS _SalesContractType ON SalesContractType = _SalesContractType.SalesContractType -- association [0..1]
LEFT OUTER JOIN I_SalesContractPartner AS _Partner ON SalesContract = _Partner.SalesContract -- association [0..*]
LEFT OUTER JOIN I_SalesDocument AS _MasterSalesContract ON MasterSalesContract = _MasterSalesContract.SalesDocument -- association [0..1]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea -- association [0..*]
LEFT OUTER JOIN I_BusinessAreaText AS _CostCenterBusinessAreaText ON CostCenterBusinessArea = _CostCenterBusinessAreaText.BusinessArea -- association [0..*]
LEFT OUTER JOIN I_CreditControlAreaText AS _CreditControlAreaText ON CreditControlArea = _CreditControlAreaText.CreditControlArea -- association [0..*]
LEFT OUTER JOIN I_SalesContractApprovalReason AS _SalesContractApprovalReason ON SalesContractApprovalReason = _SalesContractApprovalReason.SalesContractApprovalReason -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesDocument.SalesDocument = _Extension.SalesDocument -- 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