I_CO_DIANEmplAggregatedPyrl
Employee Aggregated Payroll for CO DIAN
I_CO_DIANEmplAggregatedPyrl is a Basic CDS View that provides data about "Employee Aggregated Payroll for CO DIAN" in SAP S/4HANA. It reads from 1 data source (ficodiand_hcm) and exposes 22 fields with key fields CompanyCode, PayrollYear, CO_DIANReportFormat, CO_DIANReportItemType, CO_DIANTaxNumberType. It has 2 associations to related views. Part of development package GLO_FIN_IS_CO_HCM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ficodiand_hcm | ficodiand_hcm | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _BaseAmountCurrency | $projection.CO_DIANPyrlItemTypeBaseAmtCrcy = _BaseAmountCurrency.Currency |
| [0..1] | I_Currency | _CalculatedAmountCurrency | $projection.CO_DIANPyrlItmTypeCalcdAmtCrcy = _CalculatedAmountCurrency.Currency |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICODIANEMPLPAYR | view | |
| EndUserText.label | Employee Aggregated Payroll for CO DIAN | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | TaxNumber1 | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | company_code | Company Code | |
| KEY | PayrollYear | payroll_fiscal_year | Fiscal Year | |
| KEY | CO_DIANReportFormat | report_format | Report Format | |
| KEY | CO_DIANReportItemType | concept_code | Item Type | |
| KEY | CO_DIANTaxNumberType | tax_number_type | DIAN Doc. Type | |
| KEY | TaxNumber1 | tax_number | Tax Number 1 | |
| KEY | CreationUTCDateTime | creation_timestamp | Timestamp | |
| FirstName | bp_name_1 | Name | ||
| MiddleName | bp_name_2 | Name 2 | ||
| LastName | bp_name_3 | Name 3 | ||
| AdditionalLastName | bp_name_4 | Name 4 | ||
| Country | country | Venue: Ctry/Reg | ||
| StreetName | address | Subscription address | ||
| CityCode | city_code | Japan City Code | ||
| Region | state | Vehicle Region | ||
| CO_DIANPyrlItemTypeBaseAmt | base_amount | TxBaseAmt CoCodeCrcy | ||
| CO_DIANPyrlItemTypeBaseAmtCrcy | base_amount_currency | Currency | ||
| CO_DIANPyrlItmTypeCalcdAmt | calc_amount | Calculated Val | ||
| CO_DIANPyrlItmTypeCalcdAmtCrcy | calc_amount_currency | Currency | ||
| CreatedByUser | created_by | Version Created By | ||
| _BaseAmountCurrency | _BaseAmountCurrency | |||
| _CalculatedAmountCurrency | _CalculatedAmountCurrency |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_CO_DIANEmplAggregatedPyrl.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ICODIANEMPLPAYR
CREATE VIEW I_CO_DIANEmplAggregatedPyrl AS
SELECT
company_code AS CompanyCode,
payroll_fiscal_year AS PayrollYear,
report_format AS CO_DIANReportFormat,
concept_code AS CO_DIANReportItemType,
tax_number_type AS CO_DIANTaxNumberType,
tax_number AS TaxNumber1,
creation_timestamp AS CreationUTCDateTime,
bp_name_1 AS FirstName,
bp_name_2 AS MiddleName,
bp_name_3 AS LastName,
bp_name_4 AS AdditionalLastName,
Country,
address AS StreetName,
city_code AS CityCode,
state AS Region,
base_amount AS CO_DIANPyrlItemTypeBaseAmt,
base_amount_currency AS CO_DIANPyrlItemTypeBaseAmtCrcy,
calc_amount AS CO_DIANPyrlItmTypeCalcdAmt,
calc_amount_currency AS CO_DIANPyrlItmTypeCalcdAmtCrcy,
created_by AS CreatedByUser
FROM ficodiand_hcm
LEFT OUTER JOIN I_Currency AS _BaseAmountCurrency ON CO_DIANPyrlItemTypeBaseAmtCrcy = _BaseAmountCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CalculatedAmountCurrency ON CO_DIANPyrlItmTypeCalcdAmtCrcy = _CalculatedAmountCurrency.Currency -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA