I_RawExposure

DDL: I_RAWEXPOSURE Type: view BASIC

Raw Exposures

I_RawExposure is a Basic CDS View that provides data about "Raw Exposures" in SAP S/4HANA. It reads from 3 data sources (text_rawexpos, I_RawExposureItem, I_SubRawExposure) and exposes 57 fields with key fields RawExposureUUID, RawExposureItemID, RawExposureSubItemID. It has 3 associations to related views.

Data Sources (3)

SourceAliasJoin Type
text_rawexpos a from
I_RawExposureItem b inner
I_SubRawExposure c inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_CompanyCode _OnBehalfOfCompany _OnBehalfOfCompany.CompanyCode = $projection.OnBehalfOfCompany
[0..1] I_TreasuryPortfolio _TreasuryPortfolio _TreasuryPortfolio.Portfolio = $projection.Portfolio and _TreasuryPortfolio.CompanyCode = $projection.CompanyCode

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IRAWEXP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view
VDM.private false view
EndUserText.label Raw Exposures view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY RawExposureUUID text_rawexpos os_guid Lot
KEY RawExposureItemID I_RawExposureItem RawExposureItemID Simulation Item ID
KEY RawExposureSubItemID I_SubRawExposure RawExposureSubItemID Sub Raw Exposure ID
RawExposureID text_rawexpos exposure_id Raw Exposure ID
RawExposureValidFromDate text_rawexpos relevance_date Valid From
RawExposureVersion text_rawexpos version XML Vers.
RawExpLastRelevantVersion text_rawexpos last_rel_version Version
CompanyCode text_rawexpos company_code Company Code
RawExposureActivityType text_rawexpos exp_flow_type Exp. Activity Type
ExpsrMgmtFreeDefinedHeaderDate text_rawexpos attribute_dh01 Free Attr. (Date)
ExpsrMgmtFreeDfndHeaderAttrib1 text_rawexpos attribute_sh01 Value of Free Attr.
ExpsrMgmtFreeDfndHeaderAttrib2 text_rawexpos attribute_sh02 Value of Free Attr.
ExpsrMgmtFreeDfndHeaderAttrib3 text_rawexpos attribute_lh01 Free Attr. (Char20)
Country text_rawexpos country Venue: Ctry/Reg
RawExposureOrigin text_rawexpos exposure_origin Exposure Origin
OriginSystem text_rawexpos log_system Logical system
RawExposureExternalDocNumber text_rawexpos ext_doc_no Ext. Doc. No.
RawExposureReleaseState text_rawexpos release_state Release Status
RawExposureCreationDate text_rawexpos creation_date Time Stamp
CreationTransactionCode text_rawexpos creation_tcode Transaction Code
RawExposureCreationTime text_rawexpos creation_time Time Stamp
CreatedByUser text_rawexpos creation_user User
LastChangeDate text_rawexpos lastchange_date Last Edited On
ChangeTransactionCode text_rawexpos lastchange_tcode Transaction Code
RawExposureChangeTime text_rawexpos lastchange_time Last Edited At
LastChangedByUser text_rawexpos lastchange_user Last Changed By
RawExposureOriginDateTime text_rawexpos origin_tstmp Origin Timestamp
RawExposureItemExtItemID I_RawExposureItem RawExposureItemExtItemID External Item ID
ExposureDueDate I_RawExposureItem ExposureDueDate Net Due Date
ExpsrAmountInExposureCurrency I_SubRawExposure ExpsrAmountInExposureCurrency Exposure Amount
ExposureCurrency I_SubRawExposure ExposureCurrency Exposure Amt Crcy
TargetCurrency I_SubRawExposure TargetCurrency Target Currency
ExpsrMgmtPaymentDate I_RawExposureItem ExpsrMgmtPaymentDate Pymt Date
ExpMgmtExposurePlanningPeriod I_RawExposureItem ExpMgmtExposurePlanningPeriod Period
ExpsrMgmtExposurePlanningYear I_RawExposureItem ExpsrMgmtExposurePlanningYear Planning Year
ExpsrMgmtFreeDefinedItemDate I_RawExposureItem ExpsrMgmtFreeDefinedItemDate Free Attr. (Date)
ExpsrMgmtFreeDfndItemAttrib1 I_RawExposureItem ExpsrMgmtFreeDfndItemAttrib1 Free Attr. (Char20)
ExpsrMgmtFreeDfndItemAttrib2 I_RawExposureItem ExpsrMgmtFreeDfndItemAttrib2 Free Attr. (Char20)
ExpsrMgmtFreeDfndItemAttrib3 I_RawExposureItem ExpsrMgmtFreeDfndItemAttrib3 Free Attr. (Char20)
ExpsrMgmtFreeDfndItemAttrib4 I_RawExposureItem ExpsrMgmtFreeDfndItemAttrib4 Free Attr. (Char20)
ExpsrMgmtFreeDfndItemAttrib5 I_RawExposureItem ExpsrMgmtFreeDfndItemAttrib5 Value of Free Attr.
ExpsrMgmtFreeDfndItemAttrib6 I_RawExposureItem ExpsrMgmtFreeDfndItemAttrib6 Value of Free Attr.
ExpsrMgmtFreeDfndItemAttrib7 I_RawExposureItem ExpsrMgmtFreeDfndItemAttrib7 Value of Free Attr.
OnBehalfOfCompany I_RawExposureItem OnBehalfOfCompany On Behalf of CoCode
Portfolio I_RawExposureItem Portfolio Portfolio
Segment I_RawExposureItem Segment Segment number
BusinessArea I_RawExposureItem BusinessArea Business Area
CostCenter I_RawExposureItem CostCenter Cost Center
ProfitCenter I_RawExposureItem ProfitCenter Profit Center
WBSElementInternalID I_RawExposureItem WBSElementInternalID WBS Internal ID
RawExposureName I_RawExposureItem RawExposureName Description
ExpsrMgmtRiskCategory I_SubRawExposure ExpsrMgmtRiskCategory Risk Category
ExpsrMgmtExposureCategory I_SubRawExposure ExpsrMgmtExposureCategory Transaction Cat
ExpsrMgmtExposureActivity I_SubRawExposure ExpsrMgmtExposureActivity Exposure Activity
_CompanyCode _CompanyCode
_OnBehalfOfCompany _OnBehalfOfCompany
_TreasuryPortfolio _TreasuryPortfolio

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 I_RawExposure.
-- 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.

CREATE VIEW I_RawExposure AS
SELECT
  a.os_guid AS RawExposureUUID,
  b.RawExposureItemID AS RawExposureItemID,
  c.RawExposureSubItemID AS RawExposureSubItemID,
  a.exposure_id AS RawExposureID,
  a.relevance_date AS RawExposureValidFromDate,
  a.version AS RawExposureVersion,
  a.last_rel_version AS RawExpLastRelevantVersion,
  a.company_code AS CompanyCode,
  a.exp_flow_type AS RawExposureActivityType,
  a.attribute_dh01 AS ExpsrMgmtFreeDefinedHeaderDate,
  a.attribute_sh01 AS ExpsrMgmtFreeDfndHeaderAttrib1,
  a.attribute_sh02 AS ExpsrMgmtFreeDfndHeaderAttrib2,
  a.attribute_lh01 AS ExpsrMgmtFreeDfndHeaderAttrib3,
  a.country AS Country,
  a.exposure_origin AS RawExposureOrigin,
  a.log_system AS OriginSystem,
  a.ext_doc_no AS RawExposureExternalDocNumber,
  a.release_state AS RawExposureReleaseState,
  a.creation_date AS RawExposureCreationDate,
  a.creation_tcode AS CreationTransactionCode,
  a.creation_time AS RawExposureCreationTime,
  a.creation_user AS CreatedByUser,
  a.lastchange_date AS LastChangeDate,
  a.lastchange_tcode AS ChangeTransactionCode,
  a.lastchange_time AS RawExposureChangeTime,
  a.lastchange_user AS LastChangedByUser,
  a.origin_tstmp AS RawExposureOriginDateTime,
  b.RawExposureItemExtItemID AS RawExposureItemExtItemID,
  b.ExposureDueDate AS ExposureDueDate,
  c.ExpsrAmountInExposureCurrency AS ExpsrAmountInExposureCurrency,
  c.ExposureCurrency AS ExposureCurrency,
  c.TargetCurrency AS TargetCurrency,
  b.ExpsrMgmtPaymentDate AS ExpsrMgmtPaymentDate,
  b.ExpMgmtExposurePlanningPeriod AS ExpMgmtExposurePlanningPeriod,
  b.ExpsrMgmtExposurePlanningYear AS ExpsrMgmtExposurePlanningYear,
  b.ExpsrMgmtFreeDefinedItemDate AS ExpsrMgmtFreeDefinedItemDate,
  b.ExpsrMgmtFreeDfndItemAttrib1 AS ExpsrMgmtFreeDfndItemAttrib1,
  b.ExpsrMgmtFreeDfndItemAttrib2 AS ExpsrMgmtFreeDfndItemAttrib2,
  b.ExpsrMgmtFreeDfndItemAttrib3 AS ExpsrMgmtFreeDfndItemAttrib3,
  b.ExpsrMgmtFreeDfndItemAttrib4 AS ExpsrMgmtFreeDfndItemAttrib4,
  b.ExpsrMgmtFreeDfndItemAttrib5 AS ExpsrMgmtFreeDfndItemAttrib5,
  b.ExpsrMgmtFreeDfndItemAttrib6 AS ExpsrMgmtFreeDfndItemAttrib6,
  b.ExpsrMgmtFreeDfndItemAttrib7 AS ExpsrMgmtFreeDfndItemAttrib7,
  b.OnBehalfOfCompany AS OnBehalfOfCompany,
  b.Portfolio AS Portfolio,
  b.Segment AS Segment,
  b.BusinessArea AS BusinessArea,
  b.CostCenter AS CostCenter,
  b.ProfitCenter AS ProfitCenter,
  b.WBSElementInternalID AS WBSElementInternalID,
  b.RawExposureName AS RawExposureName,
  c.ExpsrMgmtRiskCategory AS ExpsrMgmtRiskCategory,
  c.ExpsrMgmtExposureCategory AS ExpsrMgmtExposureCategory,
  c.ExpsrMgmtExposureActivity AS ExpsrMgmtExposureActivity
FROM text_rawexpos AS a
INNER JOIN I_RawExposureItem AS b ON /* join condition not captured in parsed metadata */
INNER JOIN I_SubRawExposure AS c ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _OnBehalfOfCompany ON _OnBehalfOfCompany.CompanyCode = OnBehalfOfCompany  -- association [1..1]
LEFT OUTER JOIN I_TreasuryPortfolio AS _TreasuryPortfolio ON _TreasuryPortfolio.Portfolio = Portfolio AND _TreasuryPortfolio.CompanyCode = CompanyCode  -- association [0..1]
;