PROD_EC_UPCALVW(SQL View) |
Index Back |
---|---|
Customer Product by UPC |
SELECT PI.SETID , AL.CUST_ID , IT.UPC_ID , AL.PRODUCT_ALIAS , IT.EFFDT , IT.INV_ITEM_ID , PI.PRODUCT_ID , PI.MODEL_NBR , PI.PRODUCT_KIT_FLAG , PI.EFF_STATUS , PI.DESCR FROM PS_PROD_ITEM PI , PS_INV_ITEMS IT , PS_SET_CNTRL_REC SC , PS_PROD_CUST_ALIAS AL WHERE SC.SETCNTRLVALUE = IT.SETID AND SC.RECNAME = 'PROD_ITEM' AND PI.SETID = SC.SETID AND PI.INV_ITEM_ID = IT.INV_ITEM_ID AND PI.PRODUCT_USE <> '2' AND IT.UPC_ID <> ' ' AND PI.EFF_STATUS = 'A' AND %EffdtCheck(INV_ITEMS IT2, IT, %CurrentDateIn) AND AL.SETID = PI.SETID AND AL.PRODUCT_ID = PI.PRODUCT_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | SOLD_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Sold To Customer |
3 | UPC_ID | Character(18) | VARCHAR2(18) NOT NULL | Uniform Product Code ID |
4 | PRODUCT_ALIAS | Character(18) | VARCHAR2(18) NOT NULL | Product Alias |
5 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
6 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
7 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
8 | MODEL_NBR | Character(18) | VARCHAR2(18) NOT NULL | Model Number |
9 | PRODUCT_KIT_FLAG | Character(1) | VARCHAR2(1) NOT NULL | Product Kit |
10 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
11 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |