[Fusion] How to Query Lookup Types and Values in Oracle Fusion Cloud?

 


If you've spent any time in Oracle Fusion Setup and Maintenance, you're familiar with the 'Manage Standard Lookups' task. While the UI is great for quick edits, developers often need to pull this data directly for BI Publisher reports or OIC integrations. 

This guide provides a 'copy-paste' ready SQL script to retrieve lookup types, descriptions, and values. We’ll also explain the table logic so you can adapt it for your specific reporting needs.


The Core Query

This query joins the definition table (FND_LOOKUP_TYPES_VL) with the values table (FND_LOOKUP_VALUES) to give you a complete picture of a specific lookup.

SELECT flt.lookup_type
    ,flt.meaning "Lookup Type Meaning"
    ,flt.description "Lookup Type Description"
    ,flv.LOOKUP_CODE
    ,flv.meaning "Lookup Value Meaning"
    ,flv.description "Lookup Value Description"
FROM fnd_lookup_values flv
    ,fnd_lookup_types_VL flt
WHERE flv.lookup_type = 'YOUR_LOOKUP_TYPE_NAME'
    AND flv.lookup_type = flt.lookup_type
ORDER BY to_number(flv.LOOKUP_CODE)


Understanding the Components

1. The Tables
  • FND_LOOKUP_TYPES_VL: This is a "Value Layer" view. It combines the base lookup type table with translated meanings, ensuring you see the description in your session's language.
  • FND_LOOKUP_VALUES: This table contains the actual codes (the "behind-the-scenes" ID) and meanings (the text the user sees).
2. The Logic
  • flv.lookup_type = 'YOUR_LOOKUP_TYPE_NAME': Replace this placeholder with the specific lookup name you found in the Manage Standard Lookups task in Setup and Maintenance.
  • to_number(flv.LOOKUP_CODE): In many Fusion lookups, codes are numeric strings (e.g., '10', '20'). Using to_number in the ORDER BY ensures they sort logically (1, 2, 10) rather than alphabetically (1, 10, 2).

Pro-Tip: Filtering by Language

In multi-language environments, FND_LOOKUP_VALUES contains rows for every installed language. If your query returns duplicate rows for the same code, add this condition to your WHERE clause:

AND flv.language = USERENV('LANG')


The next time you’re tasked with finding a "missing" value in a dropdown, skip the multiple clicks in the Setup and Maintenance UI and go straight to the source with this script.


Comments

All Categories

Call Fusion BIP Report2 Change Password1 Code Combinations2 Compute Instance2 CTE1 Custom Images1 Customer1 Data Aggregation2 Database5 Date Conversion1 DB Adapter2 Decryption1 Development1 EBS5 Encryption1 ESS Jobs3 Examine1 FBDI3 Fusion APIs1 Fusion BIP7 GIT2 GL3 GL Journals1 GL_DAILY_CONVERSION_TYPES1 GL_DAILY_RATES1 ICS1 Identity Domain1 Integrations1 Java1 Journal Import1 Keys1 Legal Entity1 LookupTypeLOV1 LOV1 LOVs1 MultiPartAPIs1 Networking1 NVL2 NVL in OIC2 OCI13 OCI Billing1 OCI Compute6 OCI Cost Management1 OCI Events Service1 OCI Free Tier3 oci networking1 OCI Notifification Service1 OCI Security3 OIC4 OIC Mapper2 Oracle26 Oracle ADF17 Oracle APEX1 Oracle Apps60 Oracle Apps R127 Oracle ATP1 Oracle BIP8 Oracle Cloud13 Oracle Cloud Free Tier1 Oracle cloud Infrastructure10 Oracle Cloud Security2 Oracle Cloud VM1 Oracle DB4 oracle ebs6 Oracle ERP4 Oracle ERP Adapter2 Oracle ERP Cloud7 Oracle financials2 Oracle Forms1 Oracle Fusion57 Oracle Fusion BIP4 Oracle Fusion ERP17 Oracle Fusion Financials18 Oracle Integration Cloud3 Oracle OAF17 Oracle OCI14 Oracle OIC22 Oracle SOA 12c10 Oracle SQL17 Oracle VBCS1 Oracle VBS2 Oracle Visual Builder Cloud Service1 Oracle Visual Builder Studio2 Oracle Workflow Notifications1 OracleCloudTutorial1 Others10 Payables2 Payables Import1 Programs1 Properties1 R121 Register BIP as ESS Job1 Reset Password1 Responsibility1 REST4 Security List1 Site Map1 SOAP2 SOAP API2 SOAP UI3 SQL16 SQL Functions3 SQL Queries14 SQL Query8 SQL Tips3 SSH1 TCA1 Value Sets1 VBCS1 vcn1 Virtual Machine2 Virtual Machines1 XML1 XSLT1
Show more