REFUND_SRCH6_VW(SQL View) |
Index Back |
---|---|
People Search ViewCommon view used when searching for/selecting a person for display/update. This view should be used as the basis for all other views which go against people. The PeopleCode contained on this view is important for any other view which is based on this one - the searching/formatting for names and setting the carry id is done with this code. |
SELECT A.BUSINESS_UNIT ,A.REFUND_EXT_ORG_ID ,A.COMMON_ID ,A.SA_ID_TYPE ,B.DESCR ,A.EMPLID ,A.EXT_ORG_ID FROM PS_ITEM_SF A , PS_EXT_ORG_VW2 B WHERE A.REFUND_EXT_ORG_ID = B.EXT_ORG_ID AND A.ITEM_BALANCE < 0 AND A.ITEM_TYPE_CD IN('P','F','D','L','W') AND A.SA_ID_TYPE = 'P' AND A.REFUND_EXT_ORG_ID <> ' ' GROUP BY A.BUSINESS_UNIT, A.COMMON_ID, A.SA_ID_TYPE, A.REFUND_EXT_ORG_ID, B.DESCR, A.EMPLID, A.EXT_ORG_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | SSF_RFND_ORG_SPON | Character(11) | VARCHAR2(11) NOT NULL | Sponsor Org ID |
3 | COMMON_ID | Character(11) | VARCHAR2(11) NOT NULL | Common ID to store Personal ID / Ext Org ID value |
4 | SA_ID_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
ID Type
O=Organization P=Person |
5 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
6 | SSF_ORG_EMPLID_REL | Character(11) | VARCHAR2(11) NOT NULL | Related People ID |
7 | EXT_ORG_ID_RELATED | Character(11) | VARCHAR2(11) NOT NULL | Related ID |