Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Asset Suite and PeopleSoft Commitment Reversal processing

1. Accounts Payable Asset Suite/PeopleSoft Commitment Reversal processing 2. Asset Suite Contract cancel and close to PeopleSoft Commitment Reversal processing 1. Accounts Payable Asset Suite/PeopleSoft Commitment Reversal processing Asset Suite G010 Payment Authorizations (aka Invoices) pass through the Approved Invoice touchpoint and become PeopleSoft Vouchers. PS Vouchers write Commitment Reversal and other transactions to the PS PS_PROJ_RESOURCE table. AS Payment Authorizations contain Accounting Lines (panel G091) which break down the payment $'s into accounting entries. The AS Accounting Lines are written to PeopleSoft Voucher Distribution Lines. In order for the PS Voucher Distribution Lines to reverse commitments they have to point to existing PS_PROJ_RESOURCE commitment entries with the same PO_ID and having remaining non reversed $'s greater than or equal to the Distribution Line's $'s. Following logic takes place in the Asset Suite to PeopleSoft Approved Invoice touchpoint in program tiby475.csm (after tiby471.csm and before tiby481.csm. Prerequisite for Approved Invoice touchpoint. PeopleSoft created Ps_Proj_Resource commitment and commitment reversal rows for prior vouchers for the same AS Contract via jobs AP_PSTVCHR and PC_PO_TO_PC for the AS Contract/PO. PS commitment reversal processing (job PC_POADJUST) must have run prior to a AS Contract/PO being reprocessed, i.e., the PS commitment reversals must be up to date. For each Asset Suite Payment Authorization Accounting Line having a Company, Work Order, and Task, ordered by PO, Voucher, merchandise amount (source table TIDAPACC). Build table (WORK) of PS_PROJ_RESOURCE non reversed commitment entries. select pr1.po_id ,pr1.business_unit ,pr1.project_id ,pr1.activity_id ,pr1.distrib_line_num ,pr1.resource_amount - nvl ( (select pr2.resource_amount from sysadm.ps_proj_resource pr2 where pr2.po_id = pr1.po_id and "CCA" and "CRV" pr2.resource_id = "P" pr1.resource_id and pr2.analysis_type in ('CRV','CCA') and pr2.distrib_line_num = pr1.distrib_line_num ),0) from sysadm.ps_proj_resource pr1 where pr1.po_id in Batch-of-G091-POs/Contracts and pr1.analysis_type = 'COM' order by pr1.po_id ,pr1.DISTRIB_LINE_NUM Notes: 1) PS_PROJ_RESOURCE unique index: Business_Unit, Project_ID, Activity_ID, Resource_ID. 2) WORK table includes all POs in case PO in multiple Payment Authorizations.

Search WORK table for non-reversed commitment $'s on the "best match" possible. select distrib_line_num ,resource_amount from WORK where po_id and business_unit and project_id and activity_id and distrib_line_num and resource_amount Commitment Reversal processing in the Asset Suite ver 6.0 to PeopleSoft ver 9 Approved Invoice touchpoint.

= = = = =

G010-PO/Contract G091-Company G091-Ref-Number G091-Ref-Sub-Nbr G091 line order number > 0

Notes: a) Asset Suite changed so that Accounting Line order is fixed upon Contract approval. b) Asset Suite changed so that Accounting Line order is fixed upon Payment Authorization approval. c) Number of PeopleSoft Voucher Distribution Lines could be greater than number of Asset Suite Accounting Lines. d) PeopleSoft Commitment Reversals are set to be done by Quantity not Amount.

Non-reversed commitment dollars remaining?

Create PS Voucher Distribution Line with the lesser of the Accounting Line's $'s or the remaining commitment $'s. YES Subtract PS Voucher Distribution Line $'s from WORK entry.

Page 1/4

NO Remaining Accounting Line $'s > zero?

NO

Done

YES Search WORK table for non-reversed commitment $'s where the line position has changed. select distrib_line_num ,resource_amount from WORK where po_id and business_unit and project_id and activity_id and resource_amount

= = = =

G010-PO/Contract G091-Company G091-Ref-Number G091-Ref-Sub-Nbr > 0

Non-reversed commitment dollars remaining?

Create PS Voucher Distribution Line with the lesser of the Accounting Line's $'s or the remaining commitment $'s. YES Subtract PS Voucher Distribution Line $'s from WORK entry.

