CUST_REGN_CD_LG

(SQL View)
Index Back

Region Code Reporting View


SELECT A.SETID , A.CUST_ID , A.REGION_CD_TYPE , A.REGION_CD , B.LANGUAGE_CD , B.DESCR FROM PS_CUST_REGN_TYPE A , PS_REGION_CD_LNG B WHERE A.SETID = B.SETID AND A.REGION_CD_TYPE = B.REGION_CD_TYPE AND A.REGION_CD = B.REGION_CD AND A.REGION_CD_TYPE = 'RPT' AND B.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_REGION_CD C WHERE B.SETID = C.SETID AND B.REGION_CD_TYPE = C.REGION_CD_TYPE AND B.REGION_CD = C.REGION_CD AND C.EFFDT <= %CurrentDateIn)

  • Related Language Record for CUST_REGN_CD_VW
  • # 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 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 REGION_CD_TYPE Character(4) VARCHAR2(4) NOT NULL Region Code Type
    ACCT=Accounting
    BO=Backorder/Reservation
    CDOM=Contract Domain
    CNTR=Contracts
    FRT=Freight
    MBR=Team Member
    PRC=Pricing
    RPT=Reporting
    RS=Resource Management
    SPRS=Procurement
    SSRC=Alternate Sources Of Supply
    TRPT=Transportation
    4 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.
    5 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description