P_BillingPlan

DDL: P_BILLINGPLAN Type: view_entity BASIC

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)

SourceAliasJoin Type
fpla fpla from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;