CUST_INFO_AR_VW

(SQL View)
Index Back

Customer Info for AR Popup

Customer Info for AR Popup

SELECT I.business_unit , I.cust_id , I.item , I.item_line , C.setid , C.nameshort , C.name1 , C.name2 , C.name3 , C.corporate_cust_id , C.remit_from_cust_id , C.crspd_cust_id , C.refer_to_cust_id , C.vendor_id , X.cr_analyst , X.collector , TM.SUPPORT_TEAM_MBR , C.subcust_qual1 , C.subcust_qual2 , X.billing_specialist , X.bill_inquiry_phone , I.ship_to_cust_id , I.sold_to_cust_id FROM ps_item I , ps_customer C , PS_CUST_OPTION X , PS_CUST_TEAM CT , PS_TEAM_CODE_TBL TCT , PS_TEAM_MEMBERS TM WHERE I.cust_id = C.cust_id AND C.SETID = X.SETID AND C.CUST_ID = X.CUST_ID AND %EffdtCheck(CUST_OPTION X2, X, %CurrentDateIn) AND X.EFF_STATUS = 'A' AND CT.SETID = C.SETID AND CT.CUST_ID = C.CUST_ID AND CT.DEFAULT_FLAG = 'Y' AND TCT.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE RECNAME = 'TEAM_CODE_TBL' AND SETCNTRLVALUE = CT.SETID) AND TCT.SUPPORT_TEAM_CD = CT.SUPPORT_TEAM_CD AND %EffdtCheck(TEAM_CODE_TBL TCT2, TCT, %CurrentDateIn) AND TCT.EFF_STATUS = 'A' AND TM.SETID = TCT.SETID AND TM.SUPPORT_TEAM_CD = TCT.SUPPORT_TEAM_CD AND TM.EFFDT = TCT.EFFDT AND TM.PRIORITY = ( SELECT MIN(Y.PRIORITY) FROM PS_TEAM_MEMBERS Y , PS_MEMBER_PERSON MP , PS_MEMBER_TYPE_TBL MT WHERE Y.SETID = TM.SETID AND Y.SUPPORT_TEAM_CD = TM.SUPPORT_TEAM_CD AND Y.EFFDT = TM.EFFDT AND Y.PRIORITY > 0 AND MP.SETID = Y.SETID AND MP.SUPPORT_TEAM_MBR = Y.SUPPORT_TEAM_MBR AND MT.SETID = MP.SETID AND MT.TEAM_MEMBER_TYPE = MP.TEAM_MEMBER_TYPE AND %EffdtCheck(MEMBER_TYPE_TBL MT2, MT, %CurrentDateIn) AND MT.EFF_STATUS = 'A' AND MT.SALES_PERSON = 'Y' )

  • Related Language Record: CUST_INF_AR_LVW
  • # 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.

    Prompt Table: CUST_ALL_A1_VW

    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 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    6 NAMESHORT Character(10) VARCHAR2(10) NOT NULL Short Name
    7 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    8 NAME2 Character(40) VARCHAR2(40) NOT NULL Name 2
    9 NAME3 Character(40) VARCHAR2(40) NOT NULL Name 3
    10 CORPORATE_CUST_ID Character(15) VARCHAR2(15) NOT NULL Corporate Customer
    11 REMIT_FROM_CUST_ID Character(15) VARCHAR2(15) NOT NULL Remit From Customer
    12 CRSPD_CUST_ID Character(15) VARCHAR2(15) NOT NULL Correspondence Customer
    13 REFER_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Refer To Customer
    14 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
    15 CR_ANALYST Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer to establish credit limits and payment terms. This field is required for a bill-to customer.
    16 COLLECTOR Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer to collect overdue payments.
    17 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.
    18 SUBCUST_QUAL1 Character(15) VARCHAR2(15) NOT NULL Specifies a user-defined grouping of customer receivables activity. A subcustomer qualifier provides the ability to record and report receivables activity across multiple business units and/or multiple customers. For example a subcustomer qualifier could represent a sales region or a geographic area. There are two possible subcustomer qualifiers: SUBCUST_QUAL1 and SUBCUST_QUAL2.
    19 SUBCUST_QUAL2 Character(15) VARCHAR2(15) NOT NULL Specifies a user-defined grouping of customer receivables activity. A subcustomer qualifier provides the ability to record and report receivables activity across multiple business units and/or multiple customers. For example a subcustomer qualifier could represent a sales region or a geographic area. There are two possible subcustomer qualifiers: SUBCUST_QUAL1 and SUBCUST_QUAL2.
    20 BILLING_SPECIALIST Character(8) VARCHAR2(8) NOT NULL Billing Specialist
    21 BILL_INQUIRY_PHONE Character(24) VARCHAR2(24) NOT NULL Bill Inquiry Phone
    22 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
    23 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer