P_RU_VATInTransitBillingDoc
P_RU_VATInTransitBillingDoc is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_RU_AcctgDocReferenceID, I_CFinBillingDocument) and exposes 8 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RU_AcctgDocReferenceID | AccDocRefID | from |
| I_CFinBillingDocument | BillDoc | inner |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUVATTRNSTBILD | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | P_RU_AcctgDocReferenceID | CompanyCode | ||
| AccountingDocument | P_RU_AcctgDocReferenceID | AccountingDocument | ||
| FiscalYear | P_RU_AcctgDocReferenceID | FiscalYear | ||
| ReferenceIDType | P_RU_AcctgDocReferenceID | ReferenceIDType | ||
| ReferenceIDDocumentNumber | P_RU_AcctgDocReferenceID | ReferenceIDDocumentNumber | ||
| ReferenceIDDocumentYear | P_RU_AcctgDocReferenceID | ReferenceIDDocumentYear | ||
| SoldToParty | I_CFinBillingDocument | SoldToParty | ||
| SenderLogicalSystem | P_RU_AcctgDocReferenceID | SenderLogicalSystem |
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PRUVATTRNSTBILD'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view P_RU_VATInTransitBillingDoc
as select from P_RU_AcctgDocReferenceID as AccDocRefID
inner join I_CFinBillingDocument as BillDoc on BillDoc.CentralFinanceBillingDocument = AccDocRefID.ReferenceIDDocumentNumber
and BillDoc.SenderLogicalSystem = AccDocRefID.SenderLogicalSystem
{
AccDocRefID.CompanyCode,
AccDocRefID.AccountingDocument,
AccDocRefID.FiscalYear,
AccDocRefID.ReferenceIDType,
AccDocRefID.ReferenceIDDocumentNumber,
AccDocRefID.ReferenceIDDocumentYear,
BillDoc.SoldToParty,
AccDocRefID.SenderLogicalSystem
}
where
AccDocRefID.DocumentReferenceID like 'VAT^%'
// as select from P_RU_AcctgDocReferenceID as AccDocRefID
//
// inner join I_BillingDocument as BillDoc on BillDoc.BillingDocument = AccDocRefID.ReferenceIDDocumentNumber
//{
// AccDocRefID.CompanyCode,
// AccDocRefID.AccountingDocument,
// AccDocRefID.FiscalYear,
//
// AccDocRefID.ReferenceIDType,
// AccDocRefID.ReferenceIDDocumentNumber,
// AccDocRefID.ReferenceIDDocumentYear,
//
// BillDoc.SoldToParty,
// AccDocRefID.SenderLogicalSystem
//}
//where
// AccDocRefID.SenderLogicalSystem = ''
// and AccDocRefID.DocumentReferenceID like 'VAT^%'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CFINBILLINGDOCUMENT",
"P_RU_ACCTGDOCREFERENCEID"
],
"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