Sometimes, we need to Update/retrieve User Preferences values Setup at User level in our code/Specifically in User specific application logic building.
So here are few pointers , one ought to know while working with User references.
--> User Preferences are nothing but the System Profiles (Default from Site Level), starting with 'ICX%'%
If some one Updates his/her user presences from EBS Home Page, updated values automatically gets reflects in System profiles as well at the User Level (Not on Site level).
--> Function to get These values,
SELECT FND_PROFILE.VALUE_SPECIFIC('ICX_DATE_FORMAT_MASK',<USER_ID>) FROM DUAL;
This function retrieves the value from profiles for a specific User , if their is no value found at user value it further goes down to site value level and fetch the value.
Below query also can be used to get the values , those are updated at User level.
SELECT
VAL.PROFILE_OPTION_VALUE, OPT.PROFILE_OPTION_NAME,val.PROFILE_OPTION_ID
FROM
APPLSYS.FND_PROFILE_OPTION_VALUES VAL,
APPLSYS.FND_PROFILE_OPTIONS OPT,
APPLSYS.FND_USER FUSER
WHERE
VAL.PROFILE_OPTION_ID = OPT.PROFILE_OPTION_ID
AND VAL.LEVEL_VALUE = FUSER.USER_ID
-- AND OPT.PROFILE_OPTION_NAME LIKE 'ICX%'
AND VAL.LEVEL_ID = 10004 -- USER LEVEL
AND FUSER.USER_NAME = 'DEMOUSER';
No comments:
Post a Comment