RFQ_REQ_HDR_VW(SQL View) |
Index Back |
---|---|
Eligible REQ Template for RFQDate Initials Reference # Description 10/17/2008 CHAN 1792199002 Ensured that in RFQ 'Copy From Req' allows for partial string search criteria. |
SELECT P.BUSINESS_UNIT , P.REQ_ID , P.REQ_STATUS , P.HOLD_STATUS , P.REQ_DT , P.REQUESTOR_ID , P.BUDGET_HDR_STATUS FROM PS_REQ_HDR P WHERE P.IN_PROCESS_FLG = 'N' AND P.HOLD_STATUS = 'N' AND P.BUDGET_HDR_STATUS = 'V' AND P.REQ_STATUS = 'A' AND EXISTS ( SELECT 'X' FROM PS_REQ_LINE B , PS_REQ_DISTRIB_SUM C WHERE B.BUSINESS_UNIT = P.BUSINESS_UNIT AND B.REQ_ID = P.REQ_ID AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.REQ_ID = C.REQ_ID AND B.LINE_NBR = C.LINE_NBR AND B.CURR_STATUS = 'A' AND B.SOURCE_STATUS = 'A' AND B.IN_PROCESS_FLG = 'N' AND B.AMT_ONLY_FLG <> 'Y' AND B.PRICE_REQ >= 0 AND (C.QTY_OPEN > 0 OR C.AMT_OPEN > 0) ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BU_PM_NONVW |
2 | REQ_ID | Character(10) | VARCHAR2(10) NOT NULL |
Requisition ID
Default Value: NEXT |
3 | REQ_STATUS | Character(4) | VARCHAR2(4) NOT NULL |
Req status
A=Approved C=Complete D=Denied I=Initial LA=Line Approved O=Open P=Pending Approval V=Preview X=Canceled Default Value: O |
4 | HOLD_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Hold From Further Processing
Y/N Table Edit Default Value: N |
5 | REQ_DT | Date(10) | DATE NOT NULL |
Requisition Date
Default Value: %date |
6 | REQUESTOR_ID | Character(30) | VARCHAR2(30) NOT NULL | Requestor id |
7 | BUDGET_HDR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Budget Checking Header Status
E=Error in Budget Check I=Document In Processing N=Not Budget Checked P=Provisionally Valid V=Valid |