P_BillingPlan
P_BillingPlan is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (fpla) and exposes 20 fields with key field BillingPlan. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| fpla | fpla | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_BillingPlanItem | _BillingPlanItem | _BillingPlanItem.BillingPlan = $projection.BillingPlan |
| [0..1] | I_BillingPlanCategory | _BillingPlanCategory | _BillingPlanCategory.BillingPlanCategory = $projection.BillingPlanCategory |
| [0..1] | I_BillgPlnUsgeCat_2 | _BillingPlanUsageCategory | _BillingPlanUsageCategory.BillingPlanUsageCategory = $projection.BillingPlanUsageCategory |
| [0..1] | I_BillingPlanType | _BillingPlanType | _BillingPlanType.BillingPlanType = $projection.BillingPlanType |
| [0..1] | I_IndirectDateDetermineRule | _StartDateRule | _StartDateRule.IndirectDateDetermineRule = $projection.BillingPlanStartDateRule |
| [0..1] | I_IndirectDateDetermineRule | _EndDateRule | _EndDateRule.IndirectDateDetermineRule = $projection.BillingPlanEndDateRule |
| [0..1] | I_IndirectDateDetermineRule | _NextBillingDateRule | _NextBillingDateRule.IndirectDateDetermineRule = $projection.BillingPlanNextBillingDateRule |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.representativeKey | BillingPlan | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingPlan | |||
| BillingPlanCategory | fpla | fptyp | Category | |
| BillingPlanUsageCategory | fpla | bpcat | Plan category | |
| BillingPlanType | fpla | fpart | Commitment Item Type | |
| BillingPlanStartDate | ||||
| BillingPlanStartDateRule | fpla | bedar | Reqmts Class | |
| BillingPlanEndDate | ||||
| BillingPlanEndDateRule | fpla | endar | Origin End Date | |
| BillingPlanSearchTerm | fpla | sortl | Sort Term | |
| SalesDocument | fpla | vbeln | SD Sched. Agmt | |
| PaymentLinkIsRequired | fpla | paylink | ||
| BillingPlanNextBillingDateRule | fpla | perio | Time unit | |
| ReferenceBillingPlan | ||||
| _BillingPlanItem | _BillingPlanItem | |||
| _BillingPlanCategory | _BillingPlanCategory | |||
| _BillingPlanUsageCategory | _BillingPlanUsageCategory | |||
| _BillingPlanType | _BillingPlanType | |||
| _StartDateRule | _StartDateRule | |||
| _EndDateRule | _EndDateRule | |||
| _NextBillingDateRule | _NextBillingDateRule |
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 P_BillingPlan.
-- 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 P_BillingPlan AS
SELECT
cast( fpla.fplnr as tds_bplan_id preserving type ) AS BillingPlan,
fpla.fptyp AS BillingPlanCategory,
fpla.bpcat AS BillingPlanUsageCategory,
fpla.fpart AS BillingPlanType,
cast( fpla.bedat as tds_bp_start_date preserving type) AS BillingPlanStartDate,
fpla.bedar AS BillingPlanStartDateRule,
cast( fpla.endat as tds_bp_end_date preserving type ) AS BillingPlanEndDate,
fpla.endar AS BillingPlanEndDateRule,
fpla.sortl AS BillingPlanSearchTerm,
fpla.vbeln AS SalesDocument,
fpla.paylink AS PaymentLinkIsRequired,
fpla.perio AS BillingPlanNextBillingDateRule,
cast( fpla.rfpln as tds_refbplan_id preserving type ) AS ReferenceBillingPlan
FROM fpla
LEFT OUTER JOIN P_BillingPlanItem AS _BillingPlanItem ON _BillingPlanItem.BillingPlan = BillingPlan -- association [0..*]
LEFT OUTER JOIN I_BillingPlanCategory AS _BillingPlanCategory ON _BillingPlanCategory.BillingPlanCategory = BillingPlanCategory -- association [0..1]
LEFT OUTER JOIN I_BillgPlnUsgeCat_2 AS _BillingPlanUsageCategory ON _BillingPlanUsageCategory.BillingPlanUsageCategory = BillingPlanUsageCategory -- association [0..1]
LEFT OUTER JOIN I_BillingPlanType AS _BillingPlanType ON _BillingPlanType.BillingPlanType = BillingPlanType -- association [0..1]
LEFT OUTER JOIN I_IndirectDateDetermineRule AS _StartDateRule ON _StartDateRule.IndirectDateDetermineRule = BillingPlanStartDateRule -- association [0..1]
LEFT OUTER JOIN I_IndirectDateDetermineRule AS _EndDateRule ON _EndDateRule.IndirectDateDetermineRule = BillingPlanEndDateRule -- association [0..1]
LEFT OUTER JOIN I_IndirectDateDetermineRule AS _NextBillingDateRule ON _NextBillingDateRule.IndirectDateDetermineRule = BillingPlanNextBillingDateRule -- 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