NO YES Search WORK table for non-reversed commitment $'s where the Project matches. select distrib_line_num ,resource_amount from WORK where po_id = G010-PO/Contract and business_unit = G091-Company and project_id = G091-Ref-Number and resource_amount > 0

Remaining Accounting Line $'s > zero?

NO

Done

Non-reversed commitment dollars remaining?

Create PS Voucher Distribution Line with the lesser of the Accounting Line's $'s or the remaining commitment $'s. YES Subtract PS Voucher Distribution Line $'s from WORK entry.

NO YES

Remaining Accounting Line $'s > zero?

NO

Done

Insert Accounting Line and remaining $'s to temporary table (TEMP). Process next Accounting Line (from table TIDAPACC) to allow them to get best possible match. This means each Accounting Line is processed once and if it has remaining $'s it is written to a temporary table for later further processing.

Page 2/4

Asset Suite Payment Authorization Accounting Lines from temporary table (TEMP) sorted by PO/Contract, Voucher and remaining G091 Amount descending. The idea is to create reversing entries on the best possible match of remaining non reversed commitment $'s.

Retrieve from WORK the largest amount of non-reversed commitment $'s, i.e., the "biggest bucket". select distrib_line_num ,resource_amount from WORK where po_id = G010-PO/Contract and resource_amount > 0 and resource_amount = (select max(resource_amount) from WORK where po_id = G010-PO/Contract )

Data?

NO

Create PS Voucher Distribution Line pointing to commitment line 1.

Done YES Create PS Voucher Distribution Line for the lesser of the AS Accounting Line's $'s or the remaining commitment $'s. Subtract PS Voucher Distribution Line $'s from WORK entry.

YES

Remaining Accounting Line $'s > zero?

NO Done

Approved Invoice touchpoint continues with program tiby481.csm. Vouchers are created in PeopleSoft.

Page 3/4

PeopleSoft Vouchers

PeopleSoft Matching (AP Eng: AP_MATCHING) Rematch entitities from Asset Suite. Sets up for PayCycle and populates several tables.

PeopleSoft Voucher Posting (AP Eng: AP_PSTVCHR)

PeopleSoft Accounts Payable to Project Costing (AP Eng: PC_AP_TO_PC) Ps_Proj_Resource ACT rows created.

PeopleSoft Project Costing Purchasing Adjustments (AP Eng: PC_POADJUST, indicate only Purchase Order Reversals) Ps_Proj_Resource CRV rows created.

Page 4/4

2. Asset Suite Contract cancel and close to PeopleSoft Commitment Reversal processing Asset Suite N300 Contracts option 06. Cancel Contract Status set to TERMINAT. Asset Suite N300 Contracts option 10. Set Contract Status to CLOSED Status set to CLOSED. Asset Suite batch CALRM sets Contract to CLOSED.

Contract & PO touchpoints Contract touchpoint (tiby400, 411, 421) Contract & PO touchpoints PO touchpoint (tiby430, 441, 451) PO Status = Dispatched Distribution Line Status = Complete PeopleSoft database Purchase Orders

Prerequisite for nightly run of CUST_POADJUST. Ps_Proj_Resource needs to be up-to-date with all COM and CRV transactions, i.e., POs (PP Contracts) need to have been transferred from PP to PS, Project Costing of POs (PC_PO_TO_PC) (creation of Ps_Proj_Resource COM rows) is completed, PP Payment Authorizations have been transferred to PS Vouchers, Vouchers are Matched, Posted, and PO Reversals (creation of Ps_Proj_Resource CRV rows) is complete.

PeopleSoft Reverse commitments by actuals. (AP Eng: PC_POADJUST, Option:All, Date Option:All, Purchase Order Reversals) Ps_Proj_Resource CRV rows created.

PeopleSoft Reverse remaining non reversed commitments. (AP Eng: CUST_POADJUST, Option:All, Date Option:All, Purchase Order Adjustments) No other PC AP Engines can run simultaneously with CUST_POADJUST because they very well can be calling PC_POADJUST which will be incorrect because of Analysis Type POADJ being manipulated. Nightly batch a) Remove Activity Type ACT from Activity Group POADJ. b) AP Eng: PC_POADJUST for all Business Units, Purchase Order Adjustments c) Add Activity Type ACT back to Activity Group POADJ. Manipulating Activity Group POADJ is necessary because it is hard coded in PC_POADJUST and PO Requisitions are not in PS, i.e. there are no RRV transactions to offset ACT transactions. Ps_Proj_Resource CCA rows created.

Page 5/6

Page 6/6

You might also like