VCHR_PO_LNM_VW2

(SQL View)
Index Back

Voucher PO Line


SELECT a.business_unit , a.po_id , b.line_nbr , c.sched_nbr , b.itm_setid , b.inv_item_id , %Substring(b.descr254_mixed, 1, 30) , b.unit_of_measure , c.price_po , c.merchandise_amt , c.qty_po , c.qty_po , b.unit_of_measure , c.price_po , c.unit_prc_tol , c.pct_unit_prc_tol , c.ext_prc_tol , c.pct_ext_prc_tol , c.match_line_opt , b.wthd_cd , b.wthd_sw , c.distrib_mthd_flg , a.currency_cd , c.shipto_id , c.sut_base_id , c.tax_cd_sut , c.sut_excptn_type , c.sut_excptn_certif , c.sut_applicability , c.vat_applicability , c.tax_cd_vat , c.vat_txn_type_cd , c.vat_use_id , c.freight_terms , c.ultimate_use_cd , b.physical_nature , c.vat_rcrd_inpt_flg , c.vat_rcrd_outpt_flg , c.vat_rvrse_chg_gds , c.vat_dclrtn_point , c.vat_calc_gross_net , c.vat_calc_frght_flg , c.vat_calc_misc_flg , c.vat_recalc_flg , c.vat_treatment_grp , c.vat_excptn_type , c.vat_excptn_certif , c.country_ship_to , c.country_ship_from , c.country_vat_billto , c.country_vat_billfr , c.country_loc_buyer , c.country_loc_seller , c.country_vat_supply , c.state_loc_buyer , c.state_loc_seller , c.state_ship_from , c.state_ship_to , c.state_vat_default , c.state_vat_perfrm , c.state_vat_supply , c.vat_rgstrn_seller , c.vat_calc_type , c.vat_round_rule , a.vendor_id , a.vndr_loc , %subrec(PUR_USR_HDR_SBR, A) , %subrec(PUR_USR_LIN_SBR, B) , %subrec(PUR_USR_SHP_SBR, C) , c.tax_vat_flg , c.tax_frght_flg , c.tax_misc_flg , b.category_id , c.ship_type_id , c.vat_treatment , b.cntrct_id , b.itm_id_vndr , b.mfg_itm_id , b.amt_only_flg , b.recv_req , a.match_cntrl_id , b.version_nbr , %subrec(VCHR_PO_GRP_SBR, B) , b.descr254_mixed ,b.mfg_id ,b.upn_type_cd ,b.upn_id FROM ps_po_hdr_fs a , ps_po_line_fs b , PS_PO_LINE_SHIP_FS c , ps_po_ln_ship_mtch d WHERE a.business_unit = b.business_unit AND a.po_id = b.po_id AND b.business_unit = c.business_unit AND b.po_id = c.po_id AND b.line_nbr = c.line_nbr AND b.po_group_id = ' ' AND a.in_process_flg = 'N' AND ((a.po_status IN ('D','X','PX')) OR ((a.chng_ord_batch > 0) AND (a.po_status IN ('D','X','PX'))) OR (a.po_status = 'C')) AND (a.ers_action = 'N' OR a.ers_action = ' ') AND c.business_unit = d.business_unit AND c.po_id = d.po_id AND c.line_nbr = d.line_nbr AND c.sched_nbr = d.sched_nbr AND b.cancel_status <> 'X' AND c.cancel_status <> 'X' AND A.BUDGET_HDR_STATUS = 'V' AND A.BUDGET_HDR_STS_NP = 'V' AND EXISTS ( SELECT 'X' FROM PS_PO_LINE_DIST_FS WHERE BUSINESS_UNIT = C.BUSINESS_UNIT AND PO_ID = C.PO_ID AND LINE_NBR = C.LINE_NBR AND DST_ACCT_TYPE = 'DST' AND KK_CLOSE_FLAG <> 'Y' )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
2 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
3 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
4 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
5 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
6 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item 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 UNIT_PRICE Signed Number(17,5) DECIMAL(15,5) NOT NULL Unit Price
10 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
11 QTY_VCHR Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Vouchered
12 QTY_PO Number(16,4) DECIMAL(15,4) NOT NULL Purchase Order Quantity
13 UOM_PO Character(3) VARCHAR2(3) NOT NULL Unit Of Measure PO
14 PRICE_PO Signed Number(17,5) DECIMAL(15,5) NOT NULL Purchase Order Price
15 UNIT_PRC_TOL Number(14,5) DECIMAL(13,5) NOT NULL Unit Price Tolerance
16 PCT_UNIT_PRC_TOL Number(6,2) DECIMAL(5,2) NOT NULL % Unit Price Tolerance
17 EXT_PRC_TOL Number(14,5) DECIMAL(13,5) NOT NULL Ext Price Tolerance
18 PCT_EXT_PRC_TOL Number(6,2) DECIMAL(5,2) NOT NULL % Ext Price Tolerance
19 MATCH_LINE_OPT Character(1) VARCHAR2(1) NOT NULL Match Line Option
E=ERS
F=Full Match
N=Don't Match
20 WTHD_CD Character(5) VARCHAR2(5) NOT NULL Withholding Code
21 WTHD_SW Character(1) VARCHAR2(1) NOT NULL Withholding Applicable Flag
B=Global and 1099
G=Global
T=1099
22 DISTRIB_MTHD_FLG Character(1) VARCHAR2(1) NOT NULL Distribute by
A=Amount
Q=Quantity
23 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
24 SHIPTO_ID Character(10) VARCHAR2(10) NOT NULL Ship To Location
25 SUT_BASE_ID Character(10) VARCHAR2(10) NOT NULL Sales/Use Tax Destination
26 TAX_CD_SUT Character(8) VARCHAR2(8) NOT NULL Tax Code - Sales and Use Tax
27 SUT_EXCPTN_TYPE Character(1) VARCHAR2(1) NOT NULL Sales/Use Tax Exception Type
D=Direct Pay
E=Exempt/Exonerated
N=None
28 SUT_EXCPTN_CERTIF Character(20) VARCHAR2(20) NOT NULL Sales/Use Tax Exception Certif
29 SUT_APPLICABILITY Character(1) VARCHAR2(1) NOT NULL Sales/Use Tax Applicability
D=Direct Pay
E=Item is Exempt
S=Sales Tax Applicable
U=Use Tax Applicable
X=Purchaser Is Exonerated
30 VAT_APPLICABILITY Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not a transaction is eligible for VAT (Value Added Tax) taxation or why it is not eligible.
E=Exempt
N=Not Applicable
O=Outside of Scope of VAT
S=Suspended
T=Taxable
V=VAT Only
X=Exonerated
31 TAX_CD_VAT Character(8) VARCHAR2(8) NOT NULL Defines the VAT (Value Added Tax) percentage (via link to the Tax Authority) and is used to retrieve VAT accounting ChartFields. The VAT code determines how the VAT amount is calculated on a transaction and how that amount is accounted and reported for.
32 VAT_TXN_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Specifies a user-defined category of business transaction that is subject to VAT accounting and reporting. The VAT code and the VAT transaction type are used in conjunction with the VAT account type to obtain the ChartFields for accounting entries. Some examples of VAT Transaction Types are Exempt Sales Exempt Purchases Triangulation EU Sales and Domestic Sales.
33 VAT_USE_ID Character(6) VARCHAR2(6) NOT NULL VAT Use Type
34 FREIGHT_TERMS Character(10) VARCHAR2(10) NOT NULL Freight Terms Code
35 ULTIMATE_USE_CD Character(8) VARCHAR2(8) NOT NULL Ultimate Use Code
36 PHYSICAL_NATURE Character(1) VARCHAR2(1) NOT NULL Physical Nature
G=Goods
S=Services
37 VAT_RCRD_INPT_FLG Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not (Y or N) a business unit will pay the VAT and recover it later from the VAT tax authority. VAT input is usually associated with purchase transactions.
38 VAT_RCRD_OUTPT_FLG Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not (Y or N) VAT will be collected by the vendor on behalf of the government. VAT output is usually associated with sales transactions.
39 VAT_RVRSE_CHG_GDS Character(1) VARCHAR2(1) NOT NULL VAT Reverse Charge goods flag
40 VAT_DCLRTN_POINT Character(1) VARCHAR2(1) NOT NULL A flag that specifies when VAT information for sales or purchase transaction is recognized for reporting to the appropriate VAT authority. VAT is declared at invoice time, delivery time, accounting date or the time of payment.
A=At Accounting Date
D=At Delivery Time
I=At Invoice Time
P=At Payment Time
41 VAT_CALC_GROSS_NET Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether VAT calculation should be done on the Gross (G) amount or on the Net (N) amount of sales or purchase transaction. When calculating VAT at net the early payment discount is applied to the goods amount before calculating the VAT. When calculating VAT at gross the VAT is initially calculated based on the gross transaction amount.
G=Calculate at Gross
N=Calculate at Net
42 VAT_CALC_FRGHT_FLG Character(1) VARCHAR2(1) NOT NULL Include Freight
43 VAT_CALC_MISC_FLG Character(1) VARCHAR2(1) NOT NULL Include Miscellaneous
44 VAT_RECALC_FLG Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not the VAT discount amount is recalculated at payment time. This field is only used if the VAT Calculation Type (VAT_CAL_GROSS_NET) is gross.
45 VAT_TREATMENT_GRP Character(4) VARCHAR2(4) NOT NULL VAT Treatment Group
46 VAT_EXCPTN_TYPE Character(1) VARCHAR2(1) NOT NULL A flag that specifies the reason for a VAT exemption for a customer. Suspension (S) and Exoneration (X) are examples of Exception Type.
N=None
S=Suspended
X=Exonerated
47 VAT_EXCPTN_CERTIF Character(20) VARCHAR2(20) NOT NULL Specifies the VAT exception certificate number. This identifier serves as proof of customer's exemption from VAT.
48 COUNTRY_SHIP_TO Character(3) VARCHAR2(3) NOT NULL Specifies the country to which the invoice contents were shipped (for VAT processing only).
49 COUNTRY_SHIP_FROM Character(3) VARCHAR2(3) NOT NULL Specifies the country from which the invoice contents were shipped (for VAT processing only).
50 COUNTRY_VAT_BILLTO Character(3) VARCHAR2(3) NOT NULL Specifies the country where an invoice is sent (for VAT processing only).
51 COUNTRY_VAT_BILLFR Character(3) VARCHAR2(3) NOT NULL Specifies the country where an invoice is generated (for VAT processing only).
52 COUNTRY_LOC_BUYER Character(3) VARCHAR2(3) NOT NULL Buyer's Location Country - May be either the VAT Entity or the Trading Partner
53 COUNTRY_LOC_SELLER Character(3) VARCHAR2(3) NOT NULL Seller's Location Country - May be either the VAT Entity or the Trading Partner
54 COUNTRY_VAT_SUPPLY Character(3) VARCHAR2(3) NOT NULL VAT Place of Supply Country
55 STATE_LOC_BUYER Character(6) VARCHAR2(6) NOT NULL Buyer's Location State - May be either the VAT Entity or the Trading Partner
56 STATE_LOC_SELLER Character(6) VARCHAR2(6) NOT NULL Seller's Location State - May be either the VAT Entity or the Trading Partner
57 STATE_SHIP_FROM Character(6) VARCHAR2(6) NOT NULL Ship From State
58 STATE_SHIP_TO Character(6) VARCHAR2(6) NOT NULL Ship To State
59 STATE_VAT_DEFAULT Character(6) VARCHAR2(6) NOT NULL VAT Defaulting State
60 STATE_VAT_PERFRM Character(6) VARCHAR2(6) NOT NULL State Where Service Physically Performed
61 STATE_VAT_SUPPLY Character(6) VARCHAR2(6) NOT NULL VAT Place of Supply State
62 VAT_RGSTRN_SELLER Character(20) VARCHAR2(20) NOT NULL Seller's VAT Registration
63 VAT_CALC_TYPE Character(1) VARCHAR2(1) NOT NULL "A flag that indicates how VAT is stated and determines how the system performs the relevant VAT calculations. If ""Exclusive"", the VAT amount is stated separately from the merchandise amount. If ""Inclusive"", the VAT is not stated separately but is included with the merchandise amount."
E=Exclusive
I=Inclusive
64 VAT_ROUND_RULE Character(1) VARCHAR2(1) NOT NULL " Rounding rule to be applied to VAT calculations. Options are 'Natural'
D=Round Down
N=Natural Round
U=Round Up
65 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
66 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
67 USER_HDR_CHAR1 Character(1) VARCHAR2(1) NOT NULL Custom Character 1
68 CUSTOM_C100_A1 Character(100) VARCHAR2(100) NOT NULL Custom Field 1
69 CUSTOM_C100_A2 Character(100) VARCHAR2(100) NOT NULL Custom Field 2
70 CUSTOM_C100_A3 Character(100) VARCHAR2(100) NOT NULL Custom Field 3
71 CUSTOM_C100_A4 Character(100) VARCHAR2(100) NOT NULL Custom Field 4
72 CUSTOM_DATE_A Date(10) DATE Custom Date
73 CUSTOM_C1_A Character(1) VARCHAR2(1) NOT NULL Custom Character 2
74 USER_LINE_CHAR1 Character(1) VARCHAR2(1) NOT NULL Custom Character 1
75 CUSTOM_C100_B1 Character(100) VARCHAR2(100) NOT NULL Custom Field 1
76 CUSTOM_C100_B2 Character(100) VARCHAR2(100) NOT NULL Custom Field 2
77 CUSTOM_C100_B3 Character(100) VARCHAR2(100) NOT NULL Custom Field 3
78 CUSTOM_C100_B4 Character(100) VARCHAR2(100) NOT NULL Custom Field 4
79 CUSTOM_DATE_B Date(10) DATE Custom Date
80 CUSTOM_C1_B Character(1) VARCHAR2(1) NOT NULL Custom Character 2
81 USER_SCHED_CHAR1 Character(1) VARCHAR2(1) NOT NULL Custom Character 1
82 CUSTOM_C100_C1 Character(100) VARCHAR2(100) NOT NULL Custom Field 1
83 CUSTOM_C100_C2 Character(100) VARCHAR2(100) NOT NULL Custom Field 2
84 CUSTOM_C100_C3 Character(100) VARCHAR2(100) NOT NULL Custom Field 3
85 CUSTOM_DATE_C1 Date(10) DATE Custom Date 1
86 CUSTOM_DATE_C2 Date(10) DATE Custom Date 2
87 CUSTOM_C1_C Character(1) VARCHAR2(1) NOT NULL Custom Character 2
88 TAX_VAT_FLG Character(1) VARCHAR2(1) NOT NULL Include VAT
N=No
Y=Yes
89 TAX_FRGHT_FLG Character(1) VARCHAR2(1) NOT NULL Include Freight
90 TAX_MISC_FLG Character(1) VARCHAR2(1) NOT NULL Include Misc Charges
91 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
92 SHIP_TYPE_ID Character(10) VARCHAR2(10) NOT NULL Ship Via Code
93 VAT_TREATMENT Character(4) VARCHAR2(4) NOT NULL VAT Treatment
94 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
95 ITM_ID_VNDR Character(50) VARCHAR2(50) NOT NULL Vendor Item ID
96 MFG_ITM_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer's Item ID
97 AMT_ONLY_FLG Character(1) VARCHAR2(1) NOT NULL Amount Only
N=No
Y=Yes
98 RECV_REQ Character(1) VARCHAR2(1) NOT NULL Receiving Required
N=Optional
X=Do Not
Y=Required
99 MATCH_CNTRL_ID Character(10) VARCHAR2(10) NOT NULL Match Rule
100 VERSION_NBR Number(5,0) INTEGER NOT NULL Contract Version number
101 PO_GROUP_ID Character(18) VARCHAR2(18) NOT NULL GroupID
102 PRIMARY_UNIT Character(1) VARCHAR2(1) NOT NULL Primary Unit
N=No
Y=Yes
103 UNIT_ALLOC_QTY Number(16,4) DECIMAL(15,4) NOT NULL Unit Allocation Qty
104 UNIT_ALLOC_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Unit Allocation Amt
105 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
106 MFG_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer ID
107 UPN_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Universal Product Number Format Type
108 UPN_ID Character(20) VARCHAR2(20) NOT NULL Universal Product Number