RTV_ASSET_VW

(SQL View)
Index Back

RTV Receiver Asset View


SELECT A.BUSINESS_UNIT , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.DISTRIB_LINE_NUM , A.DISTRIB_SEQ_NUM , D.ACCOUNT , D.ALTACCT , D.DEPTID , A.ACTUAL_COST , A.BUSINESS_UNIT_AM , A.BUSINESS_UNIT_IN , D.BUSINESS_UNIT_GL , D.BUSINESS_UNIT_PO , ' ' , D.CONSIGNED_FLAG , A.COST , D.CURRENCY_CD , D.CURRENCY_CD_BASE , D.LINE_NBR , A.LOT_ID , D.MERCHANDISE_AMT , D.PO_DIST_LINE_NUM , D.PO_ID , A.PROFILE_ID , A.QUANTITY , A.QTY_MOVED_ASSET , A.QTY_MOVED_INV , D.RATE_DIV , D.RATE_MULT , D.SCHED_NBR , A.SERIAL_ID , A.TAG_NUMBER , %subrec(CF15_AN_SBR,D) , D.PROJECT_ID , D.BUSINESS_UNIT_PC , D.ACTIVITY_ID , D.ANALYSIS_TYPE , D.RESOURCE_CATEGORY , D.RESOURCE_SUB_CAT , D.RESOURCE_TYPE , A.VIN , A.STORAGE_AREA , A.STOR_LEVEL_1 , A.STOR_LEVEL_2 , A.STOR_LEVEL_3 , A.STOR_LEVEL_4 FROM PS_RECV_LN_ASSET A , PS_RECV_LN_DISTRIB D WHERE A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.RECEIVER_ID = D.RECEIVER_ID AND A.RECV_LN_NBR = D.RECV_LN_NBR AND A.RECV_SHIP_SEQ_NBR=D.RECV_SHIP_SEQ_NBR AND A.DISTRIB_LINE_NUM=D.DISTRIB_LINE_NUM AND NOT (A.RECV_AM_STATUS = 'M' AND EXISTS ( SELECT 'X' FROM PS_RECV_LN_SHIP S WHERE S.BUSINESS_UNIT = A.BUSINESS_UNIT AND S.RECEIVER_ID = A.RECEIVER_ID AND S.RECV_LN_NBR = A.RECV_LN_NBR AND S.RECV_SHIP_SEQ_NBR = A.RECV_SHIP_SEQ_NBR AND S.INSPECT_STATUS = 'I')) AND A.QUANTITY <> 0 AND A.RECV_AM_STATUS <> 'X' AND NOT EXISTS ( SELECT 'X' FROM PS_RTV_LN_DISTRIB R WHERE R.BUSINESS_UNIT_RECV = A.BUSINESS_UNIT AND R.RECEIVER_ID = A.RECEIVER_ID AND R.RECV_LN_NBR = A.RECV_LN_NBR AND R.RECV_SHIP_SEQ_NBR = A.RECV_SHIP_SEQ_NBR AND R.DISTRIB_LINE_NUM = A.DISTRIB_LINE_NUM AND R.DISTRIB_SEQ_NUM = A.DISTRIB_SEQ_NUM AND A.SERIAL_ID <> ' ' AND R.RTV_DIST_STATUS IN ('O', 'S', 'C')) UNION SELECT A.BUSINESS_UNIT , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.DISTRIB_LINE_NUM , A.DISTRIB_SEQ_NUM , D.ACCOUNT , D.ALTACCT , D.DEPTID , A.ACTUAL_COST , A.BUSINESS_UNIT_AM , A.BUSINESS_UNIT_IN , D.BUSINESS_UNIT_GL , D.BUSINESS_UNIT_PO , ' ' , D.CONSIGNED_FLAG , A.COST , D.CURRENCY_CD , D.CURRENCY_CD_BASE , D.LINE_NBR , A.LOT_ID , D.MERCHANDISE_AMT , D.PO_DIST_LINE_NUM , D.PO_ID , A.PROFILE_ID , A.QUANTITY , A.QTY_MOVED_ASSET , A.QTY_MOVED_INV , D.RATE_DIV , D.RATE_MULT , D.SCHED_NBR , A.SERIAL_ID , A.TAG_NUMBER , %subrec(CF15_AN_SBR,D) , D.PROJECT_ID , D.BUSINESS_UNIT_PC , D.ACTIVITY_ID , D.ANALYSIS_TYPE , D.RESOURCE_CATEGORY , D.RESOURCE_SUB_CAT , D.RESOURCE_TYPE , A.VIN , A.FROM_STOR_AREA , A.FROM_STOR_LEV1 , A.FROM_STOR_LEV2 , A.FROM_STOR_LEV3 , A.FROM_STOR_LEV4 FROM PS_RECV_LN_ASSET A , PS_RECV_LN_DISTRIB D WHERE A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.RECEIVER_ID = D.RECEIVER_ID AND A.RECV_LN_NBR = D.RECV_LN_NBR AND A.RECV_SHIP_SEQ_NBR=D.RECV_SHIP_SEQ_NBR AND A.DISTRIB_LINE_NUM=D.DISTRIB_LINE_NUM AND (A.RECV_AM_STATUS = 'M' AND EXISTS ( SELECT 'X' FROM PS_RECV_LN_SHIP S WHERE S.BUSINESS_UNIT = A.BUSINESS_UNIT AND S.RECEIVER_ID = A.RECEIVER_ID AND S.RECV_LN_NBR = A.RECV_LN_NBR AND S.RECV_SHIP_SEQ_NBR = A.RECV_SHIP_SEQ_NBR AND S.INSPECT_STATUS = 'I')) AND A.QUANTITY <> 0 AND A.RECV_AM_STATUS <> 'X' AND NOT EXISTS ( SELECT 'X' FROM PS_RTV_LN_DISTRIB R WHERE R.BUSINESS_UNIT_RECV = A.BUSINESS_UNIT AND R.RECEIVER_ID = A.RECEIVER_ID AND R.RECV_LN_NBR = A.RECV_LN_NBR AND R.RECV_SHIP_SEQ_NBR = A.RECV_SHIP_SEQ_NBR AND R.DISTRIB_LINE_NUM = A.DISTRIB_LINE_NUM AND R.DISTRIB_SEQ_NUM = A.DISTRIB_SEQ_NUM AND A.SERIAL_ID <> ' ' AND R.RTV_DIST_STATUS IN ('O', 'S', 'C'))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_RECV Character(5) VARCHAR2(5) NOT NULL Receiving Business Unit
2 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
3 RECV_LN_NBR Number(5,0) INTEGER NOT NULL Receipt Line
4 RECV_SHIP_SEQ_NBR Number(3,0) SMALLINT NOT NULL Receiver Shipping Sequence
5 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
6 DISTRIB_SEQ_NUM Number(5,0) INTEGER NOT NULL Distribution Sequence
7 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
8 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
9 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPTID_BUGL_VW

