P_BillingPlanItem

DDL: P_BILLINGPLANITEM Type: view_entity BASIC Package: VDM_SD_BIL_IV_BP

Billing Plan Item

P_BillingPlanItem is a Basic CDS View that provides data about "Billing Plan Item" in SAP S/4HANA. It reads from 1 data source (fplt) and exposes 40 fields with key fields BillingPlan, BillingPlanItem. It has 14 associations to related views. Part of development package VDM_SD_BIL_IV_BP.

Data Sources (1)

SourceAliasJoin Type
fplt fplt from

Associations (14)

CardinalityTargetAliasCondition
[1..1] P_BillingPlan _BillingPlan _BillingPlan.BillingPlan = $projection.BillingPlan
[0..1] I_Currency _TransactionCurrency _TransactionCurrency.Currency = $projection.TransactionCurrency
[0..1] I_BillingBlockReason _BillingBlockReason _BillingBlockReason.BillingBlockReason = $projection.BillingBlockReason
[0..1] I_BillingPlanRelatedBillgSts _BillingPlanRelatedBillgSts _BillingPlanRelatedBillgSts.BillingPlanRelatedBillgStatus = $projection.BillingPlanRelatedBillgStatus
[0..1] I_CustomerPaymentTerms _CustomerPaymentTerms _CustomerPaymentTerms.CustomerPaymentTerms = $projection.CustomerPaymentTerms
[0..1] I_BillgPlnDteCrrtnRfndType _BillgPlnDteCrrtnRfndType _BillgPlnDteCrrtnRfndType.BillgPlnDteCorrectionRfndType = $projection.BillgPlnDteCorrectionRfndType
[0..1] I_BillingDocumentType _BillingDocumentType _BillingDocumentType.BillingDocumentType = $projection.ProposedBillingDocumentType
[0..1] I_BillgPlnDteDescCode _BillgPlnDteDescCode _BillgPlnDteDescCode.BillingPlanDateDescriptionCode = $projection.BillingPlanDateDescriptionCode
[0..1] I_AdoptingBillingDateID _AdoptingBillingDateID _AdoptingBillingDateID.AdoptingBillingDateID = $projection.AdoptingBillingDateID
[0..1] I_BillingPlanBillingRule _BillingPlanBillingRule _BillingPlanBillingRule.BillingPlanBillingRule = $projection.BillingPlanBillingRule
[0..1] I_BillingPlanMilestoneUsage _BillingPlanMilestoneUsage _BillingPlanMilestoneUsage.UsageCode = $projection.BillingPlanMilestoneUsage
[0..1] I_BillgPlanItemUsage _BillgPlanItemUsage _BillgPlanItemUsage.BillingPlanItemUsage = $projection.BillingPlanItemUsage
[0..1] I_BillingPlanItemUsage _BillgPlanItemUsage_2 _BillgPlanItemUsage_2.BillingPlanItemUsage = $projection.BillingPlanItemUsage_2 and _BillgPlanItemUsage_2.BillingPlanUsageCategory = $projection.BillingPlanUsageCategory
[0..1] I_BillgPlnUsgeCat_2 _BillingPlanUsageCategory _BillingPlanUsageCategory.BillingPlanUsageCategory = $projection.BillingPlanUsageCategory

