P_AR_MappingOfclDocTypeDetn
P_AR_MappingOfclDocTypeDetn is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_AR_OfficialDocumentTypeDetn, I_CompanyCode, I_CountrySpecificDocumentType) and exposes 5 fields with key fields CompanyCode, AccountingDocumentType, AR_OfficialDocumentClass, AR_PrintCharacter.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_AR_OfficialDocumentTypeDetn | AR_OfficialDocumentTypeDetn | inner |
| I_CompanyCode | CompanyCode | from |
| I_CountrySpecificDocumentType | CountrySpecificDocumentType | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_AR_Report | progname |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_CompanyCode | CompanyCode | |
| KEY | AccountingDocumentType | |||
| KEY | AR_OfficialDocumentClass | |||
| KEY | AR_PrintCharacter | |||
| AR_OfficialDocumentType |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
dataClass: #MIXED,
serviceQuality: #P,
sizeCategory: #M
}
@VDM:{
private: true,
viewType: #COMPOSITE
}
define view entity P_AR_MappingOfclDocTypeDetn
with parameters
@EndUserText.label: 'Statutory Report Name'
P_AR_Report : progname
as select from I_CompanyCode as CompanyCode
inner join I_CountrySpecificDocumentType as CountrySpecificDocumentType on CountrySpecificDocumentType.Country = CompanyCode.Country
inner join I_AR_OfficialDocumentTypeDetn as AR_OfficialDocumentTypeDetn on AR_OfficialDocumentTypeDetn.AR_OfficialDocumentClass = CountrySpecificDocumentType.AR_OfficialDocumentClass
and AR_OfficialDocumentTypeDetn.Country = CompanyCode.Country
and AR_OfficialDocumentTypeDetn.AR_Report = $parameters.P_AR_Report
{
key CompanyCode.CompanyCode,
key cast( CountrySpecificDocumentType.AccountingDocumentType as fis_blart preserving type ) as AccountingDocumentType,
key cast( AR_OfficialDocumentTypeDetn.AR_OfficialDocumentClass as doccls preserving type ) as AR_OfficialDocumentClass,
key cast( AR_OfficialDocumentTypeDetn.AR_PrintCharacter as j_1apchar preserving type ) as AR_PrintCharacter,
cast( AR_OfficialDocumentTypeDetn.AR_OfficialDocumentType as j_1aoftp_d preserving type ) as AR_OfficialDocumentType
}
where
CompanyCode.Country = 'AR'
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