P_CO_DIANFrmt1001JrnlEntrItem2
Format 1001 - JE Item with BP Details
P_CO_DIANFrmt1001JrnlEntrItem2 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_DIANFrmt1001JrnlEntryItem) and exposes 56 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CO_DIANReportFormat, CO_DIANReportItemType. Part of development package GLO_FIN_IS_CO_FORMAT_1001.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CO_DIANFrmt1001JrnlEntryItem | P_CO_DIANFrmt1001JrnlEntryItem | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.entityBuffer.definitionAllowed | false | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | 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 (56)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | Ledger | Ledger | Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| VatTaxCode | VatTaxCode | Tax Code | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| GLAccount | GLAccount | General Ledger | ||
| CountryChartOfAccounts | CountryChartOfAccounts | Chart of Accts | ||
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| OneTimeAccountingDocument | OneTimeAccountingDocument | |||
| CO_DIANBPTaxLongNumber | CO_DIANBPTaxLongNumber | |||
| Reference1IDByBusinessPartner | Reference1IDByBusinessPartner | Reference Key 1 | ||
| Reference3IDByBusinessPartner | Reference3IDByBusinessPartner | Reference Key 3 | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| CompanyCodeCountry | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| BusinessPlace | BusinessPlace | Business place | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| CO_DIANAmountClassificationGL | CO_DIANAmountClassificationGL | |||
| CO_DIANAmountClassificationVAT | CO_DIANAmountClassificationVAT | |||
| CO_DIANAmountClassfctnWhldg | CO_DIANAmountClassfctnWhldg | |||
| ReportingCurrency | ReportingCurrency | Currency | ||
| DcblGLAcctPaytsAmtInRptgCrcy | ||||
| NonDcblGLAcctPaytAmtInRptgCrcy | ||||
| DcblVATIncrdCostInRptgCrcy | ||||
| NonDcblVATIncrdCostInRptgCrcy | ||||
| WhldgTxIncAmtInRptgCurrency | ||||
| TakenWhldgTaxIncAmtInRptgCrcy | ||||
| WhldgTaxCommonVATAmtInRptgCrcy | ||||
| TknWhldgSimpfdVATAmtInRptgCrcy | ||||
| WhldgTxForeignVATAmtInRptgCrcy | ||||
| CO_WhldgCREEAmtInRptgCurrency | ||||
| CO_TknWhldgCREEAmtInRptgCrcy | ||||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _CompanyCode | _CompanyCode | |||
| _Country | _Country | |||
| _CountryChartOfAccounts | _CountryChartOfAccounts | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _FiscalYear | _FiscalYear | |||
| _JournalEntry | _JournalEntry | |||
| _Ledger | _Ledger | |||
| _PurchasingDocument | _PurchasingDocument | |||
| _ReportingCurrency | _ReportingCurrency | |||
| _Customer | _Customer | |||
| _OneTimeAccountBP | _OneTimeAccountBP | |||
| _Supplier | _Supplier |
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_DIANFrmt1001JrnlEntrItem2.
-- 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_DIANFrmt1001JrnlEntrItem2 AS
SELECT
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
CO_DIANReportFormat,
CO_DIANReportItemType,
Ledger,
CompanyCode,
FiscalYear,
AccountingDocument,
AccountingDocumentItem,
VatTaxCode,
ChartOfAccounts,
GLAccount,
CountryChartOfAccounts,
AlternativeGLAccount,
PostingDate,
FinancialAccountType,
PurchasingDocument,
OneTimeAccountingDocument,
CO_DIANBPTaxLongNumber,
Reference1IDByBusinessPartner,
Reference3IDByBusinessPartner,
Supplier,
Customer,
CompanyCodeCountry,
BusinessPlace,
AccountingDocumentType,
CO_DIANAmountClassificationGL,
CO_DIANAmountClassificationVAT,
CO_DIANAmountClassfctnWhldg,
ReportingCurrency,
cast (case when CO_DIANAmountClassificationGL = 'PAGO' then TaxBaseAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_paymcred_dcblgl preserving type ) AS DcblGLAcctPaytsAmtInRptgCrcy,
cast (case when CO_DIANAmountClassificationGL = 'PNDED' then TaxBaseAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_paymcred_nondcblgl preserving type ) AS NonDcblGLAcctPaytAmtInRptgCrcy,
cast (case when CO_DIANAmountClassificationVAT = 'IDED' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_incrdcost_dcblvat preserving type ) AS DcblVATIncrdCostInRptgCrcy,
cast (case when CO_DIANAmountClassificationVAT = 'INDED' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_incrdcost_nondcblvat preserving type ) AS NonDcblVATIncrdCostInRptgCrcy,
cast (case when CO_DIANAmountClassfctnWhldg = 'RETP' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_prac_whldg_income preserving type ) AS WhldgTxIncAmtInRptgCurrency,
cast (case when CO_DIANAmountClassfctnWhldg = 'RETA' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_taken_whldg_income preserving type ) AS TakenWhldgTaxIncAmtInRptgCrcy,
cast (case when CO_DIANAmountClassfctnWhldg = 'COMUN' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_whldg_common_vat preserving type ) AS WhldgTaxCommonVATAmtInRptgCrcy,
cast (case when CO_DIANAmountClassfctnWhldg = 'SIMP' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_tkn_whldg_spfd_vat preserving type ) AS TknWhldgSimpfdVATAmtInRptgCrcy,
cast (case when CO_DIANAmountClassfctnWhldg = 'NDOM' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_prac_wht_foreign_vat preserving type ) AS WhldgTxForeignVATAmtInRptgCrcy,
cast (case when CO_DIANAmountClassfctnWhldg = 'RCREE' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_prac_wht_cree preserving type ) AS CO_WhldgCREEAmtInRptgCurrency,
cast (case when CO_DIANAmountClassfctnWhldg = 'RASUM' then TaxAmount else cast( 0 as abap.curr( 23, 2 ) ) end as ficodian_tkn_wht_cree preserving type ) AS CO_TknWhldgCREEAmtInRptgCrcy
FROM P_CO_DIANFrmt1001JrnlEntryItem
;
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