I_SalesContractImport

DDL: I_SALESCONTRACTIMPORT Type: view_entity TRANSACTIONAL

Sales Contract for Import

I_SalesContractImport is a Transactional CDS View that provides data about "Sales Contract for Import" in SAP S/4HANA. It reads from 1 data source (R_SalesContractTP) and exposes 154 fields with key field SalesContract. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_SalesContractTP SalesContract from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_SalesContractItemImport _Item $projection.SalesContract = _Item.SalesContract
[0..*] I_SalesContractPricingElement _PricingElement $projection.SalesContract = _PricingElement.SalesContract
[0..*] I_SalesContractPartner _Partner $projection.SalesContract = _Partner.SalesContract
[0..1] E_SalesDocumentBasic _Extension SalesContract.SalesContract = _Extension.SalesDocument

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Sales Contract for Import view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey SalesContract view

Fields (154)

KeyFieldSource TableSource FieldDescription
KEY SalesContract SalesContract Sales Document
SalesContractType SalesContractType
CreatedByUser CreatedByUser User Name
LastChangedByUser LastChangedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangeDate LastChangeDate Time Stamp
LastChangeDateTime LastChangeDateTime Timestamp
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
SoldToParty SoldToParty Sold-to Party
CustomerGroup CustomerGroup Customer Group
SalesContractDate SalesContractDate
SDDocumentReason SDDocumentReason Order Reason
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
PurchaseOrderByShipToParty
CustomerPurchaseOrderType CustomerPurchaseOrderType
CustomerPurchaseOrderDate CustomerPurchaseOrderDate Purchase Order Date
CustomerPurchaseOrderSuplmnt CustomerPurchaseOrderSuplmnt
SalesDistrict SalesDistrict Sales District
SalesContractValidityPerdCat SalesContractValidityPerdCat
SalesContractValidityStartDate SalesContractValidityStartDate
SalesContractValidityEndDate SalesContractValidityEndDate
TotalNetAmount TotalNetAmount Total Net Amount
TransactionCurrency TransactionCurrency Transaction Currency
PricingDate PricingDate Pricing Date
SDPricingProcedure SDPricingProcedure Pric. Procedure
CustomerPriceGroup CustomerPriceGroup CustPrice Group
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.
BillingDocumentDate BillingDocumentDate Billing Date
BillingCompanyCode BillingCompanyCode CCodeToBeBilled
FixedValueDate FixedValueDate Fixed Val. Date
TaxDepartureCountry TaxDepartureCountry Tx Dep Ctry/Reg
VATRegistrationCountry VATRegistrationCountry CtryRgnSlsTxNo.
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup AccAssmtGrpCust
AssignmentReference AssignmentReference Assignment Reference
ServicesRenderedDate ServicesRenderedDate Services Rendered Date
ShippingType ShippingType Shipping Type
PriceListType PriceListType Price List Tp.
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
PaymentMethod PaymentMethod Pymt Meth.
ControllingArea ControllingArea Controlling Area
ReferenceSDDocument ReferenceSDDocument Reference Doc.
ReferenceSDDocumentCategory ReferenceSDDocumentCategory Prec.Doc.Categ.
AccountingDocExternalReference AccountingDocExternalReference
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
ContractDownPaymentStatus ContractDownPaymentStatus
SalesDocApprovalStatus SalesDocApprovalStatus
SalesContractApprovalReason SalesContractApprovalReason
ContractManualCompletion ContractManualCompletion
OverallBillingBlockStatus OverallBillingBlockStatus
HeaderBillingBlockReason HeaderBillingBlockReason Billing Block
OverallChmlCmplncStatus OverallChmlCmplncStatus
OverallDangerousGoodsStatus OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus OverallSafetyDataSheetStatus
OverallTrdCmplncEmbargoSts OverallTrdCmplncEmbargoSts
OvrlTrdCmplncSnctndListChkSts OvrlTrdCmplncSnctndListChkSts
OvrlTrdCmplncLegalCtrlChkSts OvrlTrdCmplncLegalCtrlChkSts
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
_Item _Item
_Partner _Partner
_PricingElement _PricingElement
_StandardPartner _StandardPartner
_Text _Text
_SalesContractType _SalesContractType
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_OrganizationDivision _OrganizationDivision
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_SalesGroup _SalesGroup
_SalesOffice _SalesOffice
_CustomerGroup _CustomerGroup
_SDDocumentReason _SDDocumentReason
_SalesDistrict _SalesDistrict
_SalesContractValidityPerdCat _SalesContractValidityPerdCat
_TransactionCurrency _TransactionCurrency
_IncotermsClassification _IncotermsClassification
_IncotermsVersion _IncotermsVersion
_BillingCompanyCode _BillingCompanyCode
_CustomerPaymentTerms _CustomerPaymentTerms
_ControllingArea _ControllingArea
_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
_OverallBillingBlockStatus _OverallBillingBlockStatus
_HeaderBillingBlockReason _HeaderBillingBlockReason
_OverallChmlCmplncStatus _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts _OvrlSftyDataSheetSts
_OvrlTradeCmplncEmbargoStatus _OvrlTradeCmplncEmbargoStatus
_OvTrdCmplncSnctndListChkSts _OvTrdCmplncSnctndListChkSts
_OvrlTrdCmplncLegalCtrlChkSts _OvrlTrdCmplncLegalCtrlChkSts
_CustomerAccountAssgmtGroup _CustomerAccountAssgmtGroup
_VATRegistrationCountry _VATRegistrationCountry
_TaxDepartureCountry _TaxDepartureCountry
_ShippingType _ShippingType
_AdditionalCustomerGroup1 _AdditionalCustomerGroup1
_AdditionalCustomerGroup2 _AdditionalCustomerGroup2
_AdditionalCustomerGroup3 _AdditionalCustomerGroup3
_AdditionalCustomerGroup4 _AdditionalCustomerGroup4
_AdditionalCustomerGroup5 _AdditionalCustomerGroup5
_PriceListType _PriceListType

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_SalesContractImport.
-- 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_SalesContractImport AS
SELECT
  SalesContract,
  SalesContractType,
  CreatedByUser,
  LastChangedByUser,
  CreationDate,
  CreationTime,
  LastChangeDate,
  LastChangeDateTime,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  SalesGroup,
  SalesOffice,
  SoldToParty,
  CustomerGroup,
  SalesContractDate,
  SDDocumentReason,
  PurchaseOrderByCustomer,
  cast ( PurchaseOrderByShipToParty as sd_purchase_order_by_shipto preserving type ) AS PurchaseOrderByShipToParty,
  CustomerPurchaseOrderType,
  CustomerPurchaseOrderDate,
  CustomerPurchaseOrderSuplmnt,
  SalesDistrict,
  SalesContractValidityPerdCat,
  SalesContractValidityStartDate,
  SalesContractValidityEndDate,
  TotalNetAmount,
  TransactionCurrency,
  PricingDate,
  SDPricingProcedure,
  CustomerPriceGroup,
  ShippingCondition,
  IncotermsClassification,
  IncotermsTransferLocation,
  IncotermsLocation1,
  IncotermsLocation2,
  IncotermsVersion,
  CompleteDeliveryIsDefined,
  BillingDocumentDate,
  BillingCompanyCode,
  FixedValueDate,
  TaxDepartureCountry,
  VATRegistrationCountry,
  CustomerAccountAssignmentGroup,
  AssignmentReference,
  ServicesRenderedDate,
  ShippingType,
  PriceListType,
  CustomerPaymentTerms,
  PaymentMethod,
  ControllingArea,
  ReferenceSDDocument,
  ReferenceSDDocumentCategory,
  AccountingDocExternalReference,
  OverallSDProcessStatus,
  OverallSDDocumentRejectionSts,
  TotalBlockStatus,
  OverallTotalSDDocRefStatus,
  OverallSDDocReferenceStatus,
  TotalCreditCheckStatus,
  MaxDocValueCreditCheckStatus,
  PaymentTermCreditCheckStatus,
  FinDocCreditCheckStatus,
  ExprtInsurCreditCheckStatus,
  PaytAuthsnCreditCheckSts,
  CentralCreditCheckStatus,
  CentralCreditChkTechErrSts,
  HdrGeneralIncompletionStatus,
  OverallPricingIncompletionSts,
  HeaderBillgIncompletionStatus,
  OvrlItmGeneralIncompletionSts,
  OvrlItmBillingIncompletionSts,
  ContractDownPaymentStatus,
  SalesDocApprovalStatus,
  SalesContractApprovalReason,
  ContractManualCompletion,
  OverallBillingBlockStatus,
  HeaderBillingBlockReason,
  OverallChmlCmplncStatus,
  OverallDangerousGoodsStatus,
  OverallSafetyDataSheetStatus,
  OverallTrdCmplncEmbargoSts,
  OvrlTrdCmplncSnctndListChkSts,
  OvrlTrdCmplncLegalCtrlChkSts,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5
FROM R_SalesContractTP AS SalesContract
LEFT OUTER JOIN I_SalesContractItemImport AS _Item ON SalesContract = _Item.SalesContract  -- association [0..*]
LEFT OUTER JOIN I_SalesContractPricingElement AS _PricingElement ON SalesContract = _PricingElement.SalesContract  -- association [0..*]
LEFT OUTER JOIN I_SalesContractPartner AS _Partner ON SalesContract = _Partner.SalesContract  -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesContract.SalesContract = _Extension.SalesDocument  -- association [0..1]
;