I_CustProjSlsOrdItmBillgPln

DDL: I_CUSTPROJSLSORDITMBILLGPLN Type: view_entity COMPOSITE

Billing Plan of Sales Order Item for Customer Project

I_CustProjSlsOrdItmBillgPln (Composite)

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

Sales

I_CustProjSlsOrdItmBillgPln is a Composite CDS View that provides data about "Billing Plan of Sales Order Item for Customer Project" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocItemBillingPlan, I_CustProjSlsOrdItem) and exposes 14 fields with key fields CustomerProject, SalesOrderItem. It has 4 associations to related views.

SAP API Hub

StateC1
Line of BusinessSales
Application ComponentSD-BIL-IV-BP
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select, Association Target for Defining CDS Entities
PackageSales for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (2)

SourceAliasJoin Type
I_SalesDocItemBillingPlan BillingPlan inner
I_CustProjSlsOrdItem CustProjSlsOrdItem from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_CustProjSlsOrd _CustomerProject $projection.CustomerProject = _CustomerProject.CustomerProject
[1..1] I_SalesOrder _SalesOrder $projection.SalesOrder = _SalesOrder.SalesOrder
[0..1] I_BillingPlanCategory _BillingPlanCategory $projection.BillingPlanCategory = _BillingPlanCategory.BillingPlanCategory
[0..1] I_BillingPlanUsageCategory _BillingPlanUsageCategory $projection.BillingPlanUsageCategory = _BillingPlanUsageCategory.BillingPlanUsageCategory

Annotations (8)

NameValueLevelField
EndUserText.label Billing Plan of Sales Order Item for Customer Project view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CustomerProject I_CustProjSlsOrdItem CustomerProject Commercial Project ID
KEY SalesOrderItem I_CustProjSlsOrdItem SalesOrderItem Sales Order Item
SalesOrder I_CustProjSlsOrdItem SalesOrder SD Document
BillingPlan Billing Plan Number / Invoicing Plan Number
BillingPlanCategory I_SalesDocItemBillingPlan BillingPlanCategory Billing plan category
BillingPlanUsageCategory I_SalesDocItemBillingPlan BillingPlanUsageCategory Billing Plan Usage Category
SalesOrderType _SalesOrder SalesOrderType Sales Order Type
OrganizationDivision _SalesOrder OrganizationDivision Org. Division
SalesOrganization _SalesOrder SalesOrganization Sales Organization
DistributionChannel _SalesOrder DistributionChannel Distribution Channel
_CustomerProject _CustomerProject
_SalesOrder _SalesOrder
_BillingPlanCategory _BillingPlanCategory
_BillingPlanUsageCategory _BillingPlanUsageCategory

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_CustProjSlsOrdItmBillgPln.
-- 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_CustProjSlsOrdItmBillgPln AS
SELECT
  CustProjSlsOrdItem.CustomerProject AS CustomerProject,
  CustProjSlsOrdItem.SalesOrderItem AS SalesOrderItem,
  CustProjSlsOrdItem.SalesOrder AS SalesOrder,
  cast( CustProjSlsOrdItem.BillingPlan as fplnr preserving type ) AS BillingPlan,
  BillingPlan.BillingPlanCategory AS BillingPlanCategory,
  BillingPlan.BillingPlanUsageCategory AS BillingPlanUsageCategory,
  _SalesOrder.SalesOrderType AS SalesOrderType,
  _SalesOrder.OrganizationDivision AS OrganizationDivision,
  _SalesOrder.SalesOrganization AS SalesOrganization,
  _SalesOrder.DistributionChannel AS DistributionChannel
FROM I_CustProjSlsOrdItem AS CustProjSlsOrdItem
INNER JOIN I_SalesDocItemBillingPlan AS BillingPlan ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CustProjSlsOrd AS _CustomerProject ON CustomerProject = _CustomerProject.CustomerProject  -- association [1..1]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder  -- association [1..1]
LEFT OUTER JOIN I_BillingPlanCategory AS _BillingPlanCategory ON BillingPlanCategory = _BillingPlanCategory.BillingPlanCategory  -- association [0..1]
LEFT OUTER JOIN I_BillingPlanUsageCategory AS _BillingPlanUsageCategory ON BillingPlanUsageCategory = _BillingPlanUsageCategory.BillingPlanUsageCategory  -- association [0..1]
;