I_CAStRpECSalesListDoc
Statutory Reporting EC Sales List Doc
I_CAStRpECSalesListDoc is a Basic CDS View that provides data about "Statutory Reporting EC Sales List Doc" in SAP S/4HANA. It reads from 1 data source (dfkkrepzm) and exposes 33 fields with key fields CompanyCode, CARptgDateTypeForECSalesList, ECSalesListReportingDate, BusinessPartner, CADocumentNumber. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkrepzm | dfkkrepzm | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [1..1] | I_CADocument | _CADocument | $projection.CADocumentNumber = _CADocument.CADocumentNumber |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [1..1] | I_Currency | _CountryCurrency | $projection.CountryCurrency = _CountryCurrency.Currency |
| [0..1] | I_TaxType | _TaxType | $projection.TaxType = _TaxType.TaxType |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Statutory Reporting EC Sales List Doc | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Value | |
| KEY | CARptgDateTypeForECSalesList | datty | Reporting Date | |
| KEY | ECSalesListReportingDate | datum | Valid to | |
| KEY | BusinessPartner | gpart | Tech. BPartner | |
| KEY | CADocumentNumber | opbel | Reopen | |
| KEY | CASqncNumberForECSalesList | lfdnr | Tax sequence | |
| TaxCode | mwskz | Tax Code | ||
| TaxType | mwart | Tax Type | ||
| EUTaxClassification | egrkz | EU Code/Code | ||
| CountryCurrency | lwaer | Reporting Crcy | ||
| CompanyCodeCurrency | hwaer | Local Currency | ||
| CATaxBaseAmtInCountryCrcy | lwbas | NC Basis | ||
| CATaxBaseAmtInCoCodeCrcy | hwbas | LC Base Amt | ||
| TaxReturnCountry | lstml | Reporting C/R | ||
| CAReferenceDocument | xblnr | Reference | ||
| CAPostingDate | budat | Posting Date | ||
| DocumentDate | bldat | Journal Entry Date | ||
| CANetDueDate | faedn | Net Due Date | ||
| TaxReportingDate | vatdate | Valid From | ||
| CAReversedDocumentNumber | stbel | Reversed Doc. | ||
| VATRegistration | stceg | VAT Reg. No. | ||
| Country | land1 | Trip Ctry/Reg | ||
| BusinessPartnerName | name1 | PA text | ||
| CABusinessPartnerRefType | gprtp | Reference Type | ||
| CABusinessPartnerRefForType | gpref | Reference | ||
| ContrAcctgECSalesListRefDoc | ref_opbel | |||
| ECSalesListReferenceDate | ref_date | |||
| _BusinessPartner | _BusinessPartner | |||
| _CADocument | _CADocument | |||
| _CompanyCode | _CompanyCode | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _CountryCurrency | _CountryCurrency | |||
| _TaxType | _TaxType |
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_CAStRpECSalesListDoc.
-- 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.
CREATE VIEW I_CAStRpECSalesListDoc AS
SELECT
bukrs AS CompanyCode,
datty AS CARptgDateTypeForECSalesList,
datum AS ECSalesListReportingDate,
gpart AS BusinessPartner,
opbel AS CADocumentNumber,
lfdnr AS CASqncNumberForECSalesList,
mwskz AS TaxCode,
mwart AS TaxType,
egrkz AS EUTaxClassification,
lwaer AS CountryCurrency,
hwaer AS CompanyCodeCurrency,
lwbas AS CATaxBaseAmtInCountryCrcy,
hwbas AS CATaxBaseAmtInCoCodeCrcy,
lstml AS TaxReturnCountry,
xblnr AS CAReferenceDocument,
budat AS CAPostingDate,
bldat AS DocumentDate,
faedn AS CANetDueDate,
vatdate AS TaxReportingDate,
stbel AS CAReversedDocumentNumber,
stceg AS VATRegistration,
land1 AS Country,
name1 AS BusinessPartnerName,
gprtp AS CABusinessPartnerRefType,
gpref AS CABusinessPartnerRefForType,
ref_opbel AS ContrAcctgECSalesListRefDoc,
ref_date AS ECSalesListReferenceDate
FROM dfkkrepzm
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_CADocument AS _CADocument ON CADocumentNumber = _CADocument.CADocumentNumber -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CountryCurrency ON CountryCurrency = _CountryCurrency.Currency -- association [1..1]
LEFT OUTER JOIN I_TaxType AS _TaxType ON TaxType = _TaxType.TaxType -- 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