AP_WC_PRQST_VW1(SQL View) |
Index Back |
---|---|
AP WorkCenter Payment RequestAP WC - Payment Request for Review |
SELECT DISTINCT A.REQUEST_ID , B.ROLEUSER , A.OPRID , %DatePart(A.ENTERED_DTTM) , A.OPRID_LAST_UPDT , A.LASTUPDT_DTTM , A.PROCESS_INSTANCE , A.IN_PROCESS_FLG , A.PR_STATUS , A.ROLENAME , A.PR_TEMPLATE_ID , A.BUSINESS_UNIT , A.VOUCHER_ID , A.MAX_VOUCHER_LINE , A.SCHEDULED_PAY_DT , A.INVOICE_ID , A.INVOICE_DT , A.VENDOR_SETID , A.VENDOR_SETID , A.VENDOR_ID , A.VENDOR_NAME_SHORT , A.NAME1 , A.VNDR_LOC , A.ADDRESS_SEQ_NUM , A.DESCR50 , A.LINE_AMT , A.MISC_AMT , A.FREIGHT_AMT , A.TAX_AMT , A.VAT_ENTRD_AMT , A.GROSS_AMT , A.TXN_CURRENCY_CD , A.COMMENT1 FROM PS_PR_REQUEST A , PSROLEUSER B WHERE A.ROLENAME = B.ROLENAME AND (A.PR_STATUS = '2' OR (A.PR_STATUS = '3' AND EXISTS ( SELECT 'X' FROM PS_PR_TEMPLATE B WHERE A.PR_TEMPLATE_ID = B.PR_TEMPLATE_ID AND B.PR_WORKFLOW_OPT IN ('B', 'N')))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | REQUEST_ID | Character(10) | VARCHAR2(10) NOT NULL | Request ID |
2 | ROLEUSER | Character(30) | VARCHAR2(30) NOT NULL | Role User |
3 | OPRID | Character(30) | VARCHAR2(30) NOT NULL |
A user's ID (see PSOPRDEFN).
Default Value: OPR_DEF_TBL_AP.OPRID |
4 | ENTERED_DT | Date(10) | DATE | Entered on |
5 | OPRID_LAST_UPDT | Character(30) | VARCHAR2(30) NOT NULL |
Last User to Update
Default Value: OPR_DEF_TBL_AP.OPRID |
6 | LASTUPDT_DTTM | DateTime(26) | TIMESTAMP | Last Upd Dttm |
7 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |
8 | IN_PROCESS_FLG | Character(1) | VARCHAR2(1) NOT NULL |
In process flag
Default Value: N |
9 | PR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
To detemine Payment Request Status
1=New 2=Denied 3=Submitted 4=Pending 5=Approved 6=Vouchered 7=Cancelled |
10 | ROLENAME | Character(30) | VARCHAR2(30) NOT NULL | The name of a Role in the Role Definition Table (see PSROLEDEFN). |
11 | PR_TEMPLATE_ID | Character(30) | VARCHAR2(30) NOT NULL | Payment Request Template Name |
12 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BUS_AP_NONVW |
13 | VOUCHER_ID | Character(8) | VARCHAR2(8) NOT NULL | Voucher ID |
14 | MAX_VOUCHER_LINE | Number(5,0) | INTEGER NOT NULL | Max Voucher Lines |
15 | SCHEDULED_PAY_DT | Date(10) | DATE | Scheduled to Pay |
16 | INVOICE_ID | Character(30) | VARCHAR2(30) NOT NULL | Invoice Number |
17 | INVOICE_DT | Date(10) | DATE | Invoice Date |
18 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
19 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
20 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
21 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL | Short Vendor Name |
22 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
23 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL |
Vendor Location
Prompt Table: VNDR_LOC_AP_VW |
24 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL |
Address Sequence Number
Prompt Table: VNDR_ADD2_AP_VW |
25 | DESCR50 | Character(50) | VARCHAR2(50) NOT NULL | Description of length 50 |
26 | LINE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Cost Retired at Chart |
27 | MISC_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Misc. Amount |
28 | FREIGHT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Freight Amount |
29 | TAX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Amount |
30 | VAT_ENTRD_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Entered VAT Amount |
31 | GROSS_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Invoice Amount |
32 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL |
Transaction Currency
Prompt Table: CURR_TXN_VW |
33 | COMMENT1 | Character(254) | VARCHAR2(254) NOT NULL | Comments |