Query to get Site level and Organization level Profile Option Value

Query to get Site level and Organization level Profile Option Value
Profile Option query
Profile Option Value Query
Oracle Apps Profile Option value query

Query to get Site level Profile Option Value

--Site level profile option value
  SELECT USER_PROFILE_OPTION_NAME, fpov.profile_option_value
    FROM fnd_profile_option_values fpov, fnd_profile_options_vl fpo
   WHERE     fpov.profile_option_id(+) = fpo.profile_option_id
         AND USER_PROFILE_OPTION_NAME IN
                ('CSE: Debug Log Directory',
                 'CSE: Debug Option',
                 'CSI: Contracts Enabled')             ---Profile Option Names
         AND fpov.level_value(+) = '0'
ORDER BY 1;

 

Query to get Organization level Profile Option Value

--Organization level profile option value
  SELECT NAME,
         (SELECT fpov.profile_option_value
            FROM fnd_profile_option_values fpov, fnd_profile_options_vl fpo
           WHERE     fpov.profile_option_id = fpo.profile_option_id
                 AND USER_PROFILE_OPTION_NAME = 'CSE: FA Book Type Code'
                 AND fpov.level_value = ORGANIZATION_ID)
            profile_option_value
    FROM hr_operating_units
   WHERE NAME = 'Your Operating Unit Name'
ORDER BY 1;

For more reusable queries, click https://tech7.in/category/technologyblog/oracle/

Related posts: Upload your own post and refer it anywhere anytime:

Leave a Reply