MOC_HEADER_DD_V(SQL View) |
Index Back |
---|---|
Mobile OC, view for DD ruleMobile OC, view for DD rule to pull down Orders from Sales and OC |
SELECT DISTINCT B.CAPTURE_ID , A.OPRID , B.BUSINESS_UNIT , B.ROW_ADDED_OPRID , B.ROW_LASTMANT_OPRID , B.CAPTURE_DATE , B.ROW_LASTMANT_DTTM , B.SYNCID , B.SYNCDTTM FROM PS_OPR_DEF_TBL_RB A , PS_RO_HEADER B WHERE A.BUSINESS_UNIT_RO = B.BUSINESS_UNIT AND B.CAPTURE_TYPE_CD IN ('SO', 'COPY') AND B.CAPTURE_ID NOT IN ( SELECT C.CAPTURE_ID FROM PS_RO_ASSOCIATION C , PS_RO_HEADER F WHERE C.CAPTURE_ID = F.CAPTURE_ID AND F.STATUS_CODE IN (500, 9000) AND F.CAPTURE_TYPE_CD='SO' AND C.CAPTURE_ID NOT IN ( SELECT D.CAPTURE_ID FROM PS_RO_ASSOCIATION D , PS_RSF_LEAD E WHERE D.LEAD_ID = E.LEAD_ID AND E.RC_PROSPECT_SW = 'Y') AND (C.LEAD_ID IS NOT NULL OR C.OPPORTUNITY_ID IS NOT NULL) ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CAPTURE_ID | Character(20) | VARCHAR2(20) NOT NULL | Field use to store the capture ID in order capture. |
2 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
3 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
4 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
5 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
6 | CAPTURE_DATE | Date(10) | DATE | Order capture date used for orders and quotes |
7 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
8 | 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. |
9 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |