RMA_UPN1_VW(SQL View) |
Index Back |
---|---|
RMA Product by UPN & Type |
SELECT PROD.SETID , UPN.UPN_TYPE_CD , UPN.UPN_ID , PROD.PRODUCT_ID , PROD.DESCR , UOM.UNIT_OF_MEASURE , MFG.MFG_ID , MFG.PREFERRED_MFG FROM PS_PROD_ITEM PROD , PS_ITEM_MFG_UPN_FS UPN , PS_PROD_UOM UOM , PS_INV_ITEM_DEFLT DFLT , PS_ITEM_MFG MFG WHERE PROD.PRODUCT_USE <> '2' AND PROD.RETURN_FLAG = 'Y' AND PROD.SETID = UPN.SETID AND PROD.SETID = UOM.SETID AND PROD.SETID = DFLT.SETID AND PROD.INV_ITEM_ID = UPN.INV_ITEM_ID AND PROD.PRODUCT_ID = UOM.PRODUCT_ID AND UOM.UNIT_OF_MEASURE = UPN.UNIT_OF_MEASURE AND UPN.UPN_TYPE_CD = DFLT.GTIN_TYPE_CD 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) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | UPN_TYPE_CD | Character(4) | VARCHAR2(4) NOT NULL | Universal Product Number Format Type |
3 | UPN_ID | Character(20) | VARCHAR2(20) NOT NULL | Universal Product Number |
4 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
7 | MFG_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer ID |
8 | PREFERRED_MFG | Character(1) | VARCHAR2(1) NOT NULL | Item's Preferred Manufacturer |