SALES_PERSN_TBL

(SQL View)
Index Back

Sales People


SELECT A.SETID , A.SUPPORT_TEAM_MBR , %DateIn('1900-01-01') , A.EFF_STATUS , A.TEAM_MEMBER_TYPE , A.LANGUAGE_CD , A.REGION_CD , A.EMPLID , A.COMM_BKS , A.COMM_SHP , A.COMM_INV , A.COMM_CASH , A.VENDOR_ID , A.NAME1 , A.EXT_EMAIL_ADDR FROM PS_MEMBER_PERSON A , PS_MEMBER_TYPE_TBL B WHERE A.TEAM_MEMBER_TYPE = B.TEAM_MEMBER_TYPE AND A.SETID = B.SETID AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_MEMBER_TYPE_TBL B1 WHERE B1.SETID = B.SETID AND B1.TEAM_MEMBER_TYPE = B.TEAM_MEMBER_TYPE AND B1.EFFDT <= %CurrentDateIn AND B1.EFF_STATUS = 'A') AND B.SALES_PERSON = 'Y'

  • Parent Record Of MEMBER_QUOTAS MEMBER_QUO_DTL
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    2 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.

    Prompt Table: SALES_PERSN_TBL

    3 EFFDT Date(10) DATE NOT NULL Effective Date

    Default Value: %date

    4 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive

    Default Value: A

    5 SALES_AGENT_TYP_CD Character(6) VARCHAR2(6) NOT NULL Sales Agent Type Code
    6 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code

    Default Value: PSOPTIONS.LANGUAGE_CD

    7 REGION_CD Character(10) VARCHAR2(10) NOT NULL Identifies the Sales Region. Populated on the Item Table to identify the Sales Region the Item is applied to.
    8 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    9 COMM_BKS Number(7,2) DECIMAL(6,2) NOT NULL Commission Payable at Bookings
    10 COMM_SHP Number(7,2) DECIMAL(6,2) NOT NULL Commission Payable at Shipping
    11 COMM_INV Number(7,2) DECIMAL(6,2) NOT NULL Commission Payable at Invoice
    12 COMM_CASH Number(7,2) DECIMAL(6,2) NOT NULL Commission Payable at Cash Rec
    13 VEN_SUPP_ID Character(10) VARCHAR2(10) NOT NULL Supplier/Supplier X-REF
    14 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    15 EXT_EMAIL_ADDR Character(70) VARCHAR2(70) NOT NULL Electronic Mail Address