P_MPOpeninvoice
Open Invoice
P_MPOpeninvoice is a Composite CDS View that provides data about "Open Invoice" in SAP S/4HANA. It reads from 2 data sources (I_DebitMemoRequestItem, P_Mpsosubdoc) and exposes 8 fields. Part of development package VDM_CPM_WS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_DebitMemoRequestItem | OpenInvoice | inner |
| P_Mpsosubdoc | SubDocument | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPOPENINVOICE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| MasterProject | P_Mpsosubdoc | MasterProject | ||
| MasterProjectUUID | P_Mpsosubdoc | MasterProjectUUID | ||
| MasterProjectIsConfidential | P_Mpsosubdoc | MasterProjectIsConfidential | ||
| MasterProjectOrganization | P_Mpsosubdoc | MasterProjectOrganization | ||
| MasterProjectType | P_Mpsosubdoc | MasterProjectType | ||
| SalesDocument | P_Mpsosubdoc | SalesDocument | ||
| SalesDocumentItem | P_Mpsosubdoc | SalesDocumentItem | ||
| Invoicedate | I_DebitMemoRequestItem | CreationDate |
@AbapCatalog.sqlViewName: 'PMPOPENINVOICE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'Open Invoice'
define view P_MPOpeninvoice
as select from P_Mpsosubdoc as SubDocument
// inner join I_SalesDocumentVB as SalesDocument on SubDocument.SalesDocument = SalesDocument.SalesDocument
// and SubDocument.SalesDocumentItem = SalesDocument.SalesDocumentItem
inner join I_DebitMemoRequestItem as OpenInvoice on SubDocument.SalesDocument = OpenInvoice.DebitMemoRequest
and SubDocument.SalesDocumentItem = OpenInvoice.DebitMemoRequestItem and OpenInvoice.SDProcessStatus <> 'C'
{
SubDocument.MasterProject,
SubDocument.MasterProjectUUID,
SubDocument.MasterProjectIsConfidential,
SubDocument.MasterProjectOrganization,
SubDocument.MasterProjectType,
SubDocument.SalesDocument,
SubDocument.SalesDocumentItem,
//SalesDocument.BillingDate as Invoicedate
OpenInvoice.CreationDate as Invoicedate
}
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