How can I get the ENTERPRISE_ID of the logged-on user?

Hello

Is there a PL/SQL function that I could use to get the ENTERPRISE_ID of the user logged on so that I can use it in a report query for example as below.

SELECT package.function

FROM DUAL;

"package.function" must be able to return to the ENTERPRISE_ID of the logged in user.

Kind regards

Santhosh Jose

I think that you can access the ENTERPRISE_ID with:

  • SYS_CONTEXT ('FND_VPD_CTX', 'ENTERPRISE_ID')

Assuming that the ApplCore session has been initialized or alternatively:

Note that since it is related to the VPD implementation, that you can't question simply through companies, rather restrictions are applied at the level of the table. Also note that since its code internal, it is subject to change without notice.

--

Jani Rautiainen

Relationship with the developers of Applications in fusion

https://blogs.Oracle.com/fadevrel/

Tags: Oracle Applications

Similar Questions

Maybe you are looking for

  • Why have I not 2 15.0.0 and 15.0.1 Firefox versions in my Control Panel Window Vista x 86?

    I noticed that I have 2 different versions of Firefox 15.0.0 and 15.0.1 in my control panel in Windows Vista. Before doing anything, I need to know why I have Firefox 2 in my system and how it happened. It is safe for me uninstall older versions? If

  • digital analog in a queue

    I want to create a queue for analog and digital data. The attached vi has two. How would you do different data type 2 feed to a queue? Should a digital waveform and an analog wave form to enter data in a queue. Any ideas? I use cDAQ-9172 and NI 9401

  • Created in Windows Me CD's are unreadable in Windows XP

    I have created many cd, (programs and files), when my HP Pavilion running Windows Millennium Edition.  I have upgraded to Windows XP.  When I put these discs in my cd rom, (in XP) drive, no files or programs are visible.  It seems that the CDs are em

  • IRQL_NOT_LESS_OR_EQUAL (0X000000A)

    Just, I formatted my HDD and reinstalled Windows.  Initially, I had tons of problems for Windows Installer (very random BSOD), and after running Memtest86 on each stick of RAM, I found a wrong key.  So, while I'm waiting for an RMA on that... I conti

  • LaserJet Enterprise 700 M712: Black Prinout

    All black print, just print even printer only info. Toner changed cartridge and the transfer roller printing remains black.