TD_DEDUCT_ACTV(SQL View) |
Index Back |
---|---|
Item Activity TableContains activity for Deductions and Offsets related to a promotion |
SELECT C.SETID , A.PPRC_PROMO_CD , A.SOLD_TO_CUST_ID , A.MERCH_TYPE , B.BUSINESS_UNIT , B.ITEM , B.ITEM_LINE , B.CUST_ID , B.ENTRY_USE_ID , %DecMult(B.ENTRY_AMT,-1) , B.ENTRY_AMT_BASE , B.ENTRY_CURRENCY , B.CURRENCY_CD , B.RT_TYPE , B.RATE_MULT , B.RATE_DIV , B.ACCOUNTING_DT , B.ENTRY_TYPE , B.ENTRY_REASON , B.UNPOST_REASON , A.DEDUCTION_STATUS , A.AR_SPECIALIST , ' ' FROM PS_ITEM A , PS_ITEM_ACTIVITY B , PS_SET_CNTRL_REC C , PS_PPRC_PROMO_TBL D WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.CUST_ID = B.CUST_ID AND A.PPRC_PROMO_CD = D.PPRC_PROMO_CD AND A.ITEM = B.ITEM AND A.ITEM_LINE = B.ITEM_LINE AND A.DEDUCTION_STATUS <> ' ' AND B.ENTRY_USE_ID = 'MT-03' AND C.RECNAME = 'PPRC_PROMO_TBL' AND C.SETCNTRLVALUE = D.SETID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | PPRC_PROMO_CD | Character(20) | VARCHAR2(20) NOT NULL | Price Promotion Code |
3 | SOLD_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Sold To Customer |
4 | MERCH_TYPE | Character(10) | VARCHAR2(10) NOT NULL | Merchandising Type |
5 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT |
6 | ITEM | Character(30) | VARCHAR2(30) NOT NULL | Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number. |
7 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
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.
Prompt Table: CUST_SRCH_VW |
9 | ENTRY_USE_ID | Character(5) | VARCHAR2(5) NOT NULL | Specifies the System Function or type of processing associated with an entry type. |
10 | ENTRY_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Represents the monetary amount of a pending item transaction such as invoice or credit memo. |
11 | ENTRY_AMT_BASE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Represents the monetary amount of a pending item transaction such as invoice or credit memo in the base currency of the business unit. |
12 | ENTRY_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Specifies the currency associated with the monetary amount of a pending item. |
13 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
14 | RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical. |
15 | RATE_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Rate Multiplier |
16 | RATE_DIV | Number(16,8) | DECIMAL(15,8) NOT NULL |
Rate Divisor
Default Value: 1 |
17 | ACCOUNTING_DT | Date(10) | DATE | The accounting entry construction date for a given transaction (a generic field that crosses multiple |
18 | ENTRY_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Specifies the type of transaction associated with a pending item. The entry type remains with the item after it is posted and affects many areas of Receivables processing. Some examples of entry types are Invoices Credit Memo Prepayment and Deduction.
Prompt Table: ENTRY_TYPE_TBL |
19 | ENTRY_REASON | Character(5) | VARCHAR2(5) NOT NULL |
"Specifies an entry reason that further qualifies the entry type associated with a pending item. For example an entry reason for a credit memo might be ""Pricing Error"" or ""Shipping Error""."
Prompt Table: ENTRY_REASN_TBL |
20 | UNPOST_REASON | Character(10) | VARCHAR2(10) NOT NULL | Reason code for Unposted groups. For informational purposes. |
21 | DEDUCTION_STATUS | Character(5) | VARCHAR2(5) NOT NULL |
Deduction Status
C=Closed I=In Process O=Created/Opened W=On Worksheet |
22 | AR_SPECIALIST | Character(8) | VARCHAR2(8) NOT NULL |
Accounts Recievable Specialist - person responsible for an action on an item.
Prompt Table: AR_SPECIALIST |
23 | FLAG5 | Character(1) | VARCHAR2(1) NOT NULL | Flag5 |