Tuesday, February 21, 2012

Approach to Placing xu2 Script Invocations in a wnoetxu2.sql File



In previous entries, I discussed how the template tables are the tables where the metadata associated with the view "classes" are kept.  These classes are instantiated using the Noetix View Administrator  to correspond with the Noetix Views purchased as well as your implementation of Oracle Application (e.g.  the set-ups associated with your company’s ledger(s)/legal entity (ies)/operating unit(s)/organization(s)).

Most of your hook scripts will be associated with modifications to these tables using the wnoetxu2.sql script.  After more than a trivial amount of invocations are created, some logic and structure is advised.

My approach is to sequentially enter scripts dependent on what modification(s) are being made:
1.       Section for packages, functions and procedures:  The motivations for having this section first is that it is more likely to have other sections below depend on it.  

2.       Section for custom and customizing base view:  Base views are Noetix's answer to the inline view/derived table.  It is useful because it is easier to evaluate its performance than an inline view/derived table.  Again, many of the sections following this might need to depend on this section, consequently I see it as important to lump these base view modifications together.
3.       Section for LOV Views:  While I have created custom views which are specifically for generating LOV (very much like Noetix does), I have not really used this section much.  It is driven by customer requirement (and it has not been required).

4.       Section for Clone Views: In general, I like to clone directly off of the "out of the box" Noetix Views as opposed to a Noetix View which has been modified.  It is important to be cognizant of the sequence of invocation regarding the parent and child views associated with a cloning.  This sequence usually can be the difference between an error being thrown or not.

5.       Section for Custom Views Not Cloned:  I just find it valuable to keep these view separate because whenever a migration needs to occur to another version of Noetix Views or Oracle Applications, this section needs special attention.


6.       Standard Modification of Views:  These are the modifications that one can get certified to change. All the other view changes above (except the base view modifications) really are not encouraged to be modified. That is Noetix really does not encourage clones or custom views nor is it taught in their Noetix View Customization Certification.



Here is an example of a wnoetxu2.sql script following this organizational method:

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- packages/functions/procedures

-- Date 21 APR 10 - F. Flintstone
@N_CS_OE_UTL_PKG_HDR_xu2.pkh;
@N_CS_OE_UTL_PKG_HDR_xu2.pkb;

-- Date 28 SEP 10 - F. Flintstone
-- Note:  these scripts create functions that are prerequisites for OE_Lines_Basic.
--
@N_OE_GET_TRIPS.sql;
@N_OE_GET_DELIVERIES.sql;








--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--custom and customizing base views

-- jan 2010 F. Flintstone
@OE_Lot_Serial_Base.sql;

-- Date 13 Jan 2011 - F. Flintstone added
@OE_Delivery_Base_xu2.sql;

-- Date 15 Jun 10 - F. Flintstone
@INV_Lot_Status_Hist_Base_xu2.sql;

-- Date 12 Apr 2011 - F. Flintstone
@PO_Item_Acct_Cost_Base_xu2.sql;

-- Date 12 Apr 2011 - F. Flintstone
@GMF_Item_Acct_Costs_Base_xu2.sql;

-- Date 17 May 2011 F. Flintstone
@OE_Coil_Carrier_Base_xu2.sql;
@OE_Header_Short_Text_Base_xu2.sql;

-- Date 17 Jan 12 F. Flintstone Added
@AR_Customers_Base_xu2.sql;
@OE_Contacts_Base_xu2.sql;

-- Date 02 Feb 12 F. Flintstone Added
@GMD_Category_Processing_Base_xu2.sql;
@GMD_Category_Costing_Base_xu2.sql;

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

--LOV Views

-- feb 2010
@AR_Lov_Cust_Bill_Ship.sql;

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--Clone Views

--Mostly clones with some source views included
--because clone script depends on initial changes to source view


-- RJ Adding additional customizations
-- Date 23 OCT 09
@OE_Lines_xu2.sql;
--was moved to cloned section because clones
--depend on changes made here prior to
--creation of the clones

