AR_SRCH_TM_VW

(SQL View)
Index Back

Salesperson View for Search

Salesperson/Team Member view used for AR Keyword Search

SELECT DISTINCT I.BUSINESS_UNIT , I.CUST_ID , I.ITEM , I.ITEM_LINE , I.SALES_PERSON , TM.NAME1 FROM PS_ITEM I LEFT OUTER JOIN PS_TEAM_MEMBER_VW TM ON I.SALES_PERSON = TM.SALES_PERSON WHERE TM.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE RECNAME = 'TEAM_MEMBER_VW' AND SETCNTRLVALUE = I.BUSINESS_UNIT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
3 ITEM Character(30) VARCHAR2(30) NOT NULL Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number.
4 ITEM_LINE Number(6,0) INTEGER NOT NULL Item Line
5 SALES_PERSON Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer as a sales representative. This field is required for a customer that functions as a bill-to customer.
6 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1