PROD_UPNCUST_VW

(SQL View)
Index Back

Customer Product by UPN & Type

Customer Product by Customer UPN Type

SELECT PROD.SETID , CST.SETID , CST.CUST_ID , UPN.UPN_TYPE_CD , UPN.UPN_ID , PROD.PRODUCT_ID , PROD.DESCR , UPN.UNIT_OF_MEASURE , PROD.INV_ITEM_ID , PROD.MODEL_NBR , PROD.CATALOG_NBR , PROD.TAX_PRODUCT_NBR , PROD.PRODUCT_KIT_FLAG , PROD.EFF_STATUS , UOM.MIN_ORDER_QTY , UOM.MAX_ORDER_QTY , UOM.ORDER_INCREMENT , MFG.MFG_ID , MFG.PREFERRED_MFG , 'N' , 'U' FROM PS_PROD_ITEM PROD , PS_ITEM_MFG_UPN_FS UPN , PS_PROD_UOM UOM , PS_CUST_SOLDTO_OPT CST , PS_ITEM_MFG MFG WHERE PROD.PRODUCT_USE <> '2' AND PROD.EFF_STATUS = 'A' AND PROD.SETID = UPN.SETID AND PROD.SETID = UOM.SETID AND PROD.INV_ITEM_ID = UPN.INV_ITEM_ID AND PROD.PRODUCT_ID = UOM.PRODUCT_ID AND UPN.UNIT_OF_MEASURE = UOM.UNIT_OF_MEASURE 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 PROD.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 = PROD.SETID AND PROD2.SETID = UPN2.SETID AND UOM2.SETID = PROD2.SETID AND UOM2.PRODUCT_ID = PROD2.PRODUCT_ID AND UOM2.PRODUCT_ID = PROD.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)

  • Related Language Record: PROD_UPNCUSTLVW
  • # 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 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
    7 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    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 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
    10 MODEL_NBR Character(18) VARCHAR2(18) NOT NULL Model Number
    11 CATALOG_NBR Character(18) VARCHAR2(18) NOT NULL Catalog Number
    12 TAX_PRODUCT_NBR Character(18) VARCHAR2(18) NOT NULL Tax Product Number
    13 PRODUCT_KIT_FLAG Character(1) VARCHAR2(1) NOT NULL Product Kit
    14 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive
    15 MIN_ORDER_QTY Number(15,4) DECIMAL(14,4) NOT NULL Minimum Order Quantity
    16 MAX_ORDER_QTY Number(15,4) DECIMAL(14,4) NOT NULL Maximum Order Quantity
    17 ORDER_INCREMENT Number(15,4) DECIMAL(14,4) NOT NULL Order Increment
    18 MFG_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer ID
    19 PREFERRED_MFG Character(1) VARCHAR2(1) NOT NULL Item's Preferred Manufacturer
    20 SEL Character(1) VARCHAR2(1) NOT NULL Select
    21 TYPE_CODE Character(1) VARCHAR2(1) NOT NULL Uniform Type Code
    1=Account Status
    2=Activity Summary
    3=Transaction Detail