P_RU_VATInvcJrnlLinkIncgInvc
P_RU_VATInvcJrnlLinkIncgInvc is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_JournalEntry, P_RU_BSET) and exposes 8 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | AccountingDocument | inner |
| P_RU_BSET | TaxItem | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRUVATINVJLI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | I_JournalEntry | CompanyCode | ||
| AccountingDocument | I_JournalEntry | AccountingDocument | ||
| FiscalYear | I_JournalEntry | FiscalYear | ||
| RU_VATReturnVersion | VATReportingCust | RU_VATReturnVersion | ||
| RU_VATReturnSectionType | VATReportingCust | RU_VATReturnSectionType | ||
| RU_VATSubScenarioVersion | VATReportingCust | RU_VATSubScenarioVersion | ||
| RU_VATSubScenario | VATReportingCust | RU_VATSubScenario | ||
| RU_SupplierOutputType | VATReportingCust | RU_SupplierOutputType |
@AbapCatalog.sqlViewName: 'PRUVATINVJLI'
@AbapCatalog.compiler.compareFilter: true
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view P_RU_VATInvcJrnlLinkIncgInvc
as select distinct from P_RU_VATReportingCust as VATReportingCust
inner join P_RU_BSET as TaxItem on VATReportingCust.TaxCode = TaxItem.TaxCode
and VATReportingCust.TaxItemClassification = TaxItem.TransactionTypeDetermination
inner join I_JournalEntry as AccountingDocument on AccountingDocument.CompanyCode = TaxItem.CompanyCode
and AccountingDocument.AccountingDocument = TaxItem.AccountingDocument
and AccountingDocument.FiscalYear = TaxItem.FiscalYear
and (
AccountingDocument.AccountingDocumentType = VATReportingCust.AccountingDocumentType //from customizing
or VATReportingCust.AccountingDocumentType is null
)
{
AccountingDocument.CompanyCode,
AccountingDocument.AccountingDocument,
AccountingDocument.FiscalYear,
VATReportingCust.RU_VATReturnVersion,
VATReportingCust.RU_VATReturnSectionType,
VATReportingCust.RU_VATSubScenarioVersion,
VATReportingCust.RU_VATSubScenario,
VATReportingCust.RU_SupplierOutputType
}
where
RU_VATReturnSectionType = 'I'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY",
"P_RU_BSET",
"P_RU_VATREPORTINGCUST"
],
"ASSOCIATED":
[],
"BASE":
[],
"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