Annotations (8)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.representativeKey BillingPlanItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY BillingPlan
KEY BillingPlanItem fplt fpltr Item
BillingPlanBillingDate fplt afdat Conf.req.date
BillingPlanAmount fplt fakwr Billing Value
TransactionCurrency fplt waers Transaction Currency
BillingBlockReason
BillingPlanRelatedBillgStatus
BillingPlanDateCategory
BillingPlanServiceStartDate
BillingPlanServiceEndDate
CustomerPaymentTerms fplt zterm Terms of Payment
ProposedBillingDocumentType
AdoptingBillingDateID
BillingPlanBillingRule fplt fareg Billing Rule
BillingPlanDateDescriptionCode fplt tetxt Date Descript.
BillingPlanMilestoneUsage fplt mlbez Usage
BillingPlanAmountPercent fplt fproz InvoicePercentg
BillgPlnDteCorrectionRfndType
AccountingExchangeRate
PostponementReason fplt postpr Reason
BillingPlanItemUsage fplt item_usage Usage
BillingPlanItemUsage_2 fplt item_usage Usage
BillingPlanUsageCategory _BillingPlan BillingPlanUsageCategory
BillingPlanItemDescription fplt descr WSS Profile
EnterpriseProjectMilestoneUUID fplt project_milestone_uuid
EnterpriseProjectMilestone fplt project_milestone_id
_BillingPlan _BillingPlan
_TransactionCurrency _TransactionCurrency
_BillingBlockReason _BillingBlockReason
_BillingPlanRelatedBillgSts _BillingPlanRelatedBillgSts
_BillgPlnDteCrrtnRfndType _BillgPlnDteCrrtnRfndType
_CustomerPaymentTerms _CustomerPaymentTerms
_BillingDocumentType _BillingDocumentType
_BillgPlnDteDescCode _BillgPlnDteDescCode
_AdoptingBillingDateID _AdoptingBillingDateID
_BillingPlanBillingRule _BillingPlanBillingRule
_BillingPlanMilestoneUsage _BillingPlanMilestoneUsage
_BillgPlanItemUsage _BillgPlanItemUsage
_BillgPlanItemUsage_2 _BillgPlanItemUsage_2
_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 P_BillingPlanItem.
-- 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_BillingPlanItem AS
SELECT
  cast( fplt.fplnr as tds_bplan_id preserving type ) AS BillingPlan,
  fplt.fpltr AS BillingPlanItem,
  fplt.afdat AS BillingPlanBillingDate,
  fplt.fakwr AS BillingPlanAmount,
  fplt.waers AS TransactionCurrency,
  cast( fplt.faksp as tds_billing_block preserving type ) AS BillingBlockReason,
  cast( fplt.fksaf as tds_billing_status preserving type ) AS BillingPlanRelatedBillgStatus,
  cast( fplt.fpttp as tds_bp_date_category preserving type ) AS BillingPlanDateCategory,
  cast( fplt.nfdat as sdbp_start_date preserving type ) AS BillingPlanServiceStartDate,
  cast( fplt.fkdat as sdbp_end_date preserving type ) AS BillingPlanServiceEndDate,
  fplt.zterm AS CustomerPaymentTerms,
  cast( fplt.fkarv as tds_ord_rl_billing_type preserving type ) AS ProposedBillingDocumentType,
  cast ( fplt.fpfix as tds_fixed_date preserving type ) AS AdoptingBillingDateID,
  fplt.fareg AS BillingPlanBillingRule,
  fplt.tetxt AS BillingPlanDateDescriptionCode,
  fplt.mlbez AS BillingPlanMilestoneUsage,
  fplt.fproz AS BillingPlanAmountPercent,
  cast( fplt.korte as tds_correction_date preserving type ) AS BillgPlnDteCorrectionRfndType,
  cast( fplt.kurrf as kurrf_not_converted preserving type ) AS AccountingExchangeRate,
  fplt.postpr AS PostponementReason,
  fplt.item_usage AS BillingPlanItemUsage,
  fplt.item_usage AS BillingPlanItemUsage_2,
  _BillingPlan.BillingPlanUsageCategory AS BillingPlanUsageCategory,
  fplt.descr AS BillingPlanItemDescription,
  fplt.project_milestone_uuid AS EnterpriseProjectMilestoneUUID,
  fplt.project_milestone_id AS EnterpriseProjectMilestone
FROM fplt
LEFT OUTER JOIN P_BillingPlan AS _BillingPlan ON _BillingPlan.BillingPlan = BillingPlan  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON _TransactionCurrency.Currency = TransactionCurrency  -- association [0..1]
LEFT OUTER JOIN I_BillingBlockReason AS _BillingBlockReason ON _BillingBlockReason.BillingBlockReason = BillingBlockReason  -- association [0..1]
LEFT OUTER JOIN I_BillingPlanRelatedBillgSts AS _BillingPlanRelatedBillgSts ON _BillingPlanRelatedBillgSts.BillingPlanRelatedBillgStatus = BillingPlanRelatedBillgStatus  -- association [0..1]
LEFT OUTER JOIN I_CustomerPaymentTerms AS _CustomerPaymentTerms ON _CustomerPaymentTerms.CustomerPaymentTerms = CustomerPaymentTerms  -- association [0..1]
LEFT OUTER JOIN I_BillgPlnDteCrrtnRfndType AS _BillgPlnDteCrrtnRfndType ON _BillgPlnDteCrrtnRfndType.BillgPlnDteCorrectionRfndType = BillgPlnDteCorrectionRfndType  -- association [0..1]
LEFT OUTER JOIN I_BillingDocumentType AS _BillingDocumentType ON _BillingDocumentType.BillingDocumentType = ProposedBillingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_BillgPlnDteDescCode AS _BillgPlnDteDescCode ON _BillgPlnDteDescCode.BillingPlanDateDescriptionCode = BillingPlanDateDescriptionCode  -- association [0..1]
LEFT OUTER JOIN I_AdoptingBillingDateID AS _AdoptingBillingDateID ON _AdoptingBillingDateID.AdoptingBillingDateID = AdoptingBillingDateID  -- association [0..1]
LEFT OUTER JOIN I_BillingPlanBillingRule AS _BillingPlanBillingRule ON _BillingPlanBillingRule.BillingPlanBillingRule = BillingPlanBillingRule  -- association [0..1]
LEFT OUTER JOIN I_BillingPlanMilestoneUsage AS _BillingPlanMilestoneUsage ON _BillingPlanMilestoneUsage.UsageCode = BillingPlanMilestoneUsage  -- association [0..1]
LEFT OUTER JOIN I_BillgPlanItemUsage AS _BillgPlanItemUsage ON _BillgPlanItemUsage.BillingPlanItemUsage = BillingPlanItemUsage  -- association [0..1]
LEFT OUTER JOIN I_BillingPlanItemUsage AS _BillgPlanItemUsage_2 ON _BillgPlanItemUsage_2.BillingPlanItemUsage = BillingPlanItemUsage_2 AND _BillgPlanItemUsage_2.BillingPlanUsageCategory = BillingPlanUsageCategory  -- association [0..1]
LEFT OUTER JOIN I_BillgPlnUsgeCat_2 AS _BillingPlanUsageCategory ON _BillingPlanUsageCategory.BillingPlanUsageCategory = BillingPlanUsageCategory  -- association [0..1]
;