RA_CMPGNTASK_VW(SQL View) |
Index Back |
---|---|
Campaign Tasks viewUsed in Task management report |
SELECT A.BUSINESS_UNIT ,A.RA_CAMPAIGN_ID , A.SEQNO , A.DESCR , A.RA_TASK_STATUS , B.XLATSHORTNAME , A.START_DATE , A.DUE_DT , A.RA_PRIORITY , C.XLATSHORTNAME , A.RA_PCT_COMPLETE FROM PS_RA_CMPGN_TASK A , PSXLATITEM B , PSXLATITEM C WHERE B.FIELDNAME = 'RA_TASK_STATUS' AND B.FIELDVALUE = A.RA_TASK_STATUS AND B.EFFDT = ( SELECT MAX(E.EFFDT) FROM PSXLATITEM E WHERE E.FIELDNAME = B.FIELDNAME AND E.FIELDVALUE = B.FIELDVALUE AND E.EFFDT <= %CurrentDateIn) AND C.EFF_STATUS = 'A' AND C.FIELDNAME = 'RA_PRIORITY' AND C.FIELDVALUE = A.RA_PRIORITY AND C.EFFDT = ( SELECT MAX(F.EFFDT) FROM PSXLATITEM F WHERE F.FIELDNAME = C.FIELDNAME AND F.FIELDVALUE = C.FIELDVALUE AND F.EFFDT <= %CurrentDateIn) AND C.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | RA_CAMPAIGN_ID | Character(15) | VARCHAR2(15) NOT NULL |
Marketing - Campaign Identification field. Character field that will contain a generated campaign or free form entered campaign id.
Prompt Table: RA_CAMPAIGN |
3 | SEQNO | Number(5,0) | INTEGER NOT NULL | Sequence Number |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | RA_TASK_STATUS | Character(4) | VARCHAR2(4) NOT NULL |
Status of the task
ASGN=Assigned CANC=Cancelled CMPL=Completed NEW=New task - not assigned OVER=Over Due REJD=Rejected Default Value: NEW |
6 | XLATSHORTNAME | Character(10) | VARCHAR2(10) NOT NULL | Translate Value Short Name |
7 | START_DATE | Date(10) | DATE | Start Date for Gen Standing PO |
8 | END_DATE | Date(10) | DATE | End date field to store an end date. |
9 | RA_PRIORITY | Character(1) | VARCHAR2(1) NOT NULL |
Marketing - campaign wave content task priority
1=High Priority 2=Medium Priority 3=Low Priority |
10 | XLATLONGNAME | Character(30) | VARCHAR2(30) NOT NULL | Translate Long Name |
11 | RA_PCT_COMPLETE | Character(3) | VARCHAR2(3) NOT NULL | Marketing - Task - Percent Complete |