Here are the values for the RECTYPE field in the table that stores the information about the records in PeopleSoft: PSRECDEFN. Here are what the values mean:
- 0 = SQL Table
- 1 = SQL View
- 2 = Work Record
- 3 = Subrecord
- 5 = Dynamic View
- 6 = Query View
- 7 = Temp Table
For example, you can do something like this to find all the tables that have the OPRID field:
SELECT A.RECNAME FROM PSRECDEFN A, PSRECFIELDALL B WHERE A.RECNAME = B.RECNAME AND A.RECTYPE = 0 AND B.FIELDNAME = 'OPRID'
See the PeopleTools Tables for more information.