P_FlocUserLabel is a Composite CDS View that provides data about "Functional Location User Defined Label" in SAP S/4HANA. It reads from 1 data source (I_FunclocationLabelInternal) and exposes 5 fields with key field FunctionalLocation. Part of development package ILOM.
@VDM.private: true@VDM.viewType: #COMPOSITE@AbapCatalog: { sqlViewName: 'PFLOCUSERLABEL', preserveKey }@AccessControl.authorizationCheck:#NOT_REQUIRED@ClientHandling.algorithm: #SESSION_VARIABLE// View for active user-specific Alternative Functional Location Labels
//defineview P_FlocUserlabel
// asselectfrom I_FunclocationLabelInternal
// // Filter out all alternative labels for the current user based on the currently active user profile of the user (if exsiting)
// innerjoin I_FlocUserProfile as _FlocUserProfile on I_FunclocationLabelInternal.FunctionalLocLabelingSyst = _FlocUserProfile.FunctionalLocLabelingSyst
// and _FlocUserProfile.CreatedByUser = $session.user
// and _FlocUserProfile.UserProfileForLabelingIsActive = 'X'
//{
// key I_FunclocationLabelInternal.FunctionalLocation,
//
// I_FunclocationLabelInternal.FunctionalLocLabelingSyst,
//
// I_FunclocationLabelInternal.FunctionalLocLabelIsActive,
// I_FunclocationLabelInternal.FunctionalLocationLabelName,
// I_FunclocationLabelInternal.FuncnlLocLabelIsPrimaryLabel
//
//
//}
//where// I_FunclocationLabelInternal.FunctionalLocLabelIsActive = 'X'
// and I_FunclocationLabelInternal.FuncnlLocLabelIsPrimaryLabel = ''
defineview P_FlocUserLabel
asselectfrom I_FunclocationLabelInternal
leftouter to one join I_FlocUserProfile on I_FunclocationLabelInternal.FunctionalLocLabelingSyst = I_FlocUserProfile.FunctionalLocLabelingSyst
and I_FlocUserProfile.CreatedByUser = $session.user
and I_FlocUserProfile.UserProfileForLabelingIsActive = 'X'
{
key FunctionalLocation,
I_FlocUserProfile.FunctionalLocLabelingSyst,
FunctionalLocLabelIsActive,
FunctionalLocationLabelName,
FuncnlLocLabelIsPrimaryLabel
}
where
I_FlocUserProfile.CreatedByUser isnotnulland I_FunclocationLabelInternal.FunctionalLocLabelIsActive = 'X'
and I_FunclocationLabelInternal.FuncnlLocLabelIsPrimaryLabel = ''