P_PartyIDForMyUser

DDL: P_PARTYIDFORMYUSER SQL: PPRTYIDFORMYUSER Type: view COMPOSITE

P_PartyIDForMyUser is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_User, P_BusinessPartnerForMyUser, P_EHSBusinesUserWithPersWrkAgr) and exposes 4 fields with key field PartyIDCombined.

Data Sources (3)

SourceAliasJoin Type
I_User I_User from
P_BusinessPartnerForMyUser P_BusinessPartnerForMyUser union
P_EHSBusinesUserWithPersWrkAgr P_EHSBusinesUserWithPersWrkAgr union

Annotations (10)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PPRTYIDFORMYUSER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_ALLOWED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PartyIDCombined
BusinessPartner100asPartyIDCombined
PersonWorkAgreement120asPartyIDCombined
PartyName P_EHSBusinesUserWithPersWrkAgr PersonFullName Full 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 P_PartyIDForMyUser.
-- 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: PPRTYIDFORMYUSER

CREATE VIEW P_PartyIDForMyUser AS
SELECT
  concat( 'D', I_User.UserID) AS PartyIDCombined,
  I_User.UserDescription as PartyName AS BusinessPartner100asPartyIDCombined,
  substring( P_BusinessPartnerForMyUser.BusinessPartnerFullName, 1, 80 ) as PartyName AS PersonWorkAgreement120asPartyIDCombined,
  P_EHSBusinesUserWithPersWrkAgr.PersonFullName AS PartyName
FROM I_User
-- UNION with additional select branch(es): P_BusinessPartnerForMyUser, P_EHSBusinesUserWithPersWrkAgr
;