RFM_CUST_PRD_VW(SQL View) |
Index Back |
---|---|
Customer Product view - MobileLists Products for customers for use in Field Service Mobile |
SELECT A.BO_ID_CUST , A.PRODUCT_ID , B.DESCR , A.SYNCID , A.SYNCDTTM FROM PS_RF_INST_PROD A , PS_PROD_ITEM B WHERE A.BO_ID_CUST <> 0 AND B.SETID = ( SELECT C.SETID FROM PS_SET_CNTRL_REC C WHERE C.SETCNTRLVALUE = A.SETID AND C.RECNAME = 'PROD_ITEM') AND B.PRODUCT_ID = A.PRODUCT_ID GROUP BY A.PRODUCT_ID, A.SETID, A.INST_PROD_ID, A.BO_ID_CUST, A.SYNCID, A.SYNCDTTM , B.DESCR HAVING A.SYNCID = ( SELECT MAX(D.SYNCID) FROM PS_RF_INST_PROD D WHERE A.SETID = D.SETID AND A.PRODUCT_ID = D.PRODUCT_ID AND A.BO_ID_CUST = D.BO_ID_CUST) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
2 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | 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. |
5 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |