I_OIL_PartnerRoleBasic

DDL: I_OIL_PARTNERROLEBASIC Type: view_entity BASIC

Partner role

I_OIL_PartnerRoleBasic is a Basic CDS View that provides data about "Partner role" in SAP S/4HANA. It reads from 1 data source (oijrra) and exposes 31 fields with key fields Customer, Supplier, Plant, StorageLocation, PartnerRoleType. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oijrra oijrra from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_Customer _Customer _Customer.Customer = $projection.Customer
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.Supplier
[0..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[0..1] I_StorageLocation _StorageLocation _StorageLocation.StorageLocation = $projection.StorageLocation and _StorageLocation.Plant = $projection.Plant
[0..1] I_OIL_RolePartnerTypeVH _RolePartnerType _RolePartnerType.RolePartnerType = $projection.RolePartnerType
[0..1] I_OIL_PartnerRoleType _PartnerRoleType _PartnerRoleType.PartnerRoleType = $projection.PartnerRoleType
[0..1] I_OIL_TransportSystem _TransportSystem _TransportSystem.TransportSystem = $projection.TransportSystem
[0..1] I_OIL_BusinessLocationBasic _BusinessLocation _BusinessLocation.BusinessLocationIdentifier = $projection.PartnerRoleLocationIdentifier
[0..1] I_OIL_TicketNumberRule _TicketNumberRule _TicketNumberRule.TicketNumberRule = $projection.TicketNumberRule

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Partner role view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY Customer kunnr Stock customer
KEY Supplier lifnr Vendor no.
KEY Plant werk Plant
KEY StorageLocation lgort Sublocation
KEY PartnerRoleType rtype Role type
KEY PartnerRoleDifferentiator rdiff Rounding Diff.
RolePartnerType rpart Role part. type
LocationPartner cparid Single-Character Flag
CommonPartnerText parnm Common partner
TransportSystem tsyst Trans system
PartnerRoleLocationIdentifier locid Single-Character Flag
TicketNumberRule ruleid Tick.nr.rule
PipelinePartner tsparid Pipe prtnr.code
CreationDate erdat Entered On
CreationTime erzeit Time created
CreatedByUser ernam User Name
LastChangeDate aedat Obsolete
LastChangeTime aezeit Time changed
LastChangedByUser aenam User Name
IsBlocked bloind Single-Character Flag
IsDeleted delind Will be Deleted
TicketIsSelectable tktselect Flag to Select Tkt
_Customer _Customer
_Supplier _Supplier
_Plant _Plant
_StorageLocation _StorageLocation
_RolePartnerType _RolePartnerType
_PartnerRoleType _PartnerRoleType
_TransportSystem _TransportSystem
_BusinessLocation _BusinessLocation
_TicketNumberRule _TicketNumberRule

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_OIL_PartnerRoleBasic.
-- 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_OIL_PartnerRoleBasic AS
SELECT
  kunnr AS Customer,
  lifnr AS Supplier,
  werk AS Plant,
  lgort AS StorageLocation,
  rtype AS PartnerRoleType,
  rdiff AS PartnerRoleDifferentiator,
  rpart AS RolePartnerType,
  cparid AS LocationPartner,
  parnm AS CommonPartnerText,
  tsyst AS TransportSystem,
  locid AS PartnerRoleLocationIdentifier,
  ruleid AS TicketNumberRule,
  tsparid AS PipelinePartner,
  erdat AS CreationDate,
  erzeit AS CreationTime,
  ernam AS CreatedByUser,
  aedat AS LastChangeDate,
  aezeit AS LastChangeTime,
  aenam AS LastChangedByUser,
  bloind AS IsBlocked,
  delind AS IsDeleted,
  tktselect AS TicketIsSelectable
FROM oijrra
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = Customer  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON _StorageLocation.StorageLocation = StorageLocation AND _StorageLocation.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN I_OIL_RolePartnerTypeVH AS _RolePartnerType ON _RolePartnerType.RolePartnerType = RolePartnerType  -- association [0..1]
LEFT OUTER JOIN I_OIL_PartnerRoleType AS _PartnerRoleType ON _PartnerRoleType.PartnerRoleType = PartnerRoleType  -- association [0..1]
LEFT OUTER JOIN I_OIL_TransportSystem AS _TransportSystem ON _TransportSystem.TransportSystem = TransportSystem  -- association [0..1]
LEFT OUTER JOIN I_OIL_BusinessLocationBasic AS _BusinessLocation ON _BusinessLocation.BusinessLocationIdentifier = PartnerRoleLocationIdentifier  -- association [0..1]
LEFT OUTER JOIN I_OIL_TicketNumberRule AS _TicketNumberRule ON _TicketNumberRule.TicketNumberRule = TicketNumberRule  -- association [0..1]
;