P_CAStRpECSalesListEntry
FI-CA reporting data for EC Sales List
P_CAStRpECSalesListEntry is a Composite CDS View that provides data about "FI-CA reporting data for EC Sales List" in SAP S/4HANA. It reads from 1 data source (I_CAStRpECSalesListDoc) and exposes 52 fields with key fields CompanyCode, CARptgDateTypeForECSalesList, ECSalesListReportingDate, BusinessPartner, CADocument. Part of development package FKK_ID_XX_ECSL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CAStRpECSalesListDoc | I_CAStRpECSalesListDoc | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCASRECSLENTRY | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.allowExtensions | false | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | CARptgDateTypeForECSalesList | CARptgDateTypeForECSalesList | Reporting Date | |
| KEY | ECSalesListReportingDate | ECSalesListReportingDate | Date | |
| KEY | BusinessPartner | BusinessPartner | Issuing Authority | |
| KEY | CADocument | Document Number | ||
| KEY | CASqncNumberForECSalesList | CASqncNumberForECSalesList | Sequence Number | |
| CAReconciliationKey | _CADocument | CAReconciliationKey | Reconcil. Key | |
| FiscalYearVariant | _CompanyCode | FiscalYearVariant | FY Variant | |
| BusinessPartnerName | ||||
| TaxableEntity | ||||
| AuthorizationGroup | _BusinessPartner | AuthorizationGroup | AuthorizGroup | |
| TaxCode | Tax Code | |||
| Debtor | Issuing Authority | |||
| CustomerName | ||||
| Creditor | Issuing Authority | |||
| SupplierName | ||||
| VATRegistration | VAT Registration No. | |||
| Country | Venue: Ctry/Reg | |||
| AmountInReportingCurrency | NC Basis | |||
| ReportingCurrency | Currency | |||
| ReportingCountry | Reporting C/R | |||
| TaxReturnCountry | Reporting C/R | |||
| ReportingDate | Date | |||
| TaxBaseAmountInCoCodeCrcy | LC Base Amt | |||
| CompanyCodeCurrency | Local Currency | |||
| TaxBaseAmountInCountryCrcy | NC Basis | |||
| CountryCurrency | Currency | |||
| PostingDate | Posting Date | |||
| DocumentDate | Journal Entry Date | |||
| TaxReportingDate | Tax Reporting Date | |||
| EUTaxClassification | EU Code/Code | |||
| TaxType | Tax Type | |||
| CAReversedDocumentNumber | CAReversedDocumentNumber | Rev. Doc. For | ||
| CAReversalDocumentNumber | _CADocument | CAReversalDocumentNumber | Revers.document | |
| TaxBaseAmountInTransCrcy | ||||
| IsOneTimeAccount | ||||
| TaxItemGroup | ||||
| TaxJurisdiction | ||||
| IsEUTriangularDeal | ||||
| DelivOfGoodsDestCountry | ||||
| DelivOfGoodsOriginCountry | ||||
| DocumentCurrency | ||||
| AccountingDocument | ||||
| TransactionTypeDetermination | ||||
| TaxItem | ||||
| StatryRptCategory | ||||
| StatryRptRunID | ||||
| StatryRptgEntity | ||||
| ReferenceDocumentType | ||||
| CAReferenceDocument | CAReferenceDocument | Reference | ||
| _CompCode | _CompanyCode | |||
| _BusinessPartner | _BusinessPartner |
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_CAStRpECSalesListEntry.
-- 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: PCASRECSLENTRY
CREATE VIEW P_CAStRpECSalesListEntry AS
SELECT
CompanyCode,
CARptgDateTypeForECSalesList,
ECSalesListReportingDate,
BusinessPartner,
cast( CADocumentNumber as opbel_ca_kk preserving type ) AS CADocument,
CASqncNumberForECSalesList,
_CADocument.CAReconciliationKey AS CAReconciliationKey,
_CompanyCode.FiscalYearVariant AS FiscalYearVariant,
cast(_BusinessPartner.BusinessPartnerName as bp_name_ca preserving type ) AS BusinessPartnerName,
cast(_CompanyCode.TaxableEntity as umkrs ) AS TaxableEntity,
_BusinessPartner.AuthorizationGroup AS AuthorizationGroup,
cast(TaxCode as mwskz preserving type ) AS TaxCode,
cast(BusinessPartner as fis_kunnr preserving type ) AS Debtor,
cast(_BusinessPartner.BusinessPartnerName as md_customer_name ) AS CustomerName,
cast(BusinessPartner as fis_lifnr preserving type ) AS Creditor,
cast(_BusinessPartner.BusinessPartnerName as md_supplier_name ) AS SupplierName,
cast(VATRegistration as stceg preserving type ) AS VATRegistration,
cast(Country as land1 preserving type ) AS Country,
cast(CATaxBaseAmtInCountryCrcy as glo_amount_rptg_crcy ) AS AmountInReportingCurrency,
cast(CountryCurrency as glo_reporting_currency preserving type ) AS ReportingCurrency,
cast(TaxReturnCountry as glo_country preserving type ) AS ReportingCountry,
cast(TaxReturnCountry as land1_stml preserving type ) AS TaxReturnCountry,
cast(ECSalesListReportingDate as glo_reporting_date preserving type ) AS ReportingDate,
cast(CATaxBaseAmtInCoCodeCrcy as hwbas ) AS TaxBaseAmountInCoCodeCrcy,
cast(CompanyCodeCurrency as fis_hwaer preserving type ) AS CompanyCodeCurrency,
cast(CATaxBaseAmtInCountryCrcy as glo_cntry_base ) AS TaxBaseAmountInCountryCrcy,
cast(CountryCurrency as waers_005 preserving type ) AS CountryCurrency,
cast(CAPostingDate as fis_budat preserving type ) AS PostingDate,
cast(DocumentDate as fis_bldat preserving type ) AS DocumentDate,
cast(TaxReportingDate as vatdate preserving type ) AS TaxReportingDate,
cast(EUTaxClassification as egrkz preserving type ) AS EUTaxClassification,
cast(TaxType as mwart preserving type ) AS TaxType,
CAReversedDocumentNumber,
_CADocument.CAReversalDocumentNumber AS CAReversalDocumentNumber,
cast(0 as fwbas ) AS TaxBaseAmountInTransCrcy,
cast('' as xcpdk preserving type ) AS IsOneTimeAccount,
cast('' as txgrp ) AS TaxItemGroup,
cast('' as txjcd ) AS TaxJurisdiction,
cast('' as xegdr preserving type ) AS IsEUTriangularDeal,
cast('' as egbld ) AS DelivOfGoodsDestCountry,
cast('' as eglld ) AS DelivOfGoodsOriginCountry,
cast('' as waers ) AS DocumentCurrency,
cast('' as belnr_d ) AS AccountingDocument,
cast('' as ktosl ) AS TransactionTypeDetermination,
cast('' as taxitem ) AS TaxItem,
cast('' as srf_rep_cat_id ) AS StatryRptCategory,
cast('' as srf_report_run_id ) AS StatryRptRunID,
cast('' as srf_reporting_entity ) AS StatryRptgEntity,
cast('' as fis_awtyp ) AS ReferenceDocumentType,
CAReferenceDocument
FROM I_CAStRpECSalesListDoc
;
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