-- Date 21 OCT 10 - F. Flintstone
@GMD_Formulas_xu2.sql;
--was moved to cloned section because clone
--depends on changes made here prior to
--creation of the clone

-- Date 14 MAY 10 - F. Flintstone
@GME_Batch_Headers_xu2.sql
--was moved to cloned section because clones
--depend on changes made here prior to
--creation of the clones



-- Date 24 AUG 10 - F. Flintstone
@INV_Item_Onhand_By_Lot_Loc_xu2.sql;

-- Date 24 SEP 10 - F. Flintstone
@OE_Lines_Basic_xu2.sql;

-- Date 22 OCT 10 - F. Flintstone
@GME_Batch_Headers_Summary_xu2.sql;

-- Date 01 NOV 10 - F. Flintstone
@GMD_Product_Formulas_xu2.sql;

-- Date 13 Jan 2011 - F. Flintstone
@OE_Lines_Shipping_Basic_xu2.sql;

--17 jan 2012 F. Flintstone
@INV_CS_Lot_Onhand_By_Batch_xu2.sql;

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--Custom Views Not Cloned

-- Date 15 Jun 10 - F. Flintstone
@INV_Lot_Status_History_xu2.sql;
@INV_Alias_Lot_Trnsctns_xu2.sql;
@INV_Batch_Transactions_xu2.sql;

-- Date 08 SEP 10 - F. Flintstone
@AR_CS_Commission_Rates_xu2.sql;

-- Date 10 SEP 10 - F. Flintstone
@AR_CS_Collection_Notes_xu2.sql;

-- Date 16 SEP 10 - F. Flintstone
@GMF_CS_Item_Cost_xu2.sql;

-- Date 20 SEP 10 - F. Flintstone
@INV_Onhand_Period_End_xu2.sql;

-- Date 01 OCT 10 - F. Flintstone
@OE_CS_Order_Book_Changes_xu2.sql;


-- Date 14 OCT 10 - F. Flintstone
@GMD_CS_Customer_Spec_Reviews_xu2.sql;

-- Date 19 OCT 10 - F. Flintstone
@GMD_CS_Cust_Item_Spec_Reviews_xu2.sql;

-- Date 12 Apr 2011 - F. Flintstone
@GMF_Processing_WIP_Batches_xu2.sql;
@PO_Inter_Org_Shipments_xu2.sql;
--@GMD_Billet_Formula_Base_xu2.sql;
--@GMD_CS_Indented_Formulas_xu2.sql;

-- 17 May 2011 F. Flintstone
@OE_CS_Transportation_xu2.sql;
@OE_CS_List_Lines_All_xu2.sql;

-- 18 Aug 2011 F. Flintstone
@AR_CS_Cust_Freight_Details_xu2.sql;

--18 Oct 2011 F. Flintstone
@GME_CS_MES_Melt_Batch_Xfer_xu2.sql;
@GME_CS_MES_Proc_Batch_Xfer_xu2.sql;
@GME_CS_MES_Roll_Batch_Xfer_xu2.sql;


-- Date 12 Mar 12 - F. Flintstone
@OE_CS_Tads_Loads_Details_xu2.sql;

--17 jan 2012 F. Flintstone
@EAM_CS_Asset_Log_xu2.sql;

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--Standard Modification of Views


-- Date 23 OCT 09
@INV_Items_xu2.sql;
--@OE_Lines_xu2.sql;
--was moved to cloned section because clones
--depend on changes made here prior to
--creation of the clones

@OE_Order_Territories_xu2.sql;
@OE_Backlog_xu2.sql;

-- Dec 2009
@EAM_Work_Orders_xu2.sql;
@PO_Blanket_PO_Lines_xu2.sql;
@OE_Pick_Slips.sql;
@OE_Backordered_Picking_Lines.sql;
@OE_Returns.sql;
@OE_Book_Bill_Backlog.sql;
@OE_Deliveries_xu2.sql;
@PO_PO_Lines.sql;
@RA_Customers_xu2.sql;


--F. Flintstonejan 2010
@OE_Picking_Line_Details_xu2.sql;

