PO_ITM_CNTR_VW

(SQL View)
Index Back

PO Item Contract View

06/25/2008 PKL F-AHAYT-S60K7 Contract Enhancements PO002 Manufacturer Contract. Added new fields and changed the SQL. 08/08/2018 JINGTLI PO002 MFG/DST contracts

SELECT DISTINCT c.setid , b.cntrct_id , b.version_nbr , b.inv_item_id , a.business_unit , a.po_id , b.line_nbr , a.currency_cd , b.descr254_mixed , a.po_status , b.cancel_status , b.cntrct_line_nbr , b.cat_line_nbr , b.category_id , SUM(S.Merchandise_Amt) , %Round(SUM(S.qty_po), 2) ,B.UPN_TYPE_CD ,B.UPN_ID , B.MFG_ID ,B.MFG_ITM_ID ,B.ITM_ID_VNDR ,B.VNDR_CATALOG_ID FROM ps_po_line b , ps_po_hdr a , Ps_Set_Cntrl_Rec C , PS_PO_LINE_SHIP S WHERE c.recname = 'CNTRCT_HDR' AND c.setcntrlvalue = a.business_unit AND a.business_unit = b.business_unit AND a.po_id = b.po_id AND a.po_status <> 'X' AND a.po_status <> 'PX' AND a.business_unit = s.business_unit AND a.po_id = s.po_id AND B.Line_Nbr = S.Line_Nbr GROUP BY c.setid , b.cntrct_id , b.version_nbr, b.inv_item_id , a.business_unit , a.po_id , a.currency_cd , b.line_nbr , b.descr254_mixed , a.po_status , b.cancel_status, b.cntrct_line_nbr , B.Cat_Line_Nbr , b.category_id ,B.UPN_TYPE_CD ,B.UPN_ID, B.MFG_ID ,B.MFG_ITM_ID,B.ITM_ID_VNDR,B.VNDR_CATALOG_ID

  • Related Language Record: PO_ITM_CT_LG_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
    3 VERSION_NBR Number(5,0) INTEGER NOT NULL Contract Version number
    4 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
    5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL 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 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    9 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
    10 PO_STATUS Character(2) VARCHAR2(2) NOT NULL PO Status
    A=Approved
    C=Complete
    D=Dispatched
    DA=Denied
    I=Initial
    LD=Line Denied
    O=Open
    PA=Pending Approval/Approved
    PX=Pending Cancel
    X=Canceled
    11 CANCEL_STATUS Character(1) VARCHAR2(1) NOT NULL Cancel Status
    A=Active
    C=Closed
    D=Denied
    H=Hold
    O=Open
    P=Pending Approval
    X=Canceled
    12 CNTRCT_LINE_NBR Number(5,0) INTEGER NOT NULL Buying Agreement Line Nbr
    13 CAT_LINE_NBR Number(5,0) INTEGER NOT NULL Contract Category Line Number
    14 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
    15 UP_TO_DATE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Up-To-Date Amount
    16 UP_TO_DATE_QTY Number(15,2) DECIMAL(14,2) NOT NULL Up-To-Date Quantity
    17 UPN_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Universal Product Number Format Type
    18 UPN_ID Character(20) VARCHAR2(20) NOT NULL Universal Product Number
    19 MFG_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer ID
    20 MFG_ITM_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer's Item ID
    21 ITM_ID_VNDR Character(50) VARCHAR2(50) NOT NULL Vendor Item ID
    22 VNDR_CATALOG_ID Character(20) VARCHAR2(20) NOT NULL Vendor's Catalog Number