AR_MRL_BI_VW(SQL View) |
Index Back |
---|---|
View to get MRL from AR |
SELECT U.BUSINESS_UNIT_AR , A.BILL_TO_CUST_ID , I.INVOICE , C.INVOICE_LINE , ' ' , A.GL_ENTRY_CREATED , I.BUDGET_HDR_STATUS , I.BUDGET_LINE_STATUS , A.BILLING_FREQUENCY , A.TEMPLATE_INVOICE , A.AR_LVL , 0 , I.ACCOUNTING_DT , I.BUSINESS_UNIT_GL , I.ACCOUNT , I.ALTACCT , I.DEPTID , %subrec(CF12_AN_SBR, I) , %subrec(PC_CF1_N_SBR, I) , I.ACCOUNTING_DT , I.FOREIGN_CURRENCY , %DecMult(-1, I.FOREIGN_AMOUNT ) , %DecMult(-1, I.FOREIGN_AMOUNT ) , %DecMult(-1, I.FOREIGN_AMOUNT ) , %DecMult(-1, I.FOREIGN_AMOUNT ) , 'B' , U.BUSINESS_UNIT_AR , A.BILL_TO_CUST_ID , 0 , I.LINE_DST_SEQ_NUM , I.LEDGER_GROUP , I.LEDGER , I.BUSINESS_UNIT , I.INVOICE , I.LINE_SEQ_NUM , I.ACCOUNTING_DT , I.ACCT_ENTRY_TYPE , I.DISC_SUR_LVL , I.DISC_SUR_ID , I.TAX_AUTHORITY_CD FROM PS_BI_HDR A , PS_BI_ACCT_ENTRY I , PS_BI_LINE C , PS_BUS_UNIT_TBL_BI U WHERE A.BUSINESS_UNIT = I.BUSINESS_UNIT AND A.INVOICE = I.INVOICE AND A.GL_LVL = 'B' AND I.BUSINESS_UNIT = C.BUSINESS_UNIT AND I.INVOICE = C.INVOICE AND I.LINE_SEQ_NUM = C.LINE_SEQ_NUM AND A.BUSINESS_UNIT = U.BUSINESS_UNIT |
# | 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_BUARDS_NONVW |
2 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL |
Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
Prompt Table: AR_CCTRAN_C_VW |
3 | ITEM | Character(30) | VARCHAR2(30) NOT NULL | Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number. |
4 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
5 | SYSTEM_DEFINED | Character(2) | VARCHAR2(2) NOT NULL | "A flag that indicates the accounting entry line type. The valid line types are pre-populated by PeopleSoft. For example the value is ""A"" if the line represents a debit or credit to the AR account. Some examples of other values are D (Draft Receivables entry) and L (Cash Control entry). " |
6 | GL_ENTRY_CREATED | Character(1) | VARCHAR2(1) NOT NULL | GL Accounting Entry Created |
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 |
8 | BUDGET_LINE_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
->
SL - 15-AUG-2002
MISC_CRITERIA label has been added
<-
B=Bypass E=Error N=Not Chk'd V=Valid W=Warning |
9 | BILLING_FREQUENCY | Character(3) | VARCHAR2(3) NOT NULL |
Billing Frequency
INS=Installment ONC=Once REC=Recurring |
10 | TEMPLATE_INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Template Invoice ID |
11 | AR_LVL | Character(1) | VARCHAR2(1) NOT NULL |
AR Level
H=Header is AR Open Item L=Bill Line is AR Open Item N=No AR Open Items |
12 | CC_SEQ_NUM | Number(6,0) | INTEGER NOT NULL | Sequence number |
13 | BUDGET_DT | Date(10) | DATE | Budget Date |
14 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
15 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL |
Account
Prompt Table:
%EDIT_ACCOUNT
|
16 | ALTACCT | Character(10) | VARCHAR2(10) NOT NULL |
Alternate Account
Prompt Table:
%EDIT_ALTACCT
|
17 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
18 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL | Operating Unit ChartField |
19 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL | Product ChartField |
20 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL | Fund Code |
21 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL | Class Field |
22 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL | Program Code ChartField |
23 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL | Budget Reference |
24 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL | Affiliate |
25 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL | IntraUnit Affiliate1 |
26 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL | Operating Unit Affiliate |
27 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL | Expansion chartfield 1 |
28 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 2 |
29 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 3 |
30 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL |
PC Business Unit
Prompt Table: %EDIT_BU_PC |
31 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: %EDIT_PROJECT |
32 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: %EDIT_ACTIVITY |
33 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Source Type
Prompt Table:
PROJ_RESTYPE_FS
|
34 | RESOURCE_CATEGORY | Character(5) | VARCHAR2(5) NOT NULL |
Category
Prompt Table:
%EDIT_RES_CAT
|
35 | RESOURCE_SUB_CAT | Character(5) | VARCHAR2(5) NOT NULL |
Subcategory
Prompt Table:
%EDIT_RES_SUB
|
36 | ANALYSIS_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Analysis Type
Prompt Table:
%EDIT_ANALYSIS
|
37 | ACCOUNTING_DT_REV | Date(10) | DATE | Revenue Accounting Date |
38 | FOREIGN_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Foreign Currency Code |
39 | FOREIGN_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit (accounting entry line) in the entry currency of the item. The sum of FOREIGN_AMOUNT values on AR lines should equal the ENTRY_AMT on the pending item. |
40 | BEGINNING_BAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | The bank statement beginning balance for a given bank account. |
41 | CURR_BAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Current Balance |
42 | ENDING_BAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | The bank statement end of day account balance |
43 | REV_SOURCE | Character(1) | VARCHAR2(1) NOT NULL |
Indicate where the revenue line is from.
A=Account Receivables B=Billing C=CC Transactions O=Online Panel R=Account Receivables |
44 | REV_BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
45 | REV_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Customer ID |
46 | REV_ITEM_SEQ_NUM | Number(3,0) | SMALLINT NOT NULL | Item Sequence Number |
47 | DST_SEQ_NUM | Number(6,0) | INTEGER NOT NULL | Distribution Sequence |
48 | LEDGER_GROUP | Character(10) | VARCHAR2(10) NOT NULL | Ledger Group |
49 | LEDGER | Character(10) | VARCHAR2(10) NOT NULL | Ledger |
50 | BUSINESS_UNIT_BI | Character(5) | VARCHAR2(5) NOT NULL | Billing Business Unit |
51 | INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Invoice |
52 | LINE_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Sequence |
53 | ACCOUNTING_DT_BI | Date(10) | DATE | Billing Accounting Date |
54 | ACCT_ENTRY_TYPE | Character(3) | VARCHAR2(3) NOT NULL | Account Entry Type |
55 | DISC_SUR_LVL | Number(2,0) | SMALLINT NOT NULL | Discount/Surcharge Level |
56 | DISC_SUR_ID | Character(15) | VARCHAR2(15) NOT NULL | Identifier |
57 | TAX_AUTHORITY_CD | Character(3) | VARCHAR2(3) NOT NULL | Tax Authority |