--  Date 07 APR 10 - F. Flintstone
@EAM_Asset_Downtime_xu2.sql;
@EAM_Work_Requests_xu2.sql;
@OE_Delivery_Departure_Details_xu2;
@OE_Departures_xu2;

--  Date 08 APR 10 - F. Flintstone
@CS_Service_Requests_xu2.sql;
@INV_Lot_Transactions_xu2.sql;

-- Date 20 APR 10 - F. Flintstone
@EAM_Asset_Activity_Assoc_xu2.sql;

-- Date 28 APR 10 - F. Flintstone
@EAM_Work_Order_Resources_xu2.sql;

-- Date 29 APR 10 - F. Flintstone
@AP_Invoice_Pay_Schedules_xu2.sql;

-- Date 30 APR 10 - F. Flintstone
@OE_Order_Invoices_xu2.sql;
@OE_Returns_xu2.sql;

-- Date 14 MAY 10 - F. Flintstone
--@GME_Batch_Headers_xu2.sql
--was moved to cloned section because clones
--depend on changes made here prior to
--creation of the clones


-- Date 15 Jun 10 - F. Flintstone
@INV_Customer_Items_xu2.sql

-- Date 23 AUG 10 - F. Flintstone
@PO_Receipts_xu2.sql;

-- Date 26 AUG 10 - F. Flintstone
@AR_Disputes_xu2.sql;

-- Date 30 AUG 10 - F. Flintstone
@AR_Transaction_Line_Dtls_xu2.sql;
@AR_Tran_Dist_SLA_GL_Je_xu2.sql;

-- Date 10 SEP 10 - F. Flintstone
@AR_Cash_Receipts_xu2.sql;

-- Date 13 SEP 10 - F. Flintstone
@AP_Checks_xu2.sql;

-- Date 14 SEP 10 - F. Flintstone
@AR_Customer_Balance_Aging_xu2.sql;

-- Date 16 SEP 10 - F. Flintstone
@INV_Item_Onhand_By_Lot_xu2.sql;


-- Date 30 SEP 10 - F. Flintstone
@OE_Delivery_Assignments_xu2.sql;


-- Date 04 OCT 10 - F. Flintstone
@OE_List_Lines_xu2.sql;

-- Date 06 OCT 10 - F. Flintstone
@AP_Inv_Dist_SLA_GL_Je_xu2.sql;

-- Date 07 OCT 10 - F. Flintstone
@CS_Charge_Details_xu2.sql;

-- Date 08 OCT 10 - F. Flintstone
@GMD_QC_Specifications_xu2.sql;

-- Date 12 OCT 10 - F. Flintstone
@GMD_QC_Results_xu2.sql;
@GMD_QC_Tests_xu2.sql;
@INV_Item_Catalogs_xu2.sql;

-- Date 19 OCT 10 - F. Flintstone
@GMD_QC_Cust_Deviation_Samples_xu2.sql;

-- Date 21 OCT 10 - F. Flintstone
@INV_Category_xu2.sql;

--@GMD_Formulas_xu2.sql;
--was moved to cloned section because clone
--depends on changes made here prior to
--creation of the clone


@GMD_Recipes_xu2.sql;
@GMD_Routings_xu2.sql;


-- Date 25 OCT 10 - F. Flintstone
@INV_Lot_Details_xu2.sql;

-- Date 07 Jan 2011 - Praveen/F. Flintstone
@OE_Orders_xu2.sql;

-- 27 Jun 2011 F. Flintstone
@GME_Batch_Step_Rsrc_Actvty_xu2.sql;
@GMF_Resource_Costs_xu2.sql;

-- 22 Jul 2011 F. Flintstone
@B24485.sql;
-- END Additions

- 25 Aug 2011 F. Flintstone
@CSG_Charge_Details_xu2.sql;

--01 nov 2011 F. Flintstone
@PO_Vendors_xu2.sql;
@GL_Journal_Entries_xu2.sql;


-- end wnoetxu2.sql



No comments:

Post a Comment