Search This Blog

Wednesday, June 19, 2019

Session Variables in Fusion HCM for BI

Session Variables in BI Publisher to get logged in user info

Session variables are used frequently in BI Publisher when the reports are being exposed to employees.

We need to write query to pull only the logged in user information and for this we will use the session variable.
Apart from this user, there are many other session variables and we are going to look at them now.

Logged in User Person ID - HRC_SESSION_UTIL.get_user_personid​
Logged in User Username - :xdo_user_name
Logged in User Username - FND_GLOBAL.USER_NAME
Logged in User GUID - fnd_global.user_guid
Logged in User SessionID - userenv('sessionid')
Logged in User Language - USERENV ('LANG')
Logged in User Business Group - fnd_profile.value('PER_BUSINESS_GROUP_ID')

Sample SQLs:
select * from per_persons​​ ​where person_id = HRC_SESSION_UTIL.get_user_personid​
select * from per_organization_units WHERE business_group_id = fnd_profile.value('PER_BUSINESS_GROUP_ID')


You can add these to the SQL query as per your requirement and get appropriate results.

Hope this is useful.. stay tuned for more updates.

7 comments:

  1. Nice blog Thanks For Sharing This Informative Blog, In This Blog content is very informative.
    Oracle Fusion Financials Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  2. Such a nice blog, I really like what you write in this blog, I also have some relevant information about if you want more information.

    Oracle Fusion HCM Online Training
    Oracle Cloud HCM Online Training

    ReplyDelete

  3. Iam so thrilled because of finding your alluring website here.Actually i was searching for Oracle Fusion HCM Techno Functional.Your blog is so astounding and informative too..Iam very happy to find such a creative blog. Iam also find another one by mistake while am searching the same topic Oracle PPM Cloud.Thank you soo much.

    ReplyDelete
  4. i got stuck in Restricting Business Units for individual users in BIP Reports...p

    ReplyDelete
  5. it would be great for me if you help me do it
    Thankyou

    ReplyDelete