I_CO_DIANEmplAggregatedPyrl

DDL: I_CO_DIANEMPLAGGREGATEDPYRL SQL: ICODIANEMPLPAYR Type: view BASIC

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.

Data Sources (1)

SourceAliasJoin Type
ficodiand_hcm ficodiand_hcm from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Currency _BaseAmountCurrency $projection.CO_DIANPyrlItemTypeBaseAmtCrcy = _BaseAmountCurrency.Currency
[0..1] I_Currency _CalculatedAmountCurrency $projection.CO_DIANPyrlItmTypeCalcdAmtCrcy = _CalculatedAmountCurrency.Currency

Annotations (9)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;