RDM_COMPSOLD_VW

(SQL View)
Index Back

Sold To Companies

Copy of RDM_COMPANY_VW. Joined with RD_SOLDT_CUST view to restrict sold to companies.

SELECT B.SETID , B.COMPANYID , B.BO_ID , O.OPRID , %subrec(RB_MARKET_SBR, B) , B.SYNCID , A.SYNCDTTM FROM PS_OPR_DEF_TBL_RB O , PS_SET_CNTRL_REC S , PS_BO_BASIC_ORG A , PS_RD_COMPANY B , PS_RD_SOLDTO_CUST C WHERE O.BUSINESS_UNIT = S.SETCNTRLVALUE AND S.RECNAME = 'RD_COMPANY' AND S.SETID = B.SETID AND A.BO_ID = B.BO_ID AND A.BO_REL_ID = 0 AND A.ROLE_TYPE_ID = 2 AND A.BO_ID = C.BO_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.

Default Value: OPR_DEF_TBL_RB.SETID

2 COMPANYID Character(15) VARCHAR2(15) NOT NULL Company ID

Default Value: NEXT

3 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
4 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
5 MARKET Character(3) VARCHAR2(3) NOT NULL Market
6 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.
7 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time