C360_RECITM_VW(SQL View) |
Index Back |
---|---|
Items By SetId and BU |
SELECT C.setid , I.cust_id , I.business_unit , I.item , I.item_line , I.subcust_qual1 , I.subcust_qual2 , C.nameshort , I.item_seq_num , I.po_ref , I.po_line , I.document , I.bill_of_lading , I.accounting_dt , I.accounting_dt , I.pymnt_terms_cd , I.due_dt , I.dispute_status , I.dispute_dt , CASE WHEN I.DISPUTE_STATUS <> ' ' THEN %Round(%DecMult(%DecDiv(I.DISPUTE_AMOUNT, I.RATE_DIV), I.RATE_MULT),3) ELSE 0 END , I.bal_amt , A.post_dt , I.asof_dt , I.item_status , I.deduction_status , I.deduction_dt , I.collection_status , I.collection_dt , I.entry_type , I.entry_reason , I.ref_reason , I.bal_amt_base , I.bal_currency , I.currency_cd , I.aging_category , I.disc_dt , I.letter_cd , I.dun_dt , I.st_dt , I.address_seq_num , I.contract_num , I.order_no , I.rate_mult , I.rate_div , I.consol_bus_unit , I.consol_invoice , I.pprc_promo_cd , I.claim_no , I.orig_item_amt , I.last_activity_dt , I.doubtful , I.LC_ID , I.ag_ref_nbr , I.ar_specialist , i.broker_id , i.sales_person , I.sales_person2 , I.cr_analyst , I.collector , I.sold_to_cust_id , I.ship_to_cust_id , I.proof_of_delivery , I.invoice , I.dt_invoiced , I.claim_dt , I.class_of_trade , I.division , I.payment_method , I.bank_cd , I.bank_acct_key , I.convers_exists , I.business_unit_bi , I.disc_amt , I.invoice_dt , I.business_unit_ca , I.contract_line_num , I.subrog_case_num , I.sp_id , I.entry_use_id , CASE WHEN I.DUE_DT < %CurrentDateIn THEN I.BAL_AMT_BASE ELSE 0 END , CASE WHEN I.DOUBTFUL = 'Y' THEN I.BAL_AMT_BASE ELSE 0 END , CASE WHEN I.DEDUCTION_STATUS <> ' ' THEN I.BAL_AMT_BASE ELSE 0 END , CASE WHEN I.COLLECTION_STATUS <> ' ' THEN I.BAL_AMT_BASE ELSE 0 END , %Sql(EOEW_FUNCLIB_DATE_MONTH_UPD, A.post_dt) , %Sql(EOEW_FUNCLIB_DATE_YEAR_UPD, A.post_dt) , %Sql(EOEW_FUNCLIB_DATE_MONTH_UPD, I.dispute_dt) , %Sql(EOEW_FUNCLIB_DATE_YEAR_UPD, I.dispute_dt) , %Sql(EOEW_FUNCLIB_DATE_MONTH_UPD, I.collection_dt) , %Sql(EOEW_FUNCLIB_DATE_YEAR_UPD, I.collection_dt) , %Sql(EOEW_FUNCLIB_DATE_MONTH_UPD, I.deduction_dt) , %Sql(EOEW_FUNCLIB_DATE_YEAR_UPD, I.deduction_dt) , %Sql(C360_FUNCLIB_DATE_YYYYMM, A.post_dt) , %Sql(C360_FUNCLIB_DATE_YYYYMM, I.dispute_dt) FROM PS_ITEM I , ps_customer C , PS_ITEM_ACTIVITY A WHERE A.BUSINESS_UNIT = I.BUSINESS_UNIT AND A.CUST_ID = I.CUST_ID AND A.ITEM = I.ITEM AND A.ITEM_LINE = I.ITEM_LINE AND A.ITEM_SEQ_NUM = ( SELECT MIN(SA.ITEM_SEQ_NUM) FROM PS_ITEM_ACTIVITY SA WHERE SA.BUSINESS_UNIT = A.BUSINESS_UNIT AND SA.CUST_ID = A.CUST_ID AND SA.ITEM = A.ITEM AND SA.ITEM_LINE = A.ITEM_LINE) AND c.setid = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = I.business_unit AND RECNAME = 'CUSTOMER') AND C.cust_id = I.cust_id |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Prompt Table: SP_SETID_NONVW |
2 | 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 |
3 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUARDS_NONVW |
4 | 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. |
5 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
6 | SUBCUST_QUAL1 | Character(15) | VARCHAR2(15) NOT NULL | Specifies a user-defined grouping of customer receivables activity. A subcustomer qualifier provides the ability to record and report receivables activity across multiple business units and/or multiple customers. For example a subcustomer qualifier could represent a sales region or a geographic area. There are two possible subcustomer qualifiers: SUBCUST_QUAL1 and SUBCUST_QUAL2. |
7 | SUBCUST_QUAL2 | Character(15) | VARCHAR2(15) NOT NULL | Specifies a user-defined grouping of customer receivables activity. A subcustomer qualifier provides the ability to record and report receivables activity across multiple business units and/or multiple customers. For example a subcustomer qualifier could represent a sales region or a geographic area. There are two possible subcustomer qualifiers: SUBCUST_QUAL1 and SUBCUST_QUAL2. |
8 | NAMESHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Name |
9 | ITEM_SEQ_NUM | Number(3,0) | SMALLINT NOT NULL | Item Sequence Number |
10 | PO_REF | Character(30) | VARCHAR2(30) NOT NULL | Specifies the purchase order number associated with a receivables item. |
11 | PO_LINE | Number(3,0) | SMALLINT NOT NULL | Specifies the line number of a purchase order associated with a receivables item. It is used with the field PO_REF. |
12 | DOCUMENT | Character(30) | VARCHAR2(30) NOT NULL | Specifies a document used as a reference number for a Receivables item. Document ID is used by the Receivables Update program and the Maintenance Worksheet to "match" related invoices debit memos and credit memos. |
13 | BILL_OF_LADING | Character(30) | VARCHAR2(30) NOT NULL | Specifies a bill of lading number associated with a Receivables item. |
14 | ACCOUNTING_DT | Date(10) | DATE | The accounting entry construction date for a given transaction (a generic field that crosses multiple |
15 | EFFDT | Date(10) | DATE | Effective Date |
16 | PYMNT_TERMS_CD | Character(5) | VARCHAR2(5) NOT NULL | Specifies how the payment due date and discount due date are calculated. A payment terms code is associated with various business units bill-to customers vendors as well as sales orders purchase orders and vouchers. |
17 | DUE_DT | Date(10) | DATE | Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received. |
18 | DISPUTE_STATUS | Character(3) | VARCHAR2(3) NOT NULL | Specifies the reason that an item or customer is in dispute. For example the dispute status code might represent pricing error. |
19 | DISPUTE_DT | Date(10) | DATE | Specifies the date that an item was placed in dispute status. |
20 | DISPUTE_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the amount of an item in dispute. This may represent only a portion of the full amount of an item. |
21 | BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Balance |
22 | POST_DT | Date(10) | DATE | The Date a transaction was Posted. |
23 | ASOF_DT | Date(10) | DATE | As of Date |
24 | ITEM_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Item Status
C=Closed O=Open |
25 | DEDUCTION_STATUS | Character(5) | VARCHAR2(5) NOT NULL |
Deduction Status
C=Closed I=In Process O=Created/Opened W=On Worksheet |
26 | DEDUCTION_DT | Date(10) | DATE | Deduction Date |
27 | COLLECTION_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Specifies a collection agency or the reason for placing a customer in collection. Collection status indicates that the customer is delinquent in making payments or the invoice is more than 120 days past due.
Prompt Table: COLLECTION_TBL |
28 | COLLECTION_DT | Date(10) | DATE | Specifies the date that a customer or invoice was put in collection status. Collection status indicates that the customer is delinquent in making payments or the invoice is more than 120 days past due. |
29 | 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. |
30 | 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""." |
31 | REF_REASON | Character(5) | VARCHAR2(5) NOT NULL |
Reference Reason
Prompt Table: ENTRY_REASN_TBL |
32 | BAL_AMT_BASE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Balance - Base Currency |
33 | BAL_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Currency Code - Bal Amount |
34 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
35 | AGING_CATEGORY | Character(2) | VARCHAR2(2) NOT NULL | Aging Category |
36 | DISC_DT | Date(10) | DATE | Specifies the date before which payment must be made on an invoice in order to qualify for a discount. This field applies to the first of two possible discounts and is associated with the discount amount specified in DISC_AMT. |
37 | LETTER_CD | Character(3) | VARCHAR2(3) NOT NULL | Specifies a type of correspondence used for follow-up letters or dunning notices. A letter code is associated with a customizable template to facilitate form letters. |
38 | DUN_DT | Date(10) | DATE | Specifies the date that a dunning letter is sent. This date is generated by the Dunning SQR. |
39 | ST_DT | Date(10) | DATE | Specifies the date a statement (Receivables) is generated. This date is maintained by the Statements SQR. |
40 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
41 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract |
42 | ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL | Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop |
43 | RATE_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Rate Multiplier |
44 | RATE_DIV | Number(16,8) | DECIMAL(15,8) NOT NULL |
Rate Divisor
Default Value: 1 |
45 | CONSOL_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Specifies the Billing business unit associated with a consolidated bill. |
46 | CONSOL_INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Specifies the invoice identifier associated with a consolidated bill. |
47 | PPRC_PROMO_CD | Character(20) | VARCHAR2(20) NOT NULL | Price Promotion Code |
48 | CLAIM_NO | Character(30) | VARCHAR2(30) NOT NULL | Claim Number for an item |
49 | ORIG_ITEM_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Original Item Amount |
50 | LAST_ACTIVITY_DT | Date(10) | DATE | Last Activity Date |
51 | DOUBTFUL | Character(1) | VARCHAR2(1) NOT NULL | Identifies items ( or invoices ) which probably will not be paid by the customer. This status is used for items whose balances have been moved from the receivables account to the doubtful account using the transfer worksheet. |
52 | LC_ID | Character(12) | VARCHAR2(12) NOT NULL | Treasury Letter of Credit Number Assigned by the System |
53 | AG_REF_NBR | Number(16,0) | DECIMAL(16) NOT NULL | Payment Reference Number |
54 | AR_SPECIALIST | Character(8) | VARCHAR2(8) NOT NULL | Accounts Recievable Specialist - person responsible for an action on an item. |
55 | BROKER_ID | Character(15) | VARCHAR2(15) NOT NULL | Broker ID |
56 | SALES_PERSON | Character(8) | VARCHAR2(8) NOT NULL | Specifies the personnel code for the person who works with a customer as a sales representative. This field is required for a customer that functions as a bill-to customer. |
57 | SALES_PERSON2 | Character(8) | VARCHAR2(8) NOT NULL | Identifies a second Sales Person. Populated on the Item Table to identify an additional Sales Person the Item is applied to. |
58 | CR_ANALYST | Character(8) | VARCHAR2(8) NOT NULL | Specifies the personnel code for the person who works with a customer to establish credit limits and payment terms. This field is required for a bill-to customer. |
59 | COLLECTOR | Character(8) | VARCHAR2(8) NOT NULL | Specifies the personnel code for the person who works with a customer to collect overdue payments. |
60 | SOLD_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Sold To Customer |
61 | SHIP_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Ship To Customer |
62 | PROOF_OF_DELIVERY | Character(30) | VARCHAR2(30) NOT NULL | Proof of Delivery |
63 | INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Invoice |
64 | DT_INVOICED | Date(10) | DATE | Date Invoiced |
65 | CLAIM_DT | Date(10) | DATE | Claim Date |
66 | CLASS_OF_TRADE | Character(20) | VARCHAR2(20) NOT NULL | Class of Trade |
67 | DIVISION | Character(20) | VARCHAR2(20) NOT NULL | Division |
68 | PAYMENT_METHOD | Character(3) | VARCHAR2(3) NOT NULL |
Specifies the preferred method of payment by a customer. Examples of payment method are check direct debit and draft.
10/28/2003 edw 655070000 - Removed LTC and CSH xlats.
ACH=ACH CC=Credit Card CHK=Check CSH=Cash DD=Direct Debit DR=Draft EC=Electronic Check EFT=Electronic Fund Transfer GE=Giro - EFT PL=PayPal WIR=Wire Report |
69 | BANK_CD | Character(5) | VARCHAR2(5) NOT NULL | Bank Code |
70 | BANK_ACCT_KEY | Character(4) | VARCHAR2(4) NOT NULL | A user defined unique identifier that facilitates the identification of a given account with a given bank |
71 | CONVERS_EXISTS | Character(1) | VARCHAR2(1) NOT NULL | "A flag that indicates whether a conversation is associated with a single item or with multiple items ." |
72 | BUSINESS_UNIT_BI | Character(5) | VARCHAR2(5) NOT NULL | Billing Business Unit |
73 | DISC_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the discount amount available if payment on an item is made before the discount date. The amount is manually entered or system-generated using the payment terms code. The discount date associated with this amount is specified in DISC_DT. This is the first of two possible discounts associated with an item. |
74 | INVOICE_DT | Date(10) | DATE | Invoice Date |
75 | BUSINESS_UNIT_CA | Character(5) | VARCHAR2(5) NOT NULL | Contracts Business Unit |
76 | CONTRACT_LINE_NUM | Number(3,0) | SMALLINT NOT NULL | Contract Line Num |
77 | SUBROG_CASE_NUM | Character(30) | VARCHAR2(30) NOT NULL | Subrogation case number used for Insurance |
78 | SP_ID | Number(11,0) | DECIMAL(11) NOT NULL | Service Purchase ID |
79 | ENTRY_USE_ID | Character(5) | VARCHAR2(5) NOT NULL | Specifies the System Function or type of processing associated with an entry type. |
80 | PASTDUE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Past Due |
81 | DOUBTFUL_AMOUNT | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Doubtful Amount |
82 | DEDUCTION_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Deduction Amount |
83 | COLLECTION_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Collection Amount |
84 | C360_POS_MTH | Character(2) | VARCHAR2(2) NOT NULL |
Posted Month
01=01-January 02=02-February 03=03-March 04=04-April 05=05-May 06=06-June 07=07-July 08=08-August 09=09-September 10=10-October 11=11-November 12=12-December |
85 | C360_POS_YEAR | Character(4) | VARCHAR2(4) NOT NULL | Posted Year |
86 | C360_DIS_MTH | Character(2) | VARCHAR2(2) NOT NULL |
Dispute Month
01=01-January 02=02-February 03=03-March 04=04-April 05=05-May 06=06-June 07=07-July 08=08-August 09=09-September 10=10-October 11=11-November 12=12-December |
87 | C360_DIS_YEAR | Character(4) | VARCHAR2(4) NOT NULL | Dispute Year |
88 | C360_COL_MTH | Character(2) | VARCHAR2(2) NOT NULL |
Collection Month
01=January 02=February 03=March 04=April 05=May 06=June 07=July 08=August 09=September 10=October 11=November 12=December |
89 | C360_COL_YEAR | Character(4) | VARCHAR2(4) NOT NULL | Collection Year |
90 | C360_DED_MTH | Character(2) | VARCHAR2(2) NOT NULL |
Deduction Month
01=January 02=February 03=March 04=April 05=May 06=June 07=July 08=August 09=September 10=October 11=November 12=December |
91 | C360_DED_YEAR | Character(4) | VARCHAR2(4) NOT NULL | Deduction Year |
92 | C360_POS_PERIOD | Character(8) | VARCHAR2(8) NOT NULL | Period |
93 | C360_DIS_PERIOD | Character(8) | VARCHAR2(8) NOT NULL | Period |