P_ValnHistForDocs

DDL: P_VALNHISTFORDOCS SQL: PVALNHISTFORDOCS Type: view CONSUMPTION Package: GLO_FIN_IS_RU

Valuation History For Documents

P_ValnHistForDocs is a Consumption CDS View that provides data about "Valuation History For Documents" in SAP S/4HANA. It reads from 1 data source (fagl_bsbw_histry) and exposes 9 fields. Part of development package GLO_FIN_IS_RU.

Data Sources (1)

SourceAliasJoin Type
fagl_bsbw_histry fagl_bsbw_histry from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PVALNHISTFORDOCS view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (9)

KeyFieldSource TableSource FieldDescription
CompanyCode bukrs Value
AccountingDocument belnr SD Document
FiscalYear gjahr Settlement Year
AccountingDocumentItem buzei Posting View Item
ControllingAreaCurrencyRole curtp Valuation Area
ActiveValuationArea bwber Valuation Area
EvaluationKeyDate datum Valid to
ValuationDiffAmtInCoCodeCrcy bwshb Valuation Diff.
reverse_id reverse_id Reversal Run ID

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_ValnHistForDocs.
-- 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.
-- SQL view name: PVALNHISTFORDOCS

CREATE VIEW P_ValnHistForDocs AS
SELECT
  bukrs AS CompanyCode,
  belnr AS AccountingDocument,
  gjahr AS FiscalYear,
  buzei AS AccountingDocumentItem,
  curtp AS ControllingAreaCurrencyRole,
  bwber AS ActiveValuationArea,
  datum AS EvaluationKeyDate,
  bwshb AS ValuationDiffAmtInCoCodeCrcy,
  reverse_id
FROM fagl_bsbw_histry
;