C_SrcgProjTotalTargetAmt

DDL: C_SRCGPROJTOTALTARGETAMT SQL: CSRCTOTTARAM Type: view CONSUMPTION Package: ODATA_MM_PUR_PROD_SRCG_OVP

Sourcing Project Total Target Amount

C_SrcgProjTotalTargetAmt is a Consumption CDS View that provides data about "Sourcing Project Total Target Amount" in SAP S/4HANA. It reads from 1 data source (P_SrcgProjTotalTargetAmtCC) and exposes 21 fields. It has 6 associations to related views. It is exposed through 1 OData service (UI_PRODUCT_SOURCING_OVWP). Part of development package ODATA_MM_PUR_PROD_SRCG_OVP.

Data Sources (1)

SourceAliasJoin Type
P_SrcgProjTotalTargetAmtCC P_SrcgProjTotalTargetAmtCC from

Parameters (4)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate vdm_srcgprojcreationdate
P_EndDate vdm_srcgprojcreationdate
P_DateFunction datefunctionid

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[1..1] I_CalendarDate _Calendar $projection.CreationDate = _Calendar.CalendarDate
[1..1] I_SourcingProjectType _SourcingProjectType $projection.SourcingProjectType = _SourcingProjectType.SourcingProjectType

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CSRCTOTTARAM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Sourcing Project Total Target Amount view

OData Services (1)

ServiceBindingVersionContractRelease
UI_PRODUCT_SOURCING_OVWP UI_PRODUCT_SOURCING V2 C1 NOT_RELEASED

Fields (21)

KeyFieldSource TableSource FieldDescription
resultElementDateFunctionStartDateTime
resultElementDateFunctionEndDateTime
P_DisplayCurrency
P_StartDate
DisplayCurrency
CreationDate CreationDate Time Stamp
CalendarYear _Calendar CalendarYear Year
CalendarQuarter _Calendar CalendarQuarter Calendar Quarter
CalendarMonth _Calendar CalendarMonth Calendar Month
CalendarWeek _Calendar CalendarWeek Calendar Week
SrcgProjTotTgtAmountInDspCrcy SrcgProjTotTgtAmountInDspCrcy Total Target Amount
MaterialGroup MaterialGroup Product Group
MaterialGroupName
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
SourcingProjectType SourcingProjectType Sourcing Project Type
SourcingProjectTypeText
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CompanyCode CompanyCodeName Company Name

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 C_SrcgProjTotalTargetAmt.
-- 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: CSRCTOTTARAM
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : vdm_srcgprojcreationdate, P_EndDate : vdm_srcgprojcreationdate, P_DateFunction : datefunctionid

CREATE VIEW C_SrcgProjTotalTargetAmt AS
SELECT
  resultElement: 'DateFunctionStartDateTime' AS resultElementDateFunctionStartDateTime,
  resultElement: 'DateFunctionEndDateTime' AS resultElementDateFunctionEndDateTime,
  binding: [ { targetParameter: 'P_DateFunction', type: #PARAMETER, value : 'P_DateFunction' AS P_DisplayCurrency,
  P_StartDate: $parameters.P_StartDate AS P_StartDate,
  cast( :P_DisplayCurrency as displaycurrency) AS DisplayCurrency,
  CreationDate,
  _Calendar.CalendarYear AS CalendarYear,
  _Calendar.CalendarQuarter AS CalendarQuarter,
  _Calendar.CalendarMonth AS CalendarMonth,
  _Calendar.CalendarWeek AS CalendarWeek,
  SrcgProjTotTgtAmountInDspCrcy,
  MaterialGroup,
  _MaterialGroup._Text[1: Language = $session.system_language].MaterialGroupName AS MaterialGroupName,
  PurchasingOrganization,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  PurchasingGroup,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  SourcingProjectType,
  _SourcingProjectType._SourcingProjectTypeText[1: Language = $session.system_language].SourcingProjectTypeText AS SourcingProjectTypeText,
  CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName
FROM P_SrcgProjTotalTargetAmtCC
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _Calendar ON CreationDate = _Calendar.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_SourcingProjectType AS _SourcingProjectType ON SourcingProjectType = _SourcingProjectType.SourcingProjectType  -- association [1..1]
;