P_MX_DueDeferredTaxItem
P_MX_DueDeferredTaxItem is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (P_MX_DefTaxDocSupplierDetails, I_StRpTaxItemBoxConfiguration, P_StRpTaxItem, I_TaxCode) and exposes 26 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxBoxStrucValidityEndDate.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_MX_DefTaxDocSupplierDetails | DefTaxTransfer | inner |
| I_StRpTaxItemBoxConfiguration | I_StRpTaxItemBoxConfiguration | inner |
| P_StRpTaxItem | StRpTaxItem | from |
| I_TaxCode | TaxCode | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PMXDUEDEFTXITM | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_StRpTaxItem | CompanyCode | |
| KEY | AccountingDocument | P_StRpTaxItem | AccountingDocument | |
| KEY | FiscalYear | |||
| KEY | TaxItem | P_StRpTaxItem | TaxItem | |
| KEY | TaxBoxStrucValidityEndDate | StRpTaxItemBox | TaxBoxStrucValidityEndDate | |
| ReportingDate | P_StRpTaxItem | ReportingDate | ||
| PostingDate | P_StRpTaxItem | PostingDate | ||
| DocumentDate | P_StRpTaxItem | DocumentDate | ||
| TaxReportingDate | P_StRpTaxItem | TaxReportingDate | ||
| TaxReportingDocumentDate | P_StRpTaxItem | TaxReportingDocumentDate | ||
| DocumentReferenceID | P_StRpTaxItem | DocumentReferenceID | ||
| AccountingDocumentType | P_StRpTaxItem | AccountingDocumentType | ||
| TransactionTypeDetermination | P_StRpTaxItem | TransactionTypeDetermination | ||
| GLAccount | P_StRpTaxItem | GLAccount | ||
| BusinessPlace | P_StRpTaxItem | BusinessPlace | ||
| TaxJurisdiction | P_StRpTaxItem | TaxJurisdiction | ||
| LowestLevelTaxJurisdiction | P_StRpTaxItem | LowestLevelTaxJurisdiction | ||
| ReportingCountry | P_StRpTaxItem | ReportingCountry | ||
| SenderCompanyCode | P_StRpTaxItem | SenderCompanyCode | ||
| SenderAccountingDocument | P_StRpTaxItem | SenderAccountingDocument | ||
| SenderFiscalYear | ||||
| TaxCode | P_StRpTaxItem | TaxCode | ||
| TaxDeclnAmountType | StRpTaxItemBox | TaxDeclnAmountType | ||
| TaxBoxStrucValidityStartDate | StRpTaxItemBox | TaxBoxStrucValidityStartDate | ||
| TaxBoxStructureTypeasTaxBoxStructureType | ||||
| BusinessType | P_MX_DefTaxDocSupplierDetails | BusinessType |
@AbapCatalog: {
compiler.compareFilter: true,
preserveKey: true,
sqlViewName: 'PMXDUEDEFTXITM'
}
@AccessControl:{
authorizationCheck: #NOT_REQUIRED,
personalData.blocking: #NOT_REQUIRED
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {
dataClass: #MIXED,
serviceQuality: #P,
sizeCategory: #XL
}
@VDM: {
private: true,
viewType: #COMPOSITE
}
define view P_MX_DueDeferredTaxItem
as select from P_StRpTaxItem as StRpTaxItem
inner join P_MX_DefTaxDocSupplierDetails as DefTaxTransfer on DefTaxTransfer.CompanyCode = StRpTaxItem.CompanyCode
and DefTaxTransfer.AccountingDocument = StRpTaxItem.AccountingDocument
and DefTaxTransfer.FiscalYear = StRpTaxItem.FiscalYear
inner join I_TaxCode as TaxCode on TaxCode.TaxCode = StRpTaxItem.TaxCode
and TaxCode.TaxCalculationProcedure = StRpTaxItem.TaxCalculationProcedure
inner join I_StRpTaxItemBoxConfiguration( P_TaxBoxConfiguration: '1' ) as StRpTaxItemBox on StRpTaxItemBox.Country = 'MX'
and StRpTaxItemBox.TaxBoxStrucValidityStartDate <= StRpTaxItem.ReportingDate
and StRpTaxItemBox.TaxBoxStrucValidityEndDate >= StRpTaxItem.ReportingDate
and StRpTaxItemBox.TaxCode = TaxCode.TaxCode
and StRpTaxItemBox.TransactionTypeDetermination = StRpTaxItem.TransactionTypeDetermination
{
key StRpTaxItem.CompanyCode as CompanyCode,
key StRpTaxItem.AccountingDocument as AccountingDocument,
key cast( StRpTaxItem.FiscalYear as fis_gjahr_no_conv preserving type ) as FiscalYear,
key StRpTaxItem.TaxItem as TaxItem,
key StRpTaxItemBox.TaxBoxStrucValidityEndDate as TaxBoxStrucValidityEndDate,
--- Based on T007K/L
key cast( case
when StRpTaxItemBox.TaxItemGroupingVersion is not null and StRpTaxItemBox.TaxItemGroupingVersion <> ''
then StRpTaxItemBox.TaxItemGroupingVersion
else left( StRpTaxItemBox.TaxBoxStructureType, 4 )
end as verstax preserving type ) as TaxItemGroupingVersion,
StRpTaxItem.ReportingDate as ReportingDate,
StRpTaxItem.PostingDate as PostingDate,
StRpTaxItem.DocumentDate as DocumentDate,
StRpTaxItem.TaxReportingDate as TaxReportingDate,
StRpTaxItem.TaxReportingDocumentDate as TaxReportingDocumentDate,
StRpTaxItem.DocumentReferenceID as DocumentReferenceID,
StRpTaxItem.AccountingDocumentType as AccountingDocumentType,
StRpTaxItem.TransactionTypeDetermination as TransactionTypeDetermination,
StRpTaxItem.GLAccount as GLAccount,
StRpTaxItem.BusinessPlace as BusinessPlace,
StRpTaxItem.TaxJurisdiction as TaxJurisdiction,
StRpTaxItem.LowestLevelTaxJurisdiction as LowestLevelTaxJurisdiction,
StRpTaxItem.ReportingCountry as ReportingCountry,
StRpTaxItem.SenderCompanyCode as SenderCompanyCode,
StRpTaxItem.SenderAccountingDocument as SenderAccountingDocument,
cast( StRpTaxItem.SenderFiscalYear as fis_gjahr_no_conv preserving type ) as SenderFiscalYear,
StRpTaxItem.TaxCode as TaxCode,
StRpTaxItemBox.TaxDeclnAmountType as TaxDeclnAmountType,
StRpTaxItemBox.TaxBoxStrucValidityStartDate as TaxBoxStrucValidityStartDate,
--- Based on FOT*
StRpTaxItemBox.TaxBoxStructureType as TaxBoxStructureType,
DefTaxTransfer.BusinessType as BusinessType
}
where
StRpTaxItem.DocumentReferenceID is not null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_STRPTAXITEMBOXCONFIGURATION",
"I_TAXCODE",
"P_MX_DEFTAXDOCSUPPLIERDETAILS",
"P_STRPTAXITEM"
],
"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