PROD_PTSF_CCUVW

(SQL View)
Index Back

Customer Product by UPN & Type

Customer Product by Inventory UPN Type

SELECT UPN.SETID , CST.SETID , CST.CUST_ID , UPN.UPN_TYPE_CD , UPN.UPN_ID , UPN.INV_ITEM_ID , PC.PRODUCT_ID , UPN.UNIT_OF_MEASURE , PC.CATALOG_NBR , PC.DESCR , PC.MODEL_NBR , PC.PRODUCT_KIT_FLAG , PC.EFF_STATUS , CASE WHEN UPN.LASTUPDDTTM > PC.LASTUPDDTTM THEN CASE WHEN UPN.LASTUPDDTTM > UOM.LASTUPDDTTM THEN CASE WHEN UPN.LASTUPDDTTM > CST.LASTUPDDTTM THEN UPN.LASTUPDDTTM ELSE CST.LASTUPDDTTM END ELSE CASE WHEN UOM.LASTUPDDTTM > CST.LASTUPDDTTM THEN UOM.LASTUPDDTTM ELSE CST.LASTUPDDTTM END END ELSE CASE WHEN PC.LASTUPDDTTM > UOM.LASTUPDDTTM THEN CASE WHEN PC.LASTUPDDTTM > CST.LASTUPDDTTM THEN PC.LASTUPDDTTM ELSE CST.LASTUPDDTTM END ELSE CASE WHEN UOM.LASTUPDDTTM > CST.LASTUPDDTTM THEN UOM.LASTUPDDTTM ELSE CST.LASTUPDDTTM END END END FROM PS_PRODCTLG_LST_VW PC , PS_ITEM_MFG_UPN_FS UPN , PS_PROD_UOM UOM , PS_CUST_SOLDTO_OPT CST , PS_ITEM_MFG MFG WHERE PC.SETID = UPN.SETID AND PC.SETID = UOM.SETID AND PC.SETID = CST.SETID AND PC.SOLD_TO_CUST_ID = CST.CUST_ID AND PC.PRODUCT_ID = UOM.PRODUCT_ID AND PC.INV_ITEM_ID = UPN.INV_ITEM_ID AND UPN.UNIT_OF_MEASURE = UOM.UNIT_OF_MEASURE AND UPN.UPN_ID <> ' ' AND UPN.UPN_TYPE_CD = CST.UPN_TYPE_CD AND %EffdtCheck(CUST_SOLDTO_OPT CST2, CST, %CurrentDateIn) AND %Join(COMMON_KEYS, ITEM_MFG MFG, ITEM_MFG_UPN_FS UPN) AND PC.PRODUCT_ID = ( SELECT MIN(PROD2.PRODUCT_ID) FROM PS_PROD_ITEM PROD2 , PS_ITEM_MFG_UPN_FS UPN2 , PS_PROD_UOM UOM2 WHERE PROD2.SETID = PC.SETID AND PROD2.SETID = UPN2.SETID AND UOM2.SETID = PROD2.SETID AND UOM2.PRODUCT_ID = PROD2.PRODUCT_ID AND UOM2.PRODUCT_ID = PC.PRODUCT_ID AND UOM2.UNIT_OF_MEASURE = UOM.UNIT_OF_MEASURE AND UPN2.UNIT_OF_MEASURE = UPN.UNIT_OF_MEASURE AND UPN2.UPN_ID = UPN.UPN_ID) AND PC.EFF_STATUS = 'A'

  • Related Language Record: PRD_PTSF_CCULVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 SETID_CUSTOMER Character(5) VARCHAR2(5) NOT NULL Customer SetID
    3 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer
    4 UPN_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Universal Product Number Format Type
    5 UPN_ID Character(20) VARCHAR2(20) NOT NULL Universal Product Number
    6 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
    7 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
    8 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
    MHR=Muti Hourly
    PER=Percentage
    SQF=Square Footage
    9 CATALOG_NBR Character(18) VARCHAR2(18) NOT NULL Catalog Number
    10 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    11 MODEL_NBR Character(18) VARCHAR2(18) NOT NULL Model Number
    12 PRODUCT_KIT_FLAG Character(1) VARCHAR2(1) NOT NULL Product Kit
    13 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive
    14 LASTUPDDTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.