LM_BO003_B2_VW(SQL View) |
Index Back |
---|---|
For External Payment ReportFor External Payment Report |
SELECT N.OPRID , N.RUN_CNTL_ID , C.LM_ORG_DESCR , C.LM_ORGANIZATION_ID , O.NAME , C.LM_LE_LONG_NM , L.LM_ACT_ID , L.LM_ACT_CD , L.LM_CS_LONG_NM , I.LM_STTS , L.LM_START_DT , L.LM_END_DT , M.LM_AMT_PAID , M.CURRENCY_CD , I.LM_PYMT_MTHD , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , P.XLATLONGNAME , Z.XLATLONGNAME , R.LANGUAGE_CD FROM PS_LM_ENRLMT_VW I , PS_LM_ACT_CI_VW L , PS_LM_ENRLMT_PYMT M , PS_LM_RUNCTL_FI N , PS_LM_PER_NAME_VW O , PS_LM_ORG_LE_VW C , PSXLATITEM P , PS_PRCSRUNCNTL R , PSXLATITEM Z WHERE N.OPRID=R.OPRID AND N.RUN_CNTL_ID =R.RUN_CNTL_ID AND C.LM_ORG_TYPE = 'DEPT' AND I.LM_PYMT_MTHD IN ('CASH','CHCK','CRCD') AND C.LM_ORGANIZATION_ID = I.LM_ORGANIZATION_ID AND I.LM_ENRLMT_ID = M.LM_ENRLMT_ID AND I.LM_PERSON_ID = O.LM_PERSON_ID AND L.LM_ACT_ID = I.LM_ACT_ID AND ( I.LM_PYMT_MTHD = N.LM_PYMT_MTHD_RPT OR N.LM_PYMT_MTHD_RPT = 'ALL') AND ( M.LM_PYMT_MTHD = N.LM_PYMT_MTHD_RPT OR N.LM_PYMT_MTHD_RPT = 'ALL') AND ( C.LM_ORG_TYPE = N.LM_ORG_TYPE_RPT OR N.LM_ORG_TYPE_RPT = 'ALL') AND ( I.LM_ORGANIZATION_ID = N.LM_ORGANIZATION_ID OR N.LM_ORGANIZATION_ID = 0) AND (( L.LM_ACT_ID = N.LM_ACT_ID) OR ( N.LM_ACT_ID = 0 AND N.LM_PRG_ID = 0)) AND (( N.LM_ACTIVITY_DT = 'S' AND ( L.LM_START_DT BETWEEN N.FROMDATE AND N.THRUDATE) OR ( L.LM_START_DT >= N.FROMDATE AND N.THRUDATE IS NULL) OR ( L.LM_START_DT <= N.THRUDATE AND N.FROMDATE IS NULL) OR ( N.FROMDATE IS NULL AND N.THRUDATE IS NULL)) OR ( N.LM_ACTIVITY_DT = 'E' AND ( L.LM_END_DT BETWEEN N.FROMDATE AND N.THRUDATE) OR ( L.LM_END_DT <= N.THRUDATE AND N.FROMDATE IS NULL) OR ( L.LM_END_DT >= N.FROMDATE AND N.THRUDATE IS NULL) OR ( N.FROMDATE IS NULL AND N.THRUDATE IS NULL))) AND P.EFFDT = ( SELECT MAX(P_ED.EFFDT) FROM PSXLATITEM P_ED WHERE P.FIELDNAME = P_ED.FIELDNAME AND P.FIELDVALUE = P_ED.FIELDVALUE AND P_ED.EFFDT <= %CurrentDateIn ) AND I.LM_STTS = P.FIELDVALUE AND P.FIELDNAME = 'LM_STTS' AND Z.EFFDT = ( SELECT MAX(Z_ED.EFFDT) FROM PSXLATITEM Z_ED WHERE Z.FIELDNAME = Z_ED.FIELDNAME AND Z.FIELDVALUE = Z_ED.FIELDVALUE AND Z_ED.EFFDT <= %CurrentDateIn ) AND I.LM_PYMT_MTHD = Z.FIELDVALUE AND Z.FIELDNAME = 'LM_PYMT_MTHD' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | RUN_CNTL_ID | Character(30) | VARCHAR2(30) NOT NULL | Run Control ID |
3 | LM_ORG_DESCR | Character(50) | VARCHAR2(50) NOT NULL | Customer Description |
4 | LM_ORGANIZATION_ID | Number(15,0) | DECIMAL(15) NOT NULL | Organization ID |
5 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
6 | LM_LE_LONG_NM | Character(60) | VARCHAR2(60) NOT NULL | Learning Environment Long Name |
7 | LM_ACT_ID | Number(10,0) | DECIMAL(10) NOT NULL | Activity ID |
8 | LM_ACT_CD | Character(30) | VARCHAR2(30) NOT NULL | Activity Code |
9 | LM_CS_LONG_NM | Character(200) | VARCHAR2(200) NOT NULL | Long Name - Describes the long name of an object |
10 | LM_STTS | Character(4) | VARCHAR2(4) NOT NULL |
Enrollment Status
CANC=Dropped COMP=Completed DECL=Denied ENRL=Enrolled INCO=Not Completed INPO=In-Progress MACT=Moved to New Activity NOTS=Not Started PEAP=Pending Approval PEPA=Pending Payment PLAN=Planned PPYA=Payment Approval RQST=Learning Request WAIV=Waived WTLT=Waitlisted |
11 | LM_START_DT | Date(10) | DATE | Start Date |
12 | LM_END_DT | Date(10) | DATE | End Date |
13 | LM_AMT_PAID | Number(23,3) | DECIMAL(22,3) NOT NULL | Amount Paid so far towards the Enrollment Fee |
14 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
15 | LM_PYMT_MTHD | Character(4) | VARCHAR2(4) NOT NULL |
Payment Method. The payment method can be ChargeBack, Training Units
CASH=Cash CHCK=Check CHGB=ChargeBack CRCD=Credit Card NOAP=Not Applicable PO=Purchase Order SEL=Select... TU=Training Units |
16 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
17 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
18 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
19 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
20 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
21 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
22 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
23 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
24 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
25 | XLATLONGNAME | Character(30) | VARCHAR2(30) NOT NULL | Translate Long Name |
26 | LM_PYMT_MTHD_STR | Character(30) | VARCHAR2(30) NOT NULL | Payment Method |
27 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |