P_GR_CADocumentLineItemsLog

DDL: P_GR_CADOCUMENTLINEITEMSLOG Type: view_entity COMPOSITE

P_GR_CADocumentLineItemsLog is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_CADocumentBPItem, I_CADocumentBPItem, I_FiscCalendarDateForCompCode, I_FiscCalendarDateForCompCode, P_GR_LogPrevPeriodItems) and exposes 32 fields with key fields CADocumentNumber, CARepetitionItemNumber, CABPItemNumber, CASubItemNumber, CARepetitionItemNumber.

Data Sources (5)

SourceAliasJoin Type
I_CADocumentBPItem DOC from
I_CADocumentBPItem DOC union
I_FiscCalendarDateForCompCode FC inner
I_FiscCalendarDateForCompCode FC inner
P_GR_LogPrevPeriodItems P_GR_LogPrevPeriodItems union

Parameters (2)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (7)

NameValueLevelField
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber I_CADocumentBPItem CADocumentNumber Document Number
KEY CARepetitionItemNumber I_CADocumentBPItem CARepetitionItemNumber Repetition Item
KEY CABPItemNumber I_CADocumentBPItem CABPItemNumber Item
KEY CASubItemNumber I_CADocumentBPItem CASubItemNumber Subitem
BusinessPartner I_CADocumentBPItem BusinessPartner Issuing Authority
ContractAccount I_CADocumentBPItem ContractAccount Contract Acct
CompanyCode I_CADocumentBPItem CompanyCode Receiver Company Code
CAPostingDate I_CADocumentBPItem CAPostingDate Clrg Post. Date
CAClearingDate I_CADocumentBPItem CAClearingDate Clearing
CAReferenceDocument I_CADocumentBPItem CAReferenceDocument Reference
DocumentDate I_CADocumentBPItem DocumentDate Journal Entry Date
KEY CARepetitionItemNumber I_CADocumentBPItem CARepetitionItemNumber Repetition Item
KEY CABPItemNumber I_CADocumentBPItem CABPItemNumber Item
KEY CASubItemNumber I_CADocumentBPItem CASubItemNumber Subitem
BusinessPartner I_CADocumentBPItem BusinessPartner Issuing Authority
ContractAccount I_CADocumentBPItem ContractAccount Contract Acct
CompanyCode I_CADocumentBPItem CompanyCode Receiver Company Code
CAPostingDate I_CADocumentBPItem CAPostingDateOfClearingDoc Clrg Post. Date
CAClearingDate I_CADocumentBPItem CAClearingDate Clearing
CAReferenceDocument I_CADocumentBPItem CAReferenceDocument Reference
DocumentDate I_CADocumentBPItem CAPostingDateOfClearingDoc Journal Entry Date
KEY CARepetitionItemNumber CARepetitionItemNumber Repetition Item
KEY CABPItemNumber CABPItemNumber Item
KEY CASubItemNumber CASubItemNumber Subitem
BusinessPartner BusinessPartner Issuing Authority
ContractAccount ContractAccount Contract Acct
CompanyCode CompanyCode Receiver Company Code
CAPostingDate Clrg Post. Date
CAClearingDate Clearing
CAReferenceDocument CAReferenceDocument Reference
DocumentDate DocumentDate Journal Entry Date
CADocumentType CADocumentType Document Type

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_GR_CADocumentLineItemsLog.
-- 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_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to

CREATE VIEW P_GR_CADocumentLineItemsLog AS
SELECT
  DOC.CADocumentNumber AS CADocumentNumber,
  DOC.CARepetitionItemNumber AS CARepetitionItemNumber,
  DOC.CABPItemNumber AS CABPItemNumber,
  DOC.CASubItemNumber AS CASubItemNumber,
  DOC.BusinessPartner AS BusinessPartner,
  DOC.ContractAccount AS ContractAccount,
  DOC.CompanyCode AS CompanyCode,
  DOC.CAPostingDate AS CAPostingDate,
  DOC.CAClearingDate AS CAClearingDate,
  DOC.CAReferenceDocument AS CAReferenceDocument,
  DOC.DocumentDate AS DocumentDate,
  CADocumentType
FROM I_CADocumentBPItem AS DOC
INNER JOIN I_FiscCalendarDateForCompCode AS FC ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_CADocumentBPItem, P_GR_LogPrevPeriodItems
;