/
Query to locate user defined data on Project codes

Query to locate user defined data on Project codes

Description of Issue

What user defined codes are populated on project codes?

How can we report on user defined data through SQL for project codes? 

Context
  • Project Master

  • User Defined Fields

  • User Defined Codes

Cause

Resolution

The query below can be run to report on the Project Code, User Defined Field, Field Value, and Code Descriptions if a user defined code was used.

select pama_proj [Project Code],
spuf_label [Field Name],
spud_data [Field Value],
spuc_short [Short Code Description],
spuc_long [Long Code Description]
from spusrdat UDD
join spusrfld UDF on UDD.spud_field = UDF.spuf_field and UDD.spud_applid = UDF.spuf_applid and UDF.spuf_applid = 'pamaster'
join pamaster P on UDD.spud_key = P.pama_proj
left join spusrcod UDC on UDD.spud_data = UDC.spuc_value and UDC.spuc_applid = UDD.spud_applid and spuc_field = UDF.spuf_field
--where pama_proj = ''
order by spud_key

Additional Information










Related content

Database view containing user defined fields from Requisition Entry
Database view containing user defined fields from Requisition Entry
More like this
Database view containing user defined data in Contact Change Orders program
Database view containing user defined data in Contact Change Orders program
More like this
Database view containing vendor user defined fields and their values
Database view containing vendor user defined fields and their values
More like this
Project Master - Creation dates of Project Codes
Project Master - Creation dates of Project Codes
More like this
SQL code behind Canned Project Budget Report
SQL code behind Canned Project Budget Report
More like this
List of GL accounts and their associated Rollup Code
List of GL accounts and their associated Rollup Code
More like this