C_SalesContractItemQry

DDL: C_SALESCONTRACTITEMQRY Type: view CONSUMPTION

Sales Contract Item - Query

C_SalesContractItemQry (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sales

C_SalesContractItemQry is a Consumption CDS View that provides data about "Sales Contract Item - Query" in SAP S/4HANA. It reads from 1 data source (I_SalesContractItemCube) and exposes 102 fields with key fields SalesContract, SalesContractItem.

SAP API Hub

StateC1
Line of BusinessSales
Application ComponentSD-ANA
CapabilitiesAnalytical Query
PackageSales for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the prerequisites for answering questions about various aspects of sales contracts. The example questions are:</p> <ul> <li><p>What is the target value or quantity of a given contact item?</p></li> <li><p>Which contracts are soon to be expired?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_SalesContractItemCube I_SalesContractItemCube from

Parameters (2)

NameTypeDefault
P_ExchangeRateType kurst
P_DisplayCurrency vdm_v_display_currency

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales Contract Item - Query view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.sqlViewName CSDSLSCONTRITMQ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
Analytics.query true view
ObjectModel.modelingPattern #ANALYTICAL_QUERY view
OData.publish true view
Metadata.ignorePropagatedAnnotations true view

Fields (102)

KeyFieldSource TableSource FieldDescription
KEY SalesContract SalesContract Sales Document
KEY SalesContractItem SalesContractItem Sales Contract Item
SalesContractType SalesContractType Sales Document Type
SalesContractItemType SalesContractItemType Item Type
SalesContractItemCategory SalesContractItemCategory Sales Document Item Category
CreatedByUser CreatedByUser Name of Person Responsible for Creating the Object
CreationDate CreationDate Record Created On
CreationTime CreationTime Time at Which Record Was Created
LastChangeDate LastChangeDate Last Changed On
CreationDateYear CreationDateYear Year of Creation
CreationDateYearQuarter CreationDateYearQuarter Year/Quarter of Creation
CreationDateYearMonth CreationDateYearMonth Year/Month of Creation
SalesContractValidityStartDate SalesContractValidityStartDate Valid-From Date (Outline Agreements, Product Proposals)
SalesContractValidityEndDate SalesContractValidityEndDate Valid-To Date (Outline Agreements, Product Proposals)
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel Distribution Channel
OrganizationDivision OrganizationDivision Organization Division
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
PartnerCompany PartnerCompany Company ID of Trading Partner
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
SDDocumentReason SDDocumentReason Order Reason (Reason for the Business Transaction)
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
CustomerPurchaseOrderDate CustomerPurchaseOrderDate Customer Reference Date
SalesContractItemText SalesContractItemText Short text for sales order item
SalesDocumentRjcnReason SalesDocumentRjcnReason Reason for Rejection of Sales Documents
ShipToParty ShipToParty Ship-To Party (obsolete)
SalesEmployee SalesEmployee Sales Employee
ResponsibleEmployee ResponsibleEmployee Employee Responsible
Product Product Product Number
ProductGroup ProductGroup Product Sold Group
AdditionalMaterialGroup1 AdditionalMaterialGroup1 Material Group 1
AdditionalMaterialGroup2 AdditionalMaterialGroup2 Material Group 2
AdditionalMaterialGroup3 AdditionalMaterialGroup3 Material Group 3
AdditionalMaterialGroup4 AdditionalMaterialGroup4 Material Group 4
AdditionalMaterialGroup5 AdditionalMaterialGroup5 Material Group 5
Division Division Internal Division ID
Plant Plant Plant (Own or External)
StorageLocation StorageLocation Storage Location
MainItemPricingRefProduct MainItemPricingRefProduct Pricing Reference Product of Main Item
HigherLevelItem HigherLevelItem Higher-Level Item in Bill of Material Structures
BillOfMaterial BillOfMaterial Bill of Material
PropagatePrftbltySgmt2BOM PropagatePrftbltySgmt2BOM Propagate Profitability Segment to BOM (Sales Kit) Sub-Items
CostDeterminationIsRequired CostDeterminationIsRequired Determine cost
PricingDate PricingDate Date for Pricing and Exchange Rate
SalesDistrict SalesDistrict Sales District
CustomerPaymentTerms CustomerPaymentTerms Terms of Payment Key
PaymentMethod PaymentMethod Payment Method
BillingCompanyCode BillingCompanyCode Company Code to Be Billed
BillingDocumentDate BillingDocumentDate Billing Date
FiscalYear FiscalYear G/L Fiscal Year
FiscalPeriod FiscalPeriod Posting Period
BusinessArea BusinessArea Business Area
ProfitCenter ProfitCenter Profit Center
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup Account Assignment Group for Customer
ReferenceSDDocumentCategory ReferenceSDDocumentCategory Reference Document Category
ReferenceSDDocument ReferenceSDDocument Document Number of Reference Document
ReferenceSDDocumentItem ReferenceSDDocumentItem Item number of the reference item
DisplayCurrency DisplayCurrency Display Currency
TransactionCurrency TransactionCurrency Transaction Currency
BaseUnit BaseUnit Base Unit of Measure
SalesContractTargetAmountInDC SalesContractTargetAmountInDC Target Value of Sales Contracts in Display Currency
SalesContractTargetQuantity SalesContractTargetQuantity Target Quantity of Sales Contract Items
IncomingSlsContractNetAmtInDC IncomingSlsContractNetAmtInDC Incoming Sales Contracts Net Value in Display Currency
IncomingSlsContractQuantity IncomingSlsContractQuantity Quantity of Incoming Sales Contract Items
SalesContractReleasedAmtInDC SalesContractReleasedAmtInDC Released Value in Sales Contracts in Display Currency
SalesContractFulfillmentRate 1 Contract Fulfillment Rate
OverallSDProcessStatus OverallSDProcessStatus Overall Processing Status (Header/All Items)
OverallSDDocumentRejectionSts OverallSDDocumentRejectionSts Rejection Status (All Items)
TotalBlockStatus TotalBlockStatus Overall Block Status (Header)
OverallDelivConfStatus OverallDelivConfStatus Delivery Confirmation Status (All Items)
OverallTotalDeliveryStatus OverallTotalDeliveryStatus Overall Delivery Status (All Items)
OverallDeliveryStatus OverallDeliveryStatus Delivery Status (All Items)
OverallDeliveryBlockStatus OverallDeliveryBlockStatus Overall Delivery Block Status (All Items)
OverallOrdReltdBillgStatus OverallOrdReltdBillgStatus Order-Related Billing Status (All Items)
OverallBillingBlockStatus OverallBillingBlockStatus Billing Block Status (All Items)
OverallTotalSDDocRefStatus OverallTotalSDDocRefStatus Overall Reference Status (All Items)
OverallSDDocReferenceStatus OverallSDDocReferenceStatus Reference Status (All Items)
HdrGeneralIncompletionStatus HdrGeneralIncompletionStatus Incompletion Status (Header)
HeaderDelivIncompletionStatus HeaderDelivIncompletionStatus Delivery Incompletion Status (Header)
HeaderBillgIncompletionStatus HeaderBillgIncompletionStatus Billing Incompletion Status (Header)
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts Incompletion Status (All Items)
OvrlItmBillingIncompletionSts OvrlItmBillingIncompletionSts Billing Incompletion Status (All Items)
OvrlItmDelivIncompletionSts OvrlItmDelivIncompletionSts Delivery Incompletion Status (All Items)
SDProcessStatus SDProcessStatus Overall Processing Status (Item)
DeliveryConfirmationStatus DeliveryConfirmationStatus Delivery Confirmation Status (Item)
TotalDeliveryStatus TotalDeliveryStatus Overall Delivery Status (Item)
DeliveryStatus DeliveryStatus Delivery Status (Item)
DeliveryBlockStatus DeliveryBlockStatus Delivery Block Status (Item)
OrderRelatedBillingStatus OrderRelatedBillingStatus Order-Related Billing Status (Item)
BillingBlockStatus BillingBlockStatus Billing Block Status (Item)
ItemGeneralIncompletionStatus ItemGeneralIncompletionStatus Incompletion Status (Item)
ItemBillingIncompletionStatus ItemBillingIncompletionStatus Billing Incompletion Status (Item)
ItemDeliveryIncompletionStatus ItemDeliveryIncompletionStatus Delivery Incompletion Status (Item)
SDDocumentRejectionStatus SDDocumentRejectionStatus Rejection Status (Item)
TotalSDDocReferenceStatus TotalSDDocReferenceStatus Overall Reference Status (Item)

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_SalesContractItemQry.
-- 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.
-- Parameters: P_ExchangeRateType : kurst, P_DisplayCurrency : vdm_v_display_currency

CREATE VIEW C_SalesContractItemQry AS
SELECT
  SalesContract,
  SalesContractItem,
  SalesContractType,
  SalesContractItemType,
  SalesContractItemCategory,
  CreatedByUser,
  CreationDate,
  CreationTime,
  LastChangeDate,
  CreationDateYear,
  CreationDateYearQuarter,
  CreationDateYearMonth,
  SalesContractValidityStartDate,
  SalesContractValidityEndDate,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  SalesOffice,
  SalesGroup,
  PartnerCompany,
  SoldToParty,
  CustomerGroup,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5,
  SDDocumentReason,
  PurchaseOrderByCustomer,
  CustomerPurchaseOrderDate,
  SalesContractItemText,
  SalesDocumentRjcnReason,
  ShipToParty,
  SalesEmployee,
  ResponsibleEmployee,
  Product,
  ProductGroup,
  AdditionalMaterialGroup1,
  AdditionalMaterialGroup2,
  AdditionalMaterialGroup3,
  AdditionalMaterialGroup4,
  AdditionalMaterialGroup5,
  Division,
  Plant,
  StorageLocation,
  MainItemPricingRefProduct,
  HigherLevelItem,
  BillOfMaterial,
  PropagatePrftbltySgmt2BOM,
  CostDeterminationIsRequired,
  PricingDate,
  SalesDistrict,
  CustomerPaymentTerms,
  PaymentMethod,
  BillingCompanyCode,
  BillingDocumentDate,
  FiscalYear,
  FiscalPeriod,
  BusinessArea,
  ProfitCenter,
  CustomerAccountAssignmentGroup,
  ReferenceSDDocumentCategory,
  ReferenceSDDocument,
  ReferenceSDDocumentItem,
  DisplayCurrency,
  TransactionCurrency,
  BaseUnit,
  SalesContractTargetAmountInDC,
  SalesContractTargetQuantity,
  IncomingSlsContractNetAmtInDC,
  IncomingSlsContractQuantity,
  SalesContractReleasedAmtInDC,
  1 AS SalesContractFulfillmentRate,
  OverallSDProcessStatus,
  OverallSDDocumentRejectionSts,
  TotalBlockStatus,
  OverallDelivConfStatus,
  OverallTotalDeliveryStatus,
  OverallDeliveryStatus,
  OverallDeliveryBlockStatus,
  OverallOrdReltdBillgStatus,
  OverallBillingBlockStatus,
  OverallTotalSDDocRefStatus,
  OverallSDDocReferenceStatus,
  HdrGeneralIncompletionStatus,
  HeaderDelivIncompletionStatus,
  HeaderBillgIncompletionStatus,
  OvrlItmGeneralIncompletionSts,
  OvrlItmBillingIncompletionSts,
  OvrlItmDelivIncompletionSts,
  SDProcessStatus,
  DeliveryConfirmationStatus,
  TotalDeliveryStatus,
  DeliveryStatus,
  DeliveryBlockStatus,
  OrderRelatedBillingStatus,
  BillingBlockStatus,
  ItemGeneralIncompletionStatus,
  ItemBillingIncompletionStatus,
  ItemDeliveryIncompletionStatus,
  SDDocumentRejectionStatus,
  TotalSDDocReferenceStatus
FROM I_SalesContractItemCube
;