P_CO_DIANFrmt1001JrnlEntrItem3
Format 1001 - JE Item with BP Details
P_CO_DIANFrmt1001JrnlEntrItem3 is a Consumption CDS View that provides data about "Format 1001 - JE Item with BP Details" in SAP S/4HANA. It reads from 1 data source (P_CO_DIANFrmt1001JrnlEntrItem2) and exposes 67 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CO_DIANReportFormat, CO_DIANReportItemType. It has 4 associations to related views. Part of development package GLO_FIN_IS_CO_FORMAT_1001.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CO_DIANFrmt1001JrnlEntrItem2 | P_CO_DIANFrmt1001JrnlEntrItem2 | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CO_DIANTaxNumberTypeMapping | _DIANTaxNumberTypeMapping | _DIANTaxNumberTypeMapping.TaxNumberType = $projection.TaxNumberType |
| [0..1] | I_CO_DIANCountryMapping | _CO_DIANCountryMapping | _CO_DIANCountryMapping.Country = $projection.BusinessPartnerCountry |
| [0..1] | I_CO_DIANCountryMapping | _CompanyCodeCountryMapping | _CompanyCodeCountryMapping.Country = $projection.CompanyCodeCountry |
| [0..1] | C_CO_DIANCityCode | _DIANCityCode | $projection.BusinessPartnerCountry = _DIANCityCode.Country and $projection.Region = _DIANCityCode.Region and $projection.CityName = _DIANCityCode.CityName |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PSRCO1001JITM3 | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Format 1001 - JE Item with BP Details | 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 (67)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptgEntity | DIANJournalEntryItem | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | DIANJournalEntryItem | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | DIANJournalEntryItem | StatryRptRunID | Report Run ID |
| KEY | CO_DIANReportFormat | DIANJournalEntryItem | CO_DIANReportFormat | Report Format |
| KEY | CO_DIANReportItemType | DIANJournalEntryItem | CO_DIANReportItemType | Item Type |
| KEY | Ledger | DIANJournalEntryItem | Ledger | Ledger |
| KEY | CompanyCode | DIANJournalEntryItem | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | DIANJournalEntryItem | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | DIANJournalEntryItem | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | DIANJournalEntryItem | AccountingDocumentItem | Posting View Item |
| ChartOfAccounts | DIANJournalEntryItem | ChartOfAccounts | Node Class | |
| GLAccount | DIANJournalEntryItem | GLAccount | General Ledger | |
| CountryChartOfAccounts | DIANJournalEntryItem | CountryChartOfAccounts | Chart of Accts | |
| AlternativeGLAccount | DIANJournalEntryItem | AlternativeGLAccount | Group Account | |
| PostingDate | DIANJournalEntryItem | PostingDate | Posting Date for GR | |
| FinancialAccountType | DIANJournalEntryItem | FinancialAccountType | Fin. Account Type | |
| PurchasingDocument | DIANJournalEntryItem | PurchasingDocument | Purchasing Document | |
| OneTimeAccountingDocument | DIANJournalEntryItem | OneTimeAccountingDocument | ||
| CO_DIANBPTaxLongNumber | DIANJournalEntryItem | CO_DIANBPTaxLongNumber | ||
| Reference1IDByBusinessPartner | DIANJournalEntryItem | Reference1IDByBusinessPartner | Reference Key 1 | |
| Reference3IDByBusinessPartner | DIANJournalEntryItem | Reference3IDByBusinessPartner | Reference Key 3 | |
| Supplier | DIANJournalEntryItem | Supplier | Supplier | |
| Customer | DIANJournalEntryItem | Customer | Sold-to Party | |
| AccountingDocumentType | DIANJournalEntryItem | AccountingDocumentType | Journal Entry Type | |
| BusinessPlace | DIANJournalEntryItem | BusinessPlace | Business place | |
| IsNaturalPerson | ||||
| BusinessPartnerCategory | ||||
| BusinessPartner | ||||
| BusinessPartnerCountry | ||||
| Region | ||||
| CityCode | ||||
| CityName | ||||
| StreetName | ||||
| CompanyCodeCountry | DIANJournalEntryItem | CompanyCodeCountry | Reporting Ctry/Reg. | |
| CO_DIANAmountClassificationGL | DIANJournalEntryItem | CO_DIANAmountClassificationGL | ||
| CO_DIANAmountClassificationVAT | DIANJournalEntryItem | CO_DIANAmountClassificationVAT | ||
| CO_DIANAmountClassfctnWhldg | DIANJournalEntryItem | CO_DIANAmountClassfctnWhldg | ||
| ReportingCurrency | DIANJournalEntryItem | ReportingCurrency | Currency | |
| DcblGLAcctPaytsAmtInRptgCrcy | DIANJournalEntryItem | DcblGLAcctPaytsAmtInRptgCrcy | ||
| NonDcblGLAcctPaytAmtInRptgCrcy | DIANJournalEntryItem | NonDcblGLAcctPaytAmtInRptgCrcy | ||
| DcblVATIncrdCostInRptgCrcy | DIANJournalEntryItem | DcblVATIncrdCostInRptgCrcy | ||
| NonDcblVATIncrdCostInRptgCrcy | DIANJournalEntryItem | NonDcblVATIncrdCostInRptgCrcy | ||
| WhldgTxIncAmtInRptgCurrency | DIANJournalEntryItem | WhldgTxIncAmtInRptgCurrency | ||
| TakenWhldgTaxIncAmtInRptgCrcy | DIANJournalEntryItem | TakenWhldgTaxIncAmtInRptgCrcy | ||
| WhldgTaxCommonVATAmtInRptgCrcy | DIANJournalEntryItem | WhldgTaxCommonVATAmtInRptgCrcy | ||
| TknWhldgSimpfdVATAmtInRptgCrcy | DIANJournalEntryItem | TknWhldgSimpfdVATAmtInRptgCrcy | ||
| WhldgTxForeignVATAmtInRptgCrcy | DIANJournalEntryItem | WhldgTxForeignVATAmtInRptgCrcy | ||
| CO_WhldgCREEAmtInRptgCurrency | DIANJournalEntryItem | CO_WhldgCREEAmtInRptgCurrency | ||
| CO_TknWhldgCREEAmtInRptgCrcy | DIANJournalEntryItem | CO_TknWhldgCREEAmtInRptgCrcy | ||
| _AccountingDocumentType | DIANJournalEntryItem | _AccountingDocumentType | ||
| _ChartOfAccounts | DIANJournalEntryItem | _ChartOfAccounts | ||
| _CompanyCode | DIANJournalEntryItem | _CompanyCode | ||
| _Country | DIANJournalEntryItem | _Country | ||
| _CountryChartOfAccounts | DIANJournalEntryItem | _CountryChartOfAccounts | ||
| _FinancialAccountType | DIANJournalEntryItem | _FinancialAccountType | ||
| _FiscalYear | DIANJournalEntryItem | _FiscalYear | ||
| _JournalEntry | DIANJournalEntryItem | _JournalEntry | ||
| _Ledger | DIANJournalEntryItem | _Ledger | ||
| _PurchasingDocument | DIANJournalEntryItem | _PurchasingDocument | ||
| _ReportingCurrency | DIANJournalEntryItem | _ReportingCurrency | ||
| _Customer | DIANJournalEntryItem | _Customer | ||
| _OneTimeAccountBP | DIANJournalEntryItem | _OneTimeAccountBP | ||
| _Supplier | DIANJournalEntryItem | _Supplier | ||
| _CompanyCodeCountryMapping | _CompanyCodeCountryMapping | |||
| _CO_DIANCountryMapping | _CO_DIANCountryMapping | |||
| _DIANTaxNumberTypeMapping | _DIANTaxNumberTypeMapping | |||
| _DIANCityCode | _DIANCityCode |
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_DIANFrmt1001JrnlEntrItem3.
-- 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_DIANFrmt1001JrnlEntrItem3 AS
SELECT
DIANJournalEntryItem.StatryRptgEntity AS StatryRptgEntity,
DIANJournalEntryItem.StatryRptCategory AS StatryRptCategory,
DIANJournalEntryItem.StatryRptRunID AS StatryRptRunID,
DIANJournalEntryItem.CO_DIANReportFormat AS CO_DIANReportFormat,
DIANJournalEntryItem.CO_DIANReportItemType AS CO_DIANReportItemType,
DIANJournalEntryItem.Ledger AS Ledger,
DIANJournalEntryItem.CompanyCode AS CompanyCode,
DIANJournalEntryItem.FiscalYear AS FiscalYear,
DIANJournalEntryItem.AccountingDocument AS AccountingDocument,
DIANJournalEntryItem.AccountingDocumentItem AS AccountingDocumentItem,
DIANJournalEntryItem.ChartOfAccounts AS ChartOfAccounts,
DIANJournalEntryItem.GLAccount AS GLAccount,
DIANJournalEntryItem.CountryChartOfAccounts AS CountryChartOfAccounts,
DIANJournalEntryItem.AlternativeGLAccount AS AlternativeGLAccount,
DIANJournalEntryItem.PostingDate AS PostingDate,
DIANJournalEntryItem.FinancialAccountType AS FinancialAccountType,
DIANJournalEntryItem.PurchasingDocument AS PurchasingDocument,
DIANJournalEntryItem.OneTimeAccountingDocument AS OneTimeAccountingDocument,
DIANJournalEntryItem.CO_DIANBPTaxLongNumber AS CO_DIANBPTaxLongNumber,
DIANJournalEntryItem.Reference1IDByBusinessPartner AS Reference1IDByBusinessPartner,
DIANJournalEntryItem.Reference3IDByBusinessPartner AS Reference3IDByBusinessPartner,
DIANJournalEntryItem.Supplier AS Supplier,
DIANJournalEntryItem.Customer AS Customer,
DIANJournalEntryItem.AccountingDocumentType AS AccountingDocumentType,
DIANJournalEntryItem.BusinessPlace AS BusinessPlace,
cast( coalesce(coalesce(_OneTimeAccountBP.IsNaturalPerson , _Supplier.IsNaturalPerson), _Customer.NFPartnerIsNaturalPerson ) as stkzn preserving type ) AS IsNaturalPerson,
cast( coalesce( _Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartnerCategory, _Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartnerCategory ) as bu_type preserving type ) AS BusinessPartnerCategory,
cast( coalesce( _Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartner, _Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartner ) as bu_partner preserving type ) AS BusinessPartner,
cast( coalesce(coalesce(_OneTimeAccountBP.Country,_Supplier._AddressRepresentation.Country), _Customer._AddressRepresentation.Country ) as land1 preserving type ) AS BusinessPartnerCountry,
cast( coalesce(coalesce(_OneTimeAccountBP.Region,_Supplier._AddressRepresentation.Region), _Customer._AddressRepresentation.Region ) as regio preserving type ) AS Region,
cast( coalesce(coalesce(_OneTimeAccountBP._Address.CityCode,_Supplier._AddressRepresentation.CityNumber), _Customer._AddressRepresentation.CityNumber) as ad_citynum preserving type ) AS CityCode,
cast( coalesce(coalesce(_OneTimeAccountBP.CityName,_Supplier._AddressRepresentation.CityName), _Customer._AddressRepresentation.CityName ) as ad_city1 preserving type ) AS CityName,
cast( coalesce(coalesce(_OneTimeAccountBP.StreetAddressName,_Supplier._AddressRepresentation.StreetName), _Customer._AddressRepresentation.StreetName ) as ad_street preserving type ) AS StreetName,
DIANJournalEntryItem.CompanyCodeCountry AS CompanyCodeCountry,
DIANJournalEntryItem.CO_DIANAmountClassificationGL AS CO_DIANAmountClassificationGL,
DIANJournalEntryItem.CO_DIANAmountClassificationVAT AS CO_DIANAmountClassificationVAT,
DIANJournalEntryItem.CO_DIANAmountClassfctnWhldg AS CO_DIANAmountClassfctnWhldg,
DIANJournalEntryItem.ReportingCurrency AS ReportingCurrency,
DIANJournalEntryItem.DcblGLAcctPaytsAmtInRptgCrcy AS DcblGLAcctPaytsAmtInRptgCrcy,
DIANJournalEntryItem.NonDcblGLAcctPaytAmtInRptgCrcy AS NonDcblGLAcctPaytAmtInRptgCrcy,
DIANJournalEntryItem.DcblVATIncrdCostInRptgCrcy AS DcblVATIncrdCostInRptgCrcy,
DIANJournalEntryItem.NonDcblVATIncrdCostInRptgCrcy AS NonDcblVATIncrdCostInRptgCrcy,
DIANJournalEntryItem.WhldgTxIncAmtInRptgCurrency AS WhldgTxIncAmtInRptgCurrency,
DIANJournalEntryItem.TakenWhldgTaxIncAmtInRptgCrcy AS TakenWhldgTaxIncAmtInRptgCrcy,
DIANJournalEntryItem.WhldgTaxCommonVATAmtInRptgCrcy AS WhldgTaxCommonVATAmtInRptgCrcy,
DIANJournalEntryItem.TknWhldgSimpfdVATAmtInRptgCrcy AS TknWhldgSimpfdVATAmtInRptgCrcy,
DIANJournalEntryItem.WhldgTxForeignVATAmtInRptgCrcy AS WhldgTxForeignVATAmtInRptgCrcy,
DIANJournalEntryItem.CO_WhldgCREEAmtInRptgCurrency AS CO_WhldgCREEAmtInRptgCurrency,
DIANJournalEntryItem.CO_TknWhldgCREEAmtInRptgCrcy AS CO_TknWhldgCREEAmtInRptgCrcy,
DIANJournalEntryItem._AccountingDocumentType AS _AccountingDocumentType,
DIANJournalEntryItem._ChartOfAccounts AS _ChartOfAccounts,
DIANJournalEntryItem._CompanyCode AS _CompanyCode,
DIANJournalEntryItem._Country AS _Country,
DIANJournalEntryItem._CountryChartOfAccounts AS _CountryChartOfAccounts,
DIANJournalEntryItem._FinancialAccountType AS _FinancialAccountType,
DIANJournalEntryItem._FiscalYear AS _FiscalYear,
DIANJournalEntryItem._JournalEntry AS _JournalEntry,
DIANJournalEntryItem._Ledger AS _Ledger,
DIANJournalEntryItem._PurchasingDocument AS _PurchasingDocument,
DIANJournalEntryItem._ReportingCurrency AS _ReportingCurrency,
DIANJournalEntryItem._Customer AS _Customer,
DIANJournalEntryItem._OneTimeAccountBP AS _OneTimeAccountBP,
DIANJournalEntryItem._Supplier AS _Supplier
FROM P_CO_DIANFrmt1001JrnlEntrItem2
LEFT OUTER JOIN I_CO_DIANTaxNumberTypeMapping AS _DIANTaxNumberTypeMapping ON _DIANTaxNumberTypeMapping.TaxNumberType = TaxNumberType -- association [0..1]
LEFT OUTER JOIN I_CO_DIANCountryMapping AS _CO_DIANCountryMapping ON _CO_DIANCountryMapping.Country = BusinessPartnerCountry -- association [0..1]
LEFT OUTER JOIN I_CO_DIANCountryMapping AS _CompanyCodeCountryMapping ON _CompanyCodeCountryMapping.Country = CompanyCodeCountry -- association [0..1]
LEFT OUTER JOIN C_CO_DIANCityCode AS _DIANCityCode ON BusinessPartnerCountry = _DIANCityCode.Country AND Region = _DIANCityCode.Region AND CityName = _DIANCityCode.CityName -- 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