VCHR_REC_LN_VW

(SQL View)
Index Back

Voucher Recv Line View


SELECT DISTINCT A.BUSINESS_UNIT , A.RECEIVER_ID , C.RECV_LN_NBR , C.RECV_SHIP_SEQ_NBR , C.BUSINESS_UNIT_PO , C.PO_ID , C.LINE_NBR , C.SCHED_NBR , E.ITM_SETID , C.INV_ITEM_ID , %Substring(C.DESCR254_MIXED,1,30) , C.RECEIPT_UM , C.PRICE_PO , C.QTY_SH_ACCPT_VUOM - F.QTY_MATCHED , C.MERCHANDISE_AMT - F.AMT_MATCHED , D.PRICE_PO , E.UNIT_OF_MEASURE , D.UNIT_PRC_TOL , D.PCT_UNIT_PRC_TOL , D.EXT_PRC_TOL , D.PCT_EXT_PRC_TOL , D.MATCH_LINE_OPT , C.RECEIPT_UM , C.QTY_SH_ACCPT_VUOM - F.QTY_MATCHED , E.WTHD_CD , E.WTHD_SW , D.DISTRIB_MTHD_FLG , C.CURRENCY_CD , C.RECV_SHIP_STATUS , C.RECV_SHIP_STATUS , C.SHIPTO_ID , D.VAT_USE_ID , D.VAT_TXN_TYPE_CD , D.TAX_CD_VAT , D.VAT_APPLICABILITY , D.SUT_APPLICABILITY , D.TAX_CD_SUT , D.SUT_EXCPTN_CERTIF , D.SUT_EXCPTN_TYPE , D.ULTIMATE_USE_CD , e.physical_nature , d.vat_rcrd_inpt_flg , d.vat_rcrd_outpt_flg , d.vat_rvrse_chg_gds , d.vat_dclrtn_point , d.vat_calc_gross_net , d.vat_calc_frght_flg , d.vat_calc_misc_flg , d.vat_recalc_flg , d.vat_treatment_grp , d.vat_excptn_type , d.vat_excptn_certif , d.country_ship_to , d.country_ship_from , d.country_vat_billto , d.country_vat_billfr , d.country_vat_perfrm , d.country_loc_buyer , d.country_loc_seller , d.country_vat_supply , d.state_loc_buyer , d.state_loc_seller , d.state_ship_from , d.state_ship_to , d.state_vat_default , d.state_vat_perfrm , d.state_vat_supply , d.vat_rgstrn_seller , d.vat_calc_type , d.vat_round_rule , A.RECEIPT_DT , a.vendor_id , a.vndr_loc , %subrec(PUR_USR_HDR_SBR, A) , %subrec(PUR_USR_LIN_SBR, E) , %subrec(PUR_USR_SHP_SBR, C) , D.SUT_BASE_ID , d.tax_vat_flg , d.tax_frght_flg , d.tax_misc_flg , e.category_id , d.freight_terms , d.ship_type_id , d.vat_treatment , d.vat_svc_supply_flg , d.vat_service_type , C.BILL_OF_LADING , C.PACKSLIP_NO , E.CNTRCT_ID , C.ITM_ID_VNDR , E.MFG_ITM_ID , C.AMT_ONLY_FLG , A.MATCH_CNTRL_ID , C.MERCHANDISE_AMT_PO , E.CNTRCT_LINE_NBR , E.RELEASE_NBR , E.VERSION_NBR , E.CAT_LINE_NBR , %subrec(VCHR_PO_GRP_SBR, E) , c.descr254_mixed , E.MFG_ID , E.UPN_TYPE_CD , E.UPN_ID FROM PS_RECV_HDR_FS A , PS_RCV_L_SH_PRO_VW C , PS_PO_LINE_FS E , PS_PO_LINE_SHIP_FS D , PS_RECV_LN_SHP_MTH F , PS_PO_HDR_FS G WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.RECEIVER_ID = C.RECEIVER_ID AND A.IN_PROCESS_FLG = 'N' AND (A.ERS_FLAG = 'N' OR A.ERS_FLAG = ' ') AND C.RECV_SHIP_STATUS IN ('R','O','M','C') AND C.RECV_LN_MATCH_OPT IN ('N', 'P') AND C.BUSINESS_UNIT_PO = E.BUSINESS_UNIT AND C.PO_ID = E.PO_ID AND C.LINE_NBR = E.LINE_NBR AND C.BUSINESS_UNIT_PO = 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 C.BUSINESS_UNIT = F.BUSINESS_UNIT AND C.RECEIVER_ID = F.RECEIVER_ID AND C.RECV_LN_NBR = F.RECV_LN_NBR AND G.BUSINESS_UNIT = E.BUSINESS_UNIT AND G.PO_ID = E.PO_ID AND G.BUDGET_HDR_STATUS = 'V' AND G.BUDGET_HDR_STS_NP = 'V' AND EXISTS ( SELECT 'X' FROM PS_PO_LINE_DIST_FS WHERE BUSINESS_UNIT = D.BUSINESS_UNIT AND PO_ID = D.PO_ID AND LINE_NBR = D.LINE_NBR AND DST_ACCT_TYPE = 'DST' AND KK_CLOSE_FLAG <> 'Y')

  • Parent record: RECV_HDR_FS
  • # 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 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
    6 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
    7 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
    8 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
    9 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
    10 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
    11 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    12 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
    MHR=Muti Hourly
    PER=Percentage
    SQF=Square Footage
    13 UNIT_PRICE Signed Number(17,5) DECIMAL(15,5) NOT NULL Unit Price
    14 QTY_VCHR Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Vouchered
    15 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
    16 PRICE_PO Signed Number(17,5) DECIMAL(15,5) NOT NULL Purchase Order Price
    17 UOM_PO Character(3) VARCHAR2(3) NOT NULL Unit Of Measure PO
    18 UNIT_PRC_TOL Number(14,5) DECIMAL(13,5) NOT NULL Unit Price Tolerance
    19 PCT_UNIT_PRC_TOL Number(6,2) DECIMAL(5,2) NOT NULL % Unit Price Tolerance
    20 EXT_PRC_TOL Number(14,5) DECIMAL(13,5) NOT NULL Ext Price Tolerance
    21 PCT_EXT_PRC_TOL Number(6,2) DECIMAL(5,2) NOT NULL % Ext Price Tolerance
    22 MATCH_LINE_OPT Character(1) VARCHAR2(1) NOT NULL Match Line Option
    E=ERS
    F=Full Match
    N=Don't Match
    23 UOM_RECV Character(3) VARCHAR2(3) NOT NULL Unit Of Measure
    24 QTY_SH_ACCPT_VUOM Number(16,4) DECIMAL(15,4) NOT NULL Accept QTY in Supplier UOM
    25 WTHD_CD Character(5) VARCHAR2(5) NOT NULL Withholding Code
    26 WTHD_SW Character(1) VARCHAR2(1) NOT NULL Withholding Applicable Flag
    B=Global and 1099
    G=Global
    T=1099
    27 DISTRIB_MTHD_FLG Character(1) VARCHAR2(1) NOT NULL Distribute by
    A=Amount
    Q=Quantity
    28 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
    29 RECV_LN_STATUS Character(1) VARCHAR2(1) NOT NULL Receiver Line Status
    C=Closed Item
    H=Hold Item
    I=In Inspection
    M=Moved to Destination
    O=Open
    P=PO Partially Received
    R=Fully Received
    X=Canceled
    30 RECV_SHIP_STATUS Character(1) VARCHAR2(1) NOT NULL Receipt Schedule Status
    C=Closed
    H=Hold
    O=Open
    R=Received
    X=Canceled
    31 SHIPTO_ID Character(10) VARCHAR2(10) NOT NULL Ship To Location
    32 VAT_USE_ID Character(6) VARCHAR2(6) NOT NULL VAT Use Type
    33 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.
    34 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.
    35 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
    36 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
    37 TAX_CD_SUT Character(8) VARCHAR2(8) NOT NULL Tax Code - Sales and Use Tax
    38 SUT_EXCPTN_CERTIF Character(20) VARCHAR2(20) NOT NULL Sales/Use Tax Exception Certif
    39 SUT_EXCPTN_TYPE Character(1) VARCHAR2(1) NOT NULL Sales/Use Tax Exception Type
    D=Direct Pay
    E=Exempt/Exonerated
    N=None
    40 ULTIMATE_USE_CD Character(8) VARCHAR2(8) NOT NULL Ultimate Use Code
    41 PHYSICAL_NATURE Character(1) VARCHAR2(1) NOT NULL Physical Nature
    G=Goods
    S=Services
    42 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.
    43 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.
    44 VAT_RVRSE_CHG_GDS Character(1) VARCHAR2(1) NOT NULL VAT Reverse Charge goods flag
    45 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
    46 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
    47 VAT_CALC_FRGHT_FLG Character(1) VARCHAR2(1) NOT NULL Include Freight
    48 VAT_CALC_MISC_FLG Character(1) VARCHAR2(1) NOT NULL Include Miscellaneous
    49 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.
    50 VAT_TREATMENT_GRP Character(4) VARCHAR2(4) NOT NULL VAT Treatment Group
    51 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
    52 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.
    53 COUNTRY_SHIP_TO Character(3) VARCHAR2(3) NOT NULL Specifies the country to which the invoice contents were shipped (for VAT processing only).
    54 COUNTRY_SHIP_FROM Character(3) VARCHAR2(3) NOT NULL Specifies the country from which the invoice contents were shipped (for VAT processing only).
    55 COUNTRY_VAT_BILLTO Character(3) VARCHAR2(3) NOT NULL Specifies the country where an invoice is sent (for VAT processing only).
    56 COUNTRY_VAT_BILLFR Character(3) VARCHAR2(3) NOT NULL Specifies the country where an invoice is generated (for VAT processing only).
    57 COUNTRY_VAT_PERFRM Character(3) VARCHAR2(3) NOT NULL Country Where Service Physically Performed
    58 COUNTRY_LOC_BUYER Character(3) VARCHAR2(3) NOT NULL Buyer's Location Country - May be either the VAT Entity or the Trading Partner
    59 COUNTRY_LOC_SELLER Character(3) VARCHAR2(3) NOT NULL Seller's Location Country - May be either the VAT Entity or the Trading Partner
    60 COUNTRY_VAT_SUPPLY Character(3) VARCHAR2(3) NOT NULL VAT Place of Supply Country
    61 STATE_LOC_BUYER Character(6) VARCHAR2(6) NOT NULL Buyer's Location State - May be either the VAT Entity or the Trading Partner
    62 STATE_LOC_SELLER Character(6) VARCHAR2(6) NOT NULL Seller's Location State - May be either the VAT Entity or the Trading Partner
    63 STATE_SHIP_FROM Character(6) VARCHAR2(6) NOT NULL Ship From State
    64 STATE_SHIP_TO Character(6) VARCHAR2(6) NOT NULL Ship To State
    65 STATE_VAT_DEFAULT Character(6) VARCHAR2(6) NOT NULL VAT Defaulting State
    66 STATE_VAT_PERFRM Character(6) VARCHAR2(6) NOT NULL State Where Service Physically Performed
    67 STATE_VAT_SUPPLY Character(6) VARCHAR2(6) NOT NULL VAT Place of Supply State
    68 VAT_RGSTRN_SELLER Character(20) VARCHAR2(20) NOT NULL Seller's VAT Registration
    69 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
    70 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
    71 RECEIPT_DT Date(10) DATE Received Date
    72 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
    73 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
    74 USER_HDR_CHAR1 Character(1) VARCHAR2(1) NOT NULL Custom Character 1
    75 CUSTOM_C100_A1 Character(100) VARCHAR2(100) NOT NULL Custom Field 1
    76 CUSTOM_C100_A2 Character(100) VARCHAR2(100) NOT NULL Custom Field 2
    77 CUSTOM_C100_A3 Character(100) VARCHAR2(100) NOT NULL Custom Field 3
    78 CUSTOM_C100_A4 Character(100) VARCHAR2(100) NOT NULL Custom Field 4
    79 CUSTOM_DATE_A Date(10) DATE Custom Date
    80 CUSTOM_C1_A Character(1) VARCHAR2(1) NOT NULL Custom Character 2
    81 USER_LINE_CHAR1 Character(1) VARCHAR2(1) NOT NULL Custom Character 1
    82 CUSTOM_C100_B1 Character(100) VARCHAR2(100) NOT NULL Custom Field 1
    83 CUSTOM_C100_B2 Character(100) VARCHAR2(100) NOT NULL Custom Field 2
    84 CUSTOM_C100_B3 Character(100) VARCHAR2(100) NOT NULL Custom Field 3
    85 CUSTOM_C100_B4 Character(100) VARCHAR2(100) NOT NULL Custom Field 4
    86 CUSTOM_DATE_B Date(10) DATE Custom Date
    87 CUSTOM_C1_B Character(1) VARCHAR2(1) NOT NULL Custom Character 2
    88 USER_SCHED_CHAR1 Character(1) VARCHAR2(1) NOT NULL Custom Character 1
    89 CUSTOM_C100_C1 Character(100) VARCHAR2(100) NOT NULL Custom Field 1
    90 CUSTOM_C100_C2 Character(100) VARCHAR2(100) NOT NULL Custom Field 2
    91 CUSTOM_C100_C3 Character(100) VARCHAR2(100) NOT NULL Custom Field 3
    92 CUSTOM_DATE_C1 Date(10) DATE Custom Date 1
    93 CUSTOM_DATE_C2 Date(10) DATE Custom Date 2
    94 CUSTOM_C1_C Character(1) VARCHAR2(1) NOT NULL Custom Character 2
    95 SUT_BASE_ID Character(10) VARCHAR2(10) NOT NULL Sales/Use Tax Destination
    96 TAX_VAT_FLG Character(1) VARCHAR2(1) NOT NULL Include VAT
    N=No
    Y=Yes
    97 TAX_FRGHT_FLG Character(1) VARCHAR2(1) NOT NULL Include Freight
    98 TAX_MISC_FLG Character(1) VARCHAR2(1) NOT NULL Include Misc Charges
    99 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
    100 FREIGHT_TERMS Character(10) VARCHAR2(10) NOT NULL Freight Terms Code
    101 SHIP_TYPE_ID Character(10) VARCHAR2(10) NOT NULL Ship Via Code
    102 VAT_TREATMENT Character(4) VARCHAR2(4) NOT NULL VAT Treatment
    103 VAT_SVC_SUPPLY_FLG Character(1) VARCHAR2(1) NOT NULL VAT Services Place of Supply Flag
    1=Supplier's Countries
    2=Buyer's Countries
    3=Where Physically Performed
    104 VAT_SERVICE_TYPE Character(1) VARCHAR2(1) NOT NULL VAT Service Type
    1=Freight Transport
    2=Other
    3=Electronics/Communication
    105 BILL_OF_LADING Character(30) VARCHAR2(30) NOT NULL Specifies a bill of lading number associated with a Receivables item.
    106 PACKSLIP_NO Character(22) VARCHAR2(22) NOT NULL Packing Slip Number
    107 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
    108 ITM_ID_VNDR Character(50) VARCHAR2(50) NOT NULL Vendor Item ID
    109 MFG_ITM_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer's Item ID
    110 AMT_ONLY_FLG Character(1) VARCHAR2(1) NOT NULL Amount Only
    N=No
    Y=Yes
    111 MATCH_CNTRL_ID Character(10) VARCHAR2(10) NOT NULL Match Rule
    112 MERCHANDISE_AMT_PO Signed Number(28,3) DECIMAL(26,3) NOT NULL PO Merchandise Amount
    113 CNTRCT_LINE_NBR Number(5,0) INTEGER NOT NULL Buying Agreement Line Nbr
    114 RELEASE_NBR Number(5,0) INTEGER NOT NULL Release Number
    115 VERSION_NBR Number(5,0) INTEGER NOT NULL Contract Version number
    116 CAT_LINE_NBR Number(5,0) INTEGER NOT NULL Contract Category Line Number
    117 PO_GROUP_ID Character(18) VARCHAR2(18) NOT NULL GroupID
    118 PRIMARY_UNIT Character(1) VARCHAR2(1) NOT NULL Primary Unit
    N=No
    Y=Yes
    119 UNIT_ALLOC_QTY Number(16,4) DECIMAL(15,4) NOT NULL Unit Allocation Qty
    120 UNIT_ALLOC_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Unit Allocation Amt
    121 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
    122 MFG_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer ID
    123 UPN_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Universal Product Number Format Type
    124 UPN_ID Character(20) VARCHAR2(20) NOT NULL Universal Product Number