P_CO_DIANFrmt1001JrnlEntrItem2

DDL: P_CO_DIANFRMT1001JRNLENTRITEM2 Type: view_entity CONSUMPTION Package: GLO_FIN_IS_CO_FORMAT_1001

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)

SourceAliasJoin Type
P_CO_DIANFrmt1001JrnlEntryItem P_CO_DIANFrmt1001JrnlEntryItem from

Parameters (3)

NameTypeDefault
P_Ledger fins_ledger
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (8)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;