CM_APTOTAL_VW(SQL View) |
Index Back |
|---|---|
CM/AP Summation LinesThis record will sum all the costing entries in the CM_GLRECN_TBL to the receiver line. 08/04 added currency control on MONETARY_AMT_VCHR |
| SELECT DISTINCT a.run_cntl_id , a.request_id , a.business_unit_recv , a.receiver_id , a.recv_ln_nbr , a.recv_ship_seq_nbr ,a.business_unit_gl , a.monetary_amount , b.monetary_amount , a.currency_cd , %Abs(a.monetary_amount + b.monetary_amount) , a.inv_item_id FROM PS_CM_APSUMRT_VW a , ps_cm_apsum2_vw b WHERE a.run_cntl_id = b.run_cntl_id AND a.request_id = b.request_id AND a.business_unit_recv = b.business_unit_recv AND a.receiver_id = b.receiver_id AND a.recv_ln_nbr = b.recv_ln_nbr AND a.recv_ship_seq_nbr = b.recv_ship_seq_nbr AND a.inv_item_id = b.inv_item_id |
| # | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
|---|---|---|---|---|
| 1 | Character(30) | VARCHAR2(30) NOT NULL | Run Control ID | |
| 2 | Character(10) | VARCHAR2(10) NOT NULL | Request ID | |
| 3 | Character(5) | VARCHAR2(5) NOT NULL | Receiving Business Unit | |
| 4 | Character(10) | VARCHAR2(10) NOT NULL | Receiver number | |
| 5 | Number(5,0) | INTEGER NOT NULL | Receipt Line | |
| 6 | Number(3,0) | SMALLINT NOT NULL | Receiver Shipping Sequence | |
| 7 | Character(5) | VARCHAR2(5) NOT NULL |
GL Business Unit
Prompt Table: SP_BUPRCR_NONVW |
|
| 8 | MONETARY_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account. |
| 9 | MONETARY_AMT_VCHR | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Monetary Amount - VCHR BU Base |
| 10 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
| 11 | DIFFERENCE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Difference Amount |
| 12 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |