P_CO_DIANStRpSuplrCustOpnItmLg

DDL: P_CO_DIANSTRPSUPLRCUSTOPNITMLG Type: view CONSUMPTION

P_CO_DIANStRpSuplrCustOpnItmLg is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_CO_DIANGeneralLedgerAccount, I_CO_DIANItemType) and exposes 11 fields with key fields CompanyCode, FiscalYear, AccountingDocument, CO_DIANReportFormat, CO_DIANReportItemType. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_CO_DIANGeneralLedgerAccount DIAN_GLAccount inner
I_CO_DIANItemType DIAN_ItemType inner

Parameters (4)

NameTypeDefault
P_Ledger fins_ledger
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_CO_DIANReportFormat ficodian_report_format

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Currency _ReportingCurrency _ReportingCurrency.Currency = $projection.ReportingCurrency

Annotations (12)

NameValueLevelField
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PSRCOSUPCUSTOPIL view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XL view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode OperationalView CompanyCode Receiver Company Code
KEY FiscalYear
KEY AccountingDocument OperationalView AccountingDocument Journal Entry
KEY CO_DIANReportFormat I_CO_DIANGeneralLedgerAccount CO_DIANReportFormat Report Format
KEY CO_DIANReportItemType I_CO_DIANGeneralLedgerAccount CO_DIANReportItemType Item Type
BusinessPlace OperationalView BusinessPlace Business place
ReportingCurrency
_CompanyCode OperationalView _CompanyCode
_FiscalYear OperationalView _FiscalYear
_JournalEntry OperationalView _JournalEntry
_ReportingCurrency _ReportingCurrency

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_DIANStRpSuplrCustOpnItmLg.
-- 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, P_CO_DIANReportFormat : ficodian_report_format

CREATE VIEW P_CO_DIANStRpSuplrCustOpnItmLg AS
SELECT
  OperationalView.CompanyCode AS CompanyCode,
  cast( OperationalView.FiscalYear as fis_gjahr_no_conv preserving type ) AS FiscalYear,
  OperationalView.AccountingDocument AS AccountingDocument,
  DIAN_GLAccount.CO_DIANReportFormat AS CO_DIANReportFormat,
  DIAN_GLAccount.CO_DIANReportItemType AS CO_DIANReportItemType,
  OperationalView.BusinessPlace AS BusinessPlace,
  cast( 'COP' as ficodian_reporting_currency ) AS ReportingCurrency,
  OperationalView._CompanyCode AS _CompanyCode,
  OperationalView._FiscalYear AS _FiscalYear,
  OperationalView._JournalEntry AS _JournalEntry
INNER JOIN I_CO_DIANGeneralLedgerAccount AS DIAN_GLAccount ON /* join condition not captured in parsed metadata */
INNER JOIN I_CO_DIANItemType AS DIAN_ItemType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON _ReportingCurrency.Currency = ReportingCurrency  -- association [0..1]
;