P_CO_DIANStRpAggrgFormat1001
Format 1001 - Acctg and Payroll Items
P_CO_DIANStRpAggrgFormat1001 is a Consumption CDS View that provides data about "Format 1001 - Acctg and Payroll Items" in SAP S/4HANA. It reads from 3 data sources (I_CO_DIANItemType, I_CO_DIANStRpEmplAggrgdPyrl, P_CO_DIANFrmt1001JrnlEntrItem4) and exposes 120 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem, StatryRptgEntity.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CO_DIANItemType | DIANItemType | inner |
| I_CO_DIANStRpEmplAggrgdPyrl | Employee | union_all |
| P_CO_DIANFrmt1001JrnlEntrItem4 | P_CO_DIANFrmt1001JrnlEntrItem4 | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PSRCOAGGRG1001 | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Format 1001 - Acctg and Payroll Items | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (120)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| KEY | StatryRptgEntity | StatryRptgEntity | Reporting Entity | |
| KEY | StatryRptCategory | StatryRptCategory | Report ID | |
| KEY | StatryRptRunID | StatryRptRunID | Report Run ID | |
| KEY | CO_DIANReportFormat | CO_DIANReportFormat | Report Format | |
| KEY | CO_DIANReportItemType | CO_DIANReportItemType | Item Type | |
| KEY | ReportedTaxNumber | ReportedTaxNumber | VAT Reg. No. | |
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxNumber2 | TaxNumber2 | Tax Number 2 | ||
| TaxNumber3 | TaxNumber3 | |||
| TaxNumber4 | TaxNumber4 | |||
| TaxNumber5 | TaxNumber5 | |||
| VATRegistration | VATRegistration | VAT Registration No. | ||
| CO_DIANBPTaxLongNumber | CO_DIANBPTaxLongNumber | |||
| Reference1IDByBusinessPartner | Reference1IDByBusinessPartner | Reference Key 1 | ||
| Reference3IDByBusinessPartner | Reference3IDByBusinessPartner | Reference Key 3 | ||
| TaxNumberType | TaxNumberType | Tax number type | ||
| CO_DIANTaxNumberType | DIAN Doc. Type | |||
| Customer | Customer | Sold-to Party | ||
| Supplier | Supplier | Supplier | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| BusinessPlace | BusinessPlace | Business place | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| BusinessPartnerCategory | BusinessPartnerCategory | Partner Cat. | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| FirstName | FirstName | First Name | ||
| MiddleName | MiddleName | Middle Name | ||
| LastName | LastName | Last Name | ||
| AdditionalLastName | AdditionalLastName | Other Last Name | ||
| OrganizationBPName1 | OrganizationBPName1 | Name 1 | ||
| OrganizationBPName2 | OrganizationBPName2 | Name 2 | ||
| OrganizationBPName3 | OrganizationBPName3 | Name 3 | ||
| OrganizationBPName4 | OrganizationBPName4 | Name 4 | ||
| IsNaturalPerson | IsNaturalPerson | Natural person | ||
| BusinessPartnerCountry | BusinessPartnerCountry | Venue: Ctry/Reg | ||
| CompanyCodeCountry | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| CO_DIANCountry | _CO_DIANCountryMapping | CO_DIANCountry | ||
| Region | Region | Venue Region | ||
| CityCode | CityCode | IATA: City | ||
| CityName | CityName | Name | ||
| StreetName | StreetName | Text | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| CreationUTCDateTime | Time Stamp | |||
| GLAccount | GLAccount | General Ledger | ||
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| ReportingCurrency | ReportingCurrency | |||
| DcblGLAcctPaytsAmtInRptgCrcy | DcblGLAcctPaytsAmtInRptgCrcy | |||
| NonDcblGLAcctPaytAmtInRptgCrcy | NonDcblGLAcctPaytAmtInRptgCrcy | |||
| DcblVATIncrdCostInRptgCrcy | DcblVATIncrdCostInRptgCrcy | |||
| NonDcblVATIncrdCostInRptgCrcy | NonDcblVATIncrdCostInRptgCrcy | |||
| WhldgTxIncAmtInRptgCurrency | WhldgTxIncAmtInRptgCurrency | |||
| TakenWhldgTaxIncAmtInRptgCrcy | TakenWhldgTaxIncAmtInRptgCrcy | |||
| WhldgTaxCommonVATAmtInRptgCrcy | WhldgTaxCommonVATAmtInRptgCrcy | |||
| TknWhldgSimpfdVATAmtInRptgCrcy | TknWhldgSimpfdVATAmtInRptgCrcy | |||
| WhldgTxForeignVATAmtInRptgCrcy | WhldgTxForeignVATAmtInRptgCrcy | |||
| CO_WhldgCREEAmtInRptgCurrency | CO_WhldgCREEAmtInRptgCurrency | |||
| CO_TknWhldgCREEAmtInRptgCrcy | CO_TknWhldgCREEAmtInRptgCrcy | |||
| _CompanyCode | _CompanyCode | |||
| CompanyCodeasCompanyCode | ||||
| KEY | FiscalYear | I_CO_DIANStRpEmplAggrgdPyrl | PayrollYear | Fiscal Year |
| KEY | AccountingDocument | Journal Entry | ||
| KEY | AccountingDocumentItem | Posting View Item | ||
| KEY | StatryRptgEntity | I_CO_DIANStRpEmplAggrgdPyrl | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | I_CO_DIANStRpEmplAggrgdPyrl | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | I_CO_DIANStRpEmplAggrgdPyrl | StatryRptRunID | Report Run ID |
| KEY | CO_DIANReportFormat | I_CO_DIANItemType | CO_DIANReportFormat | Report Format |
| KEY | CO_DIANReportItemType | I_CO_DIANItemType | CO_DIANReportItemType | Item Type |
| KEY | ReportedTaxNumber | VAT Reg. No. | ||
| TaxNumber1 | I_CO_DIANStRpEmplAggrgdPyrl | TaxNumber1 | VAT Reg. No. | |
| TaxNumber2 | Tax Number 2 | |||
| TaxNumber3 | ||||
| TaxNumber4 | ||||
| TaxNumber5 | ||||
| VATRegistration | VAT Registration No. | |||
| CO_DIANBPTaxLongNumber | ||||
| Reference1IDByBusinessPartner | Reference Key 1 | |||
| Reference3IDByBusinessPartner | Reference Key 3 | |||
| TaxNumberType | Tax number type | |||
| CO_DIANTaxNumberType | I_CO_DIANStRpEmplAggrgdPyrl | CO_DIANTaxNumberType | DIAN Doc. Type | |
| Customer | Sold-to Party | |||
| Supplier | Supplier | |||
| PurchasingDocument | Purchasing Document | |||
| BusinessPlace | Business place | |||
| AccountingDocumentType | Journal Entry Type | |||
| BusinessPartnerCategory | Partner Cat. | |||
| BusinessPartner | Issuing Authority | |||
| FirstName | I_CO_DIANStRpEmplAggrgdPyrl | FirstName | First Name | |
| MiddleName | I_CO_DIANStRpEmplAggrgdPyrl | MiddleName | Middle Name | |
| LastName | I_CO_DIANStRpEmplAggrgdPyrl | LastName | Last Name | |
| AdditionalLastName | I_CO_DIANStRpEmplAggrgdPyrl | AdditionalLastName | Other Last Name | |
| OrganizationBPName1 | Name 1 | |||
| OrganizationBPName2 | Name 2 | |||
| OrganizationBPName3 | Name 3 | |||
| OrganizationBPName4 | Name 4 | |||
| IsNaturalPerson | Natural person | |||
| BusinessPartnerCountry | I_CO_DIANStRpEmplAggrgdPyrl | Country | Venue: Ctry/Reg | |
| CompanyCodeCountry | I_CO_DIANStRpEmplAggrgdPyrl | CompanyCodeCountry | Reporting Ctry/Reg. | |
| CO_DIANCountry | _CO_DIANCountryMapping | CO_DIANCountry | ||
| Region | I_CO_DIANStRpEmplAggrgdPyrl | Region | Venue Region | |
| CityCode | I_CO_DIANStRpEmplAggrgdPyrl | CityCode | IATA: City | |
| CityName | Name | |||
| StreetName | I_CO_DIANStRpEmplAggrgdPyrl | StreetName | Text | |
| PostingDate | Posting Date for GR | |||
| CreationUTCDateTime | I_CO_DIANStRpEmplAggrgdPyrl | CreationUTCDateTime | Time Stamp | |
| GLAccount | General Ledger | |||
| AlternativeGLAccount | Group Account | |||
| ReportingCurrency | CO_DIANPyrlItmTypeCalcdAmtCrcy | |||
| DcblVATIncrdCostInRptgCrcy | ||||
| NonDcblVATIncrdCostInRptgCrcy | ||||
| TakenWhldgTaxIncAmtInRptgCrcy | ||||
| WhldgTaxCommonVATAmtInRptgCrcy | ||||
| TknWhldgSimpfdVATAmtInRptgCrcy | ||||
| WhldgTxForeignVATAmtInRptgCrcy | ||||
| CO_WhldgCREEAmtInRptgCurrency | ||||
| CO_TknWhldgCREEAmtInRptgCrcy | ||||
| _CompanyCode | I_CO_DIANStRpEmplAggrgdPyrl | _CompanyCode | ||
| _CompanyCodeCountryMapping | I_CO_DIANStRpEmplAggrgdPyrl | _CompanyCodeCountryMapping |
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 P_CO_DIANStRpAggrgFormat1001.
-- 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.
-- Parameters: P_Ledger : fins_ledger, P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to
CREATE VIEW P_CO_DIANStRpAggrgFormat1001 AS
SELECT
CompanyCode,
FiscalYear,
AccountingDocument,
AccountingDocumentItem,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
CO_DIANReportFormat,
CO_DIANReportItemType,
ReportedTaxNumber,
TaxNumber1,
TaxNumber2,
TaxNumber3,
TaxNumber4,
TaxNumber5,
VATRegistration,
CO_DIANBPTaxLongNumber,
Reference1IDByBusinessPartner,
Reference3IDByBusinessPartner,
TaxNumberType,
cast( coalesce( _DIANTaxNumberTypeMapping.CO_DIANTaxNumberType, '00' ) as ficodian_doc_type preserving type ) AS CO_DIANTaxNumberType,
Customer,
Supplier,
PurchasingDocument,
BusinessPlace,
AccountingDocumentType,
BusinessPartnerCategory,
BusinessPartner,
FirstName,
MiddleName,
LastName,
AdditionalLastName,
OrganizationBPName1,
OrganizationBPName2,
OrganizationBPName3,
OrganizationBPName4,
IsNaturalPerson,
BusinessPartnerCountry,
CompanyCodeCountry,
_CO_DIANCountryMapping.CO_DIANCountry AS CO_DIANCountry,
Region,
CityCode,
CityName,
StreetName,
PostingDate,
cast( cast( 0 as abap.dec( 15 , 0 ) ) as timestamp preserving type) AS CreationUTCDateTime,
GLAccount,
AlternativeGLAccount,
ReportingCurrency,
DcblGLAcctPaytsAmtInRptgCrcy,
NonDcblGLAcctPaytAmtInRptgCrcy,
DcblVATIncrdCostInRptgCrcy,
NonDcblVATIncrdCostInRptgCrcy,
WhldgTxIncAmtInRptgCurrency,
TakenWhldgTaxIncAmtInRptgCrcy,
WhldgTaxCommonVATAmtInRptgCrcy,
TknWhldgSimpfdVATAmtInRptgCrcy,
WhldgTxForeignVATAmtInRptgCrcy,
CO_WhldgCREEAmtInRptgCurrency,
CO_TknWhldgCREEAmtInRptgCrcy,
Employee._CompanyCode AS _CompanyCode,
Employee._CompanyCodeCountryMapping AS _CompanyCodeCountryMapping
FROM P_CO_DIANFrmt1001JrnlEntrItem4
INNER JOIN I_CO_DIANItemType AS DIANItemType ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_CO_DIANStRpEmplAggrgdPyrl
;
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