P_CO_DIANGeneralLedgerAccount

DDL: P_CO_DIANGENERALLEDGERACCOUNT Type: view CONSUMPTION Package: GLO_FIN_IS_CO_CUST

DIAN General Ledger Account

P_CO_DIANGeneralLedgerAccount is a Consumption CDS View that provides data about "DIAN General Ledger Account" in SAP S/4HANA. It reads from 2 data sources (I_CO_DIANGeneralLedgerAccount, P_CO_DIANItemType) and exposes 9 fields with key fields CO_DIANReportFormat, CO_DIANReportItemType, CompanyCode, AccountingDocumentType, ValidityStartDate. Part of development package GLO_FIN_IS_CO_CUST.

Data Sources (2)

SourceAliasJoin Type
I_CO_DIANGeneralLedgerAccount DIANGLAccount from
P_CO_DIANItemType P_CO_DIANItemType inner

Parameters (3)

NameTypeDefault
P_CO_DIANReportFormat ficodian_report_format
P_ValidityStartDate fis_budat_from
P_ValidityEndDate fis_budat_to

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCODIANGLACCT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CO_DIANReportFormat I_CO_DIANGeneralLedgerAccount CO_DIANReportFormat Report Format
KEY CO_DIANReportItemType I_CO_DIANGeneralLedgerAccount CO_DIANReportItemType Item Type
KEY CompanyCode DIANItemType CompanyCode Receiver Company Code
KEY AccountingDocumentType DIANItemType AccountingDocumentType Journal Entry Type
KEY ValidityStartDate I_CO_DIANGeneralLedgerAccount ValidityStartDate Validity Start Date
KEY LowerBoundaryAccount I_CO_DIANGeneralLedgerAccount LowerBoundaryAccount GL Account
ValidityEndDate I_CO_DIANGeneralLedgerAccount ValidityEndDate ValidTo
UpperBoundaryAccount I_CO_DIANGeneralLedgerAccount UpperBoundaryAccount GL To
CO_DIANAmountClassification I_CO_DIANGeneralLedgerAccount CO_DIANAmountClassification Amount Classif.

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_DIANGeneralLedgerAccount.
-- 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_CO_DIANReportFormat : ficodian_report_format, P_ValidityStartDate : fis_budat_from, P_ValidityEndDate : fis_budat_to

CREATE VIEW P_CO_DIANGeneralLedgerAccount AS
SELECT
  DIANGLAccount.CO_DIANReportFormat AS CO_DIANReportFormat,
  DIANGLAccount.CO_DIANReportItemType AS CO_DIANReportItemType,
  DIANItemType.CompanyCode AS CompanyCode,
  DIANItemType.AccountingDocumentType AS AccountingDocumentType,
  DIANGLAccount.ValidityStartDate AS ValidityStartDate,
  DIANGLAccount.LowerBoundaryAccount AS LowerBoundaryAccount,
  DIANGLAccount.ValidityEndDate AS ValidityEndDate,
  DIANGLAccount.UpperBoundaryAccount AS UpperBoundaryAccount,
  DIANGLAccount.CO_DIANAmountClassification AS CO_DIANAmountClassification
FROM I_CO_DIANGeneralLedgerAccount AS DIANGLAccount
INNER JOIN P_CO_DIANItemType ON /* join condition not captured in parsed metadata */
;