DST_RLSET_OM_V2(SQL View) |
Index Back |
|---|---|
Dist Rule/Set View OM |
| select s.business_unit, r.dst_rule_cd, r.sequence_nbr, s.distrib_set_id, s.doc_type_om, s.product_id, s.product_group, s.cust_id, s.customer_group, s.region_cd, s.order_grp, s.business_unit_in, s.distrib_type, s.effdt, s.eff_status, t.dst_id_dis, t.dst_pct_dis, t.dst_id_rev, t.dst_pct_rev, t.dst_id_sur, t.dst_pct_sur from PS_DST_RULE_SEQ_OM r, ps_dst_set_om s, ps_dst_set_om_acct t where r.setid = (select setid from ps_set_cntrl_rec sc where setcntrlvalue = s.business_unit and recname = 'DST_RULE_OM') and s.dst_rl_combo_cd = r.dst_rl_combo_cd and s.business_unit = t.business_unit and s.distrib_set_id = t.distrib_set_id and s.effdt = t.effdt and s.doc_type_om = t.doc_type_om |
| # | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
|---|---|---|---|---|
| 1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
| 2 | DST_RULE_CD | Character(10) | VARCHAR2(10) NOT NULL | Dist Rule Code |
| 3 | SEQUENCE_NBR | Number(2,0) | SMALLINT NOT NULL | Sequence Number |
| 4 | DISTRIB_SET_ID | Character(10) | VARCHAR2(10) NOT NULL | Distribution Set ID |
| 5 | DOC_TYPE_OM | Character(1) | VARCHAR2(1) NOT NULL |
Document Type
B=Claimback Contract C=Contract O=Sales Order R=Return Material Authorization |
| 6 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
| 7 | PRODUCT_GROUP | Character(10) | VARCHAR2(10) NOT NULL | Product Group |
| 8 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
| 9 | CUSTOMER_GROUP | Character(10) | VARCHAR2(10) NOT NULL | Customer Group |
| 10 | REGION_CD | Character(10) | VARCHAR2(10) NOT NULL | Identifies the Sales Region. Populated on the Item Table to identify the Sales Region the Item is applied to. |
| 11 | ORDER_GRP | Character(6) | VARCHAR2(6) NOT NULL | Order Group |
| 12 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
| 13 | DISTRIB_TYPE | Character(10) | VARCHAR2(10) NOT NULL | Distrib. Type |
| 14 | EFFDT | Date(10) | DATE | Effective Date |
| 15 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
| 16 | DST_ID_DIS | Character(10) | VARCHAR2(10) NOT NULL | Discount Distribution Code |
| 17 | DST_PCT_DIS | Signed Number(7,2) | DECIMAL(5,2) NOT NULL | Discount Dist Percentage |
| 18 | DST_ID_REV | Character(10) | VARCHAR2(10) NOT NULL | Revenue Dist Code |
| 19 | DST_PCT_REV | Signed Number(7,2) | DECIMAL(5,2) NOT NULL | Revenue Dist Percentage |
| 20 | DST_ID_SUR | Character(10) | VARCHAR2(10) NOT NULL | Surcharge Distribution Code |
| 21 | DST_PCT_SUR | Signed Number(7,2) | DECIMAL(5,2) NOT NULL | Surcharge Dist Percentage |