RF_BO_BILLTO(SQL View) |
Index Back |
---|---|
Valid Bill To RelationshipsValid Bill to Relationships for Sold To |
SELECT B.BO_ID , D.BO_NAME , C.BO_ID , A.ROLE_TYPE_ID_2 , D.BO_NAME_AC , B.SETID , B.CUST_ID , C.CUST_ID , CASE WHEN 0 <( SELECT COUNT(*) FROM PS_BO_REL D WHERE D.REL_TYPE_ID IN (57,59,69,71) AND B.BO_ID = D.BO_ID_1 AND D.ROLE_TYPE_ID_1 IN (42,46) AND C.BO_ID = D.BO_ID_2 AND D.ROLE_TYPE_ID_2 IN (43,47) AND D.START_DT <= %CurrentDateIn AND D.END_DT > %CurrentDateIn) THEN 1 ELSE 0 END , A.ROW_LASTMANT_OPRID , %DateNull FROM PS_BO_REL A, PS_BC B , PS_BC C , PS_BO_NAME D, PS_BO E WHERE A.BO_ID_1 =B.BO_ID AND A.BO_ID_2 = C. BO_ID AND (A.REL_TYPE_ID IN(57,59,69,71) OR A.REL_TYPE_ID IN (56,58,68,70) ) AND A.ROLE_TYPE_ID_1 IN (42,46) AND A.ROLE_TYPE_ID_2 IN (43,47) AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn AND C.BO_ID = D.BO_ID AND D.PRIMARY_IND = 'Y' AND E.BO_ID = D.BO_ID AND E.MERGE_STATUS <> 'I' |
# | 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 | BO_NAME | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
3 | BO_ID_BILL | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID |
4 | ROLE_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
5 | BO_NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Name Description of Business Object |
6 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
This field is used to store the value of SetID on various setup tables.
Prompt Table: SP_SETID_NONVW |
7 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Customer ID |
8 | BILL_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Customer |
9 | SLDTO_PRIORITY_NBR | Number(4,0) | SMALLINT NOT NULL |
Priority
Default Value: 1 |
10 | LAST_MAINT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | This field determines the last user or operator that last changed this item. |
11 | DATE_LAST_MAINT | Date(10) | DATE | This field determines the date of last maintenance. |