P_RO_SAFTCActgSIHeader1

DDL: P_RO_SAFTCACTGSIHEADER1 Type: view_entity CONSUMPTION

P_RO_SAFTCActgSIHeader1 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_RO_SAFTCActgJournalItemBase) and exposes 9 fields with key fields CompanyCode, CASrcDocumentCat, CASrcDocumentType, CASrcDocumentNumber.

Data Sources (1)

SourceAliasJoin Type
P_RO_SAFTCActgJournalItemBase P_RO_SAFTCActgJournalItemBase from

Parameters (1)

NameTypeDefault
P_AlternativeGLAccountIsUsed saft_ro_alt_gl_account_flag

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED 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 #CONSUMPTION view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode Item CompanyCode Receiver Company Code
KEY CASrcDocumentCat Item CASrcDocumentCat
KEY CASrcDocumentType Item CASrcDocumentType
KEY CASrcDocumentNumber Item CASrcDocumentNumber
CASrcTransactionCurrency Item TransactionCurrency Transaction Currency
ItemNumber
BusinessPartner
ActiveGLAccount
CASrcAmountInTransactionCurr

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_RO_SAFTCActgSIHeader1.
-- 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_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag

CREATE VIEW P_RO_SAFTCActgSIHeader1 AS
SELECT
  Item.CompanyCode AS CompanyCode,
  Item.CASrcDocumentCat AS CASrcDocumentCat,
  Item.CASrcDocumentType AS CASrcDocumentType,
  Item.CASrcDocumentNumber AS CASrcDocumentNumber,
  Item.TransactionCurrency AS CASrcTransactionCurrency,
  max(Item.ItemNumber) AS ItemNumber,
  max(Item.BusinessPartner) AS BusinessPartner,
  max(Item.ActiveGLAccount) AS ActiveGLAccount,
  sum(AmountInTransactionCurrency) AS CASrcAmountInTransactionCurr
FROM P_RO_SAFTCActgJournalItemBase
;