SUB_ITM_VW

(SQL View)
Index Back

Substitute Item Table


SELECT DISTINCT A.SETID ,A.INV_ITEM_ID ,A.SUB_ITM_ID ,B.DESCR ,B.CATEGORY_ID ,C.CATEGORY_CD ,B.UNIT_MEASURE_STD ,A.EFFDT_FROM ,A.EFFDT_TO ,A.CONVERSION_RATE ,A.SUB_PRIORITY_NBR ,A.USE_FOR_SHIP_FLAG ,A.USE_FOR_MANUFACTUR ,A.USE_PROCUREMENT FROM PS_SUBSTITUTE_ITM A , PS_MASTER_ITEM_TBL B , PS_ITM_CAT_TBL C WHERE (A.USE_PROCUREMENT = 'B' OR A.USE_PROCUREMENT = 'M') AND A.SETID = B.SETID AND B.INV_ITEM_ID = A.SUB_ITM_ID AND C.SETID = B.SETID AND C.CATEGORY_ID = B.CATEGORY_ID AND A.EFFDT_FROM >= C.EFFDT AND C.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_ITM_CAT_TBL E WHERE C.SETID = E.SETID AND C.CATEGORY_TYPE = E.CATEGORY_TYPE AND C.CATEGORY_CD = E.CATEGORY_CD AND C.CATEGORY_ID = E.CATEGORY_ID AND C.EFFDT <= A.EFFDT_TO)

# 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 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID

Prompt Table: MST_ITM_VW4

3 SUB_ITM_ID Character(18) VARCHAR2(18) NOT NULL 11/30/99 RML Added label "Substitute"

Prompt Table: ITM_PURCH_VW

4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
5 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
6 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code
7 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage

Prompt Table: %EDIT_UOM

8 EFFDT_FROM Date(10) DATE Effective Date From
9 EFFDT_TO Date(10) DATE Effective Date To
10 CONVERSION_RATE Signed Number(17,8) DECIMAL(15,8) NOT NULL Conversion Rate
11 SUB_PRIORITY_NBR Number(3,0) SMALLINT NOT NULL 03/30/99 laj...CN#EN800-1.0 This field was "cloned" for BOM mass maintenance. Any field attribute changes here need also to be to done to en_new_sub_pri_nbr.
12 USE_FOR_SHIP_FLAG Character(1) VARCHAR2(1) NOT NULL Use for Shipments

Y/N Table Edit

Default Value: N

13 USE_FOR_MANUFACTUR Character(1) VARCHAR2(1) NOT NULL Use for Manufacturing

Y/N Table Edit

Default Value: N

14 USE_PROCUREMENT Character(1) VARCHAR2(1) NOT NULL Use for Procurement
A=Automatic Substitution
B=Manual and Automatic
M=Manual Substitution
N=Do Not Use