10 ACTUAL_COST Signed Number(27,15) DECIMAL(25,15) NOT NULL 10/09/02 lee: added label "Total Unit Cost"
11 BUSINESS_UNIT_AM Character(5) VARCHAR2(5) NOT NULL AM Business Unit
12 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
13 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
14 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
15 CB_SELECT_PO Character(1) VARCHAR2(1) NOT NULL Select PO Schedule Checkbox

Y/N Table Edit

16 CONSIGNED_FLAG Character(1) VARCHAR2(1) NOT NULL Consigned Flag

Y/N Table Edit

Default Value: N

17 COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Cost
18 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
19 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
20 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
21 LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
22 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
23 PO_DIST_LINE_NUM Number(5,0) INTEGER NOT NULL PO Distribution Line Number
24 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
25 PROFILE_ID Character(10) VARCHAR2(10) NOT NULL Asset Profile ID
26 QUANTITY Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Interface
27 QTY_MOVED_ASSET Number(16,4) DECIMAL(15,4) NOT NULL Qty Asset Moved
28 QTY_MOVED_INV Number(16,4) DECIMAL(15,4) NOT NULL Received Base
29 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
30 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
31 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
32 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
33 TAG_NUMBER Character(12) VARCHAR2(12) NOT NULL Tag Number
34 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

35 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField

Prompt Table: PRODUCT_BUGL_VW

36 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code

Prompt Table: FUND_BUGL_VW

37 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field

Prompt Table: CLASSCF_BUGL_VW

38 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField

Prompt Table: PROGRAM_BUGL_VW

39 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference

Prompt Table: BUD_REF_BUGL_VW

40 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate

Prompt Table: AFFILIATE_VW

41 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1

Prompt Table: %EDIT_INTRA01

42 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate

Prompt Table: %EDIT_INTRA02

43 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1

Prompt Table: CF1_BUGL_VW

44 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2

Prompt Table: CF2_BUGL_VW

45 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3

Prompt Table: CF3_BUGL_VW

46 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: PROJID_BUGL_VW

47 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
48 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
49 ANALYSIS_TYPE Character(3) VARCHAR2(3) NOT NULL Analysis Type
50 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category
51 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory
52 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
53 VIN Character(18) VARCHAR2(18) NOT NULL VIN
54 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area
55 STOR_LEVEL_1 Character(4) VARCHAR2(4) NOT NULL Storage Level 1
56 STOR_LEVEL_2 Character(4) VARCHAR2(4) NOT NULL Storage Level 2
57 STOR_LEVEL_3 Character(4) VARCHAR2(4) NOT NULL Storage Level 3
58 STOR_LEVEL_4 Character(4) VARCHAR2(4) NOT NULL Storage Level 4