RF_SO_EXP_VW

(SQL View)
Index Back

Service Order Expense Lines

This view retrieves expense lines for service order.

SELECT A.BUSINESS_UNIT , A.SO_ID , A.SHEET_ID , A.LINE_NBR , A.SO_LINE , %subrec(RF_EXP_LINE_SBR , A) FROM PS_RF_EXPENSE_LINE A WHERE A.SO_ID <> '0'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 SO_ID Character(10) VARCHAR2(10) NOT NULL Service Order ID
3 SHEET_ID Character(10) VARCHAR2(10) NOT NULL Report ID
4 LINE_NBR Number(5,0) INTEGER NOT NULL This field represents the integer Order Line Number.
5 SO_LINE Number(3,0) SMALLINT NOT NULL Stores the Service Order line number.
6 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID

Prompt Table: RF_GRP_MEM_VW

7 EXP_TYPE Character(3) VARCHAR2(3) NOT NULL This field is used to store the type of expense.
AIR=Airfare
ENT=Entertainment
FDB=Food - Breakfast
FDD=Food - Dinner
FDL=Food - Lunch
GAS=Gas
LOD=Lodging
MIL=Mileage
MIS=Miscellaneous
PAR=Parking
PHO=Phone
REN=Rental Car
TOL=Tolls
8 TRANS_DT Date(10) DATE Transaction Date
9 BILL_CODE_EX Character(3) VARCHAR2(3) NOT NULL Expense Billing Code

Y/N Table Edit

10 MILES Number(5,0) INTEGER NOT NULL Miles
11 TXN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Amount
12 BILLING_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount to be billed to the customer (usually recorded as an expense).
13 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency

Prompt Table: CURRENCY_CD_TBL

14 PAID_TO Character(30) VARCHAR2(30) NOT NULL Paid To
15 DESCR80 Character(80) VARCHAR2(80) NOT NULL This generic field stores the description and used used on various tables.
16 LIST_PRICE Signed Number(17,4) DECIMAL(15,4) NOT NULL List Price
17 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL This field stores the Currency Code value.
18 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL This field stores the General Ledger Business Unit. Used for the Integration with Contracts/Billing from CRM.
19 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
20 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
21 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
22 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
23 SYNCID Number(10,0) DECIMAL(10) NOT NULL The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle.
24 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time
25 COMMENTS_2000 Long Character(32700) CLOB Comment Text