R_PurchaseOrderInvoicingPlan
Invoicing Plan for Purchase Orders
R_PurchaseOrderInvoicingPlan is a Basic CDS View that provides data about "Invoicing Plan for Purchase Orders" in SAP S/4HANA. It reads from 2 data sources (P_BillingPlan, R_PurchaseOrderItem) and exposes 14 fields with key fields PurchaseOrder, PurchaseOrderItem, InvoicingPlan.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_BillingPlan | P_BillingPlan | from |
| R_PurchaseOrderItem | R_PurchaseOrderItem | inner |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Invoicing Plan for Purchase Orders | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | R_PurchaseOrderItem | PurchaseOrder | |
| KEY | PurchaseOrderItem | R_PurchaseOrderItem | PurchaseOrderItem | |
| KEY | InvoicingPlan | P_BillingPlan | BillingPlan | |
| InvoicingPlanType | P_BillingPlan | BillingPlanType | ||
| InvoicingPlanStartDate | P_BillingPlan | BillingPlanStartDate | ||
| InvoicingPlanEndDate | P_BillingPlan | BillingPlanEndDate | ||
| InvoicingPlanNextInvcDateRule | P_BillingPlan | BillingPlanNextBillingDateRule | ||
| PurchasingOrganization | R_PurchaseOrderItem | PurchasingOrganization | ||
| PurchasingGroup | R_PurchaseOrderItem | PurchasingGroup | ||
| PurchaseOrderType | R_PurchaseOrderItem | PurchaseOrderType | ||
| PurchasingDocumentDeletionCode | R_PurchaseOrderItem | PurchasingDocumentDeletionCode | ||
| Plant | R_PurchaseOrderItem | Plant | ||
| _BillingPlanType | P_BillingPlan | _BillingPlanType | ||
| _PurchaseOrder | R_PurchaseOrderItem | _PurchaseOrder |
@EndUserText.label: 'Invoicing Plan for Purchase Orders'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #MANDATORY
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #M
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
define view entity R_PurchaseOrderInvoicingPlan
as select from P_BillingPlan
inner join R_PurchaseOrderItem on P_BillingPlan.BillingPlan = R_PurchaseOrderItem.InvoicingPlan
{
key R_PurchaseOrderItem.PurchaseOrder,
key R_PurchaseOrderItem.PurchaseOrderItem,
key P_BillingPlan.BillingPlan as InvoicingPlan,
P_BillingPlan.BillingPlanType as InvoicingPlanType,
P_BillingPlan.BillingPlanStartDate as InvoicingPlanStartDate,
P_BillingPlan.BillingPlanEndDate as InvoicingPlanEndDate,
P_BillingPlan.BillingPlanNextBillingDateRule as InvoicingPlanNextInvcDateRule, // perio
/* used for authority check */
R_PurchaseOrderItem.PurchasingOrganization,
R_PurchaseOrderItem.PurchasingGroup,
R_PurchaseOrderItem.PurchaseOrderType,
R_PurchaseOrderItem.PurchasingDocumentDeletionCode,
R_PurchaseOrderItem.Plant,
P_BillingPlan._BillingPlanType,
/* Associations */
R_PurchaseOrderItem._PurchaseOrder
}
where
P_BillingPlan.BillingPlanCategory = 'B' and R_PurchaseOrderItem.PurchasingDocumentDeletionCode <> 'L'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_BILLINGPLAN",
"R_PURCHASEORDERITEM"
],
"ASSOCIATED":
[
"I_BILLINGPLANTYPE",
"R_PURCHASEORDER"
],
"BASE":
[
"P_BILLINGPLAN",
"R_PURCHASEORDERITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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