Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 3
Oracle Advisor Webcast Program
§ Current schedule § Archived recordings § Doc ID 740966.1
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 4
Future Advisor Webcasts VOICE STREAMING ENABLED Teleconference Access: US & Canada: 866- 627-3315 Toll Number: +1-706-758-7972 Global Toll-Free: 1148600.1 Password: Oracle WIP WIP Webcast Calendar/Archive Doc ID 1319827.1 All Webcast Calendar/Archive Doc ID 740966.1
Upcoming live webcasts and recent recordings:
What advisor webcast topics do YOU want to see presented? Visit the Work In Process and Flow Manufacturing My Oracle Support Community today to let us know.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 5
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decision. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
Safe Harbor Statement
Oracle Advisor Webcast Understanding Discrete Job Closure Basem Abdelrahim
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 7
Objectives
§ Assist users in better understanding and troubleshooting of discrete job closure issues.
§ Address month end issues where material or resource transactions are stuck. This, in turn, will prevent discrete job closure.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 8
Agenda
[1] Technical Overview [2] Discrete Job Closure Flow [3] Troubleshooting [4] Diagnostics
[5] Resources
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 9
§ Job closure process allows WIP discrete jobs to change status to ‘Closed’ so that
open requirement does not appear as valid demand in the Item Supply/Demand form. § You can close several standard and non-standard discrete jobs simultaneously. You can also close individual discrete jobs.
[1] Technical Overview
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 10
[1] Technical Overview (cont.)
WICDCL module (Close Discrete Jobs) § This program is called when closing discrete jobs via Form or SRS.
EAMCDCL module (Close EAM Work Orders) § This program is only used to close EAM Maintenance Work Orders. § This program does not close WIP discrete jobs. § This program calls the WIP concurrent request to close EAM Work Orders.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 11
[1] Technical Overview (cont.)
Benefits of Closing a Job 1. Closing a Job will prevent Cost Update transaction from updating items/resources in a
job. 2. Closing a Job writes off any balance remaining in wip elemental valuation accounts 3. Closing a Job will prevent any transactions from occurring. 4. All variances are computed at job close.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 12
[1] Technical Overview (cont.)
Costing Job Close Transactions 1. Closing a job calculates final costs and variances. The actual close date that
you specify determines the accounting period that WIP uses to recognize variances. You can back date the close to a prior open period if desired.
2. The close process writes off the balances remaining in the WIP elemental valuation accounts to the elemental variance accounts that you defined by accounting class, leaving a zero balance remaining in the closed job.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 13
[1] Technical Overview (cont.)
Two Ways to Close Discrete Jobs 1. Close Discrete Jobs (FORM) 2. Close Discrete Jobs (SRS) No API/Open Interface Available § There is no 'automated‘ way or public API to process the job closure.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 14
Closing Non Standard Jobs
1. You can manually close non standard jobs whenever you choose.
2. The job status is set to Closed Jobs with asset type class are costed in the same way as standard jobs, and all variances are computed at job close.
3. For jobs with expense type class, an accounting close is performed on a periodic basis.
[1] Technical Overview (cont.)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 15
[1] Technical Overview (cont.)
§ Information associated with a job is not deleted when job is closed. § You can view information for closed discrete jobs. You also can print reports on
closed jobs and closed job values. § You can close jobs of any status except jobs that are Closed, Pending Close,
Pending Bill Load, and Pending Routing Load. § Prior to closing discrete jobs, you can review job value information using the
Discrete Job Value Report, which lists standard and non-standard asset jobs, or the Expense Job Value Report, which lists non-standard expense jobs. See: Discrete Job Value Report, page 16-18 and Expense Job Value Report, page 16-23.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 16
[2] Job Closure Flow
The Close Discrete Jobs (Form) enables you to: N: Work In Process -> Discrete -> Close Discrete Job (Form) 1. Submit and immediately process job close requests 2. Specify a close date other than the system date 3. Unclose discrete jobs 4. Check and resubmit failed job close requests 5. View discrete jobs before closing them
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 17
The Close Discrete Jobs (SRS) enables you to: N: Work In Process -> Discrete -> Close Discrete Job (SRS) 1. Specify when to submit the close request (concurrent or scheduled processing) 2. Specify a close date other than the system date 3. Use criteria for closing jobs based on a range of accounting classes, job
numbers, and dates - including release, start, and completion dates 4. Exclude or include jobs linked to sales orders from the processing 5. Exclude or include uncompleted jobs from the processing 6. Exclude or include jobs with pending transactions
[2] Job Closure Flow (cont.)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 18
[2] Job Closure Flow (cont.) Close Requirements
1. In the Close Discrete Jobs (Form), you cannot close a job that has pending
material, resource, or move transactions including those that the concurrent manager has not processed.
2. You also cannot close a job that has uncosted material transactions. If you attempt to close a job for which pending or uncosted transactions exist, the close process fails and the job status changes to Failed Close.
3. When a job with outside processing operations is changed to complete, closed, or canceled status - an informational warning message displays if open purchase orders or requisitions exist for any of the operations.
4. Changing a job status to completed, closed, or canceled is prevented if open reservations exist.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 19
[2] Job Closure Flow (cont.)
Close Requirements (cont.)
5. If you attempt one of these transactions for a job linked to a sales order, an error message displays. You have two options in order to continue:
a. Unlink the sales order reserved to this job
b. Reduce the job quantity of the job to equal the completed quantity
6. If you close a job for an MPS-planned item with a quantity complete different from the quantity originally scheduled, the MPS for the actual quantity is automatically updated.
7. In Oracle Warehouse Management organizations, open move orders for a job are cancelled when the job is closed. However, you must perform an unload task transaction to delete material requirement and move order record.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 20
[2] Job Closure Flow (cont.) Unclose Requirements 1. You cannot unclose a job that does not have a status of Closed. 2. You cannot unclose a job that is linked to a sales order. 3. You also cannot unclose a job that was closed in a now closed accounting period. 4. The form function parameter WIP_WIPDJMDF_CLOSE enables the Unclose
option in the Tools menu. See Figure 1. 5. If you do not want Unclose to display in the menu, set the parameter to No. The
default for this option is Yes. See Figure 2.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 21
[2] Job Closure Flow (cont.)
Figure 1
N: Work In Process -> Discrete Jobs -> Close Discrete Jobs (Form)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 22
[2] Job Closure Flow (cont.) N: System Administrator -> Application -> Function
Figure 2
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 23
[2] Job Closure Flow (cont.)
To Re-open Closed Jobs 1. From the queried jobs displayed, select which jobs to reopen. 2. When you reopen a job, it reverts to its pre-close status.
§ For example, reopening a job that had a pre-close status of Complete changes its status from Closed back to Complete.
§ See: Work In Process User’s Guide - Discrete Job Statuses, page 12-6. 3. Choose Unclose from the Tools menu to submit the request. 4. When you choose Unclose, job statuses are immediately changed to their pre-close
status.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 24
[3] Troubleshooting
Check for Stuck Records via Application or SQL*PLUS: ** At the Application Level:
1. Pending Transactions form
N: Inventory -> Transactions -> Pending Transactions Resubmit errored transactions if any exists under Error tab.
2. Pending Move Transactions form N: Work In Process -> Move Transactions -> Pending Move Transactions Resubmit errored transactions if any exists under Error button
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 25
[3] Troubleshooting (cont.) ** At the Application Level:
3. Pending Resource Transactions form
N: Work In Process -> Resource Transactions -> Pending Resource Transactions Resubmit errored transactions if any exists under Error button
4. View Material Transactions form N: Work In Process -> Material Transactions -> View Material Transactions Resubmit errored transactions if any exists under Tools -> Submit All
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 26
[3] Troubleshooting (cont.) Check if records are stuck in any of the following tables: ** At the Table Level: 1. Pending Material Transactions:
select * from mtl_material_transactions_temp where transaction_source_type_id = 5;
2. Uncosted Material Transactions: select * from MTL_MATERIAL_TRANSACTIONS where costed_flag in ('N','E') where transaction_source_type_id = 5;
3. Pending or Errored Move Transactions: select * from WIP_MOVE_TXN_INTERFACE where process_status in (1,3);
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 27
[3] Troubleshooting (cont.)
** At the Table Level: 4. Pending or Errored Resource Transactions:
select * from WIP_COST_TXN_INTERFACE where process_status in (1,3); 5. Error Associated with Resource Transactions:
select * from WIP_TXN_INTERFACE_ERRORS where TRANSACTION_ID in (select TRANSACTION_ID from WIP_COST_TXN_INTERFACE where process_status= 3)
6. Error Associated with Move Transactions: select * from WIP_TXN_INTERFACE_ERRORS where TRANSACTION_ID in (select TRANSACTION_ID from WIP_MOVE_TXN_INTERFACE where process_status= 3)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 28
[3] Troubleshooting (cont.)
Note: To identify wip_entity_id which is system generated for discrete job name or number, you can run this query:
select wip_entity_id from wip_entities where wip_entity_name like ‘xyz’; -- Value ‘xyz’ represents the job name or number
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 29
[3] Troubleshooting (cont.)
7. Unwanted Records in wip_dj_close_temp § In some cases, the concurrent process is interrupted or terminated. This, in turn,
causes records to get stranded in WIP_DJ_CLOSE_TEMP. If records in this table have status of 'Pending Close', no close routines have been called and committed.
a. Create backup tables for from wip_dj_close_temp and wip_discrete_jobs. b. Datafix to set all the jobs with Pending Close or Failed Closed to Complete
status: q delete wip_dj_close_temp where 1=1; q update wip_discrete_jobs
set status_type = 4 where status_type in (14, 15) and date_closed is null;
q commit; c. Resubmit the jobs for closure.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 30
[3] Troubleshooting (cont.)
To obtain list of the jobs which are in Pending Close status:
select wip_entity_name Job_Number, wip_entity_id Job_id from wip_entities where wip_entity_id in (select wip_entity_id from wip_discrete_jobs where status_type = 14);
To obtain list of the jobs which are in Failed Close status
select wip_entity_name Job_Number, wip_entity_id Job_id from wip_entities where wip_entity_id in (select wip_entity_id from wip_discrete_jobs where status_type = 15);
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 31
[3] Troubleshooting (cont.)
Resubmit jobs with a ‘Pending Close’ or ‘Failed Close’ status, where there are no pending transactions. 1. Responsibility: Work In Process 2. Navigation: Discrete -> Close Discrete Jobs (Form) 3. Query a discrete job with stats ‘Pending Close’ 4. Go to Tools -> Check Requests 1
You can use the Check Requests option from the Tools menu to manually resubmit jobs that have failed to close and have a Pending Close status. Resubmitting a job with Check Request sets the job's status back to its original status. Resubmitting jobs that have Pending Close statuses because the process has not yet concluded does not interrupt the close process.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 32
[3] Troubleshooting (cont.)
If Job has Date Closed in a period which is closed then there is nothing to do further. 1. No data fix can be provided.
2. The two options are to re-open the closed jobs which would require re-opening the
closed inventory periods OR create new jobs for the remaining quantity of the jobs that were closed.
3. If you wish to re-open the Inventory period to allow you re-open the jobs, refer to the following note: § Re-Open a Closed Inventory Accounting Period (Doc ID 472631.1)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 33
[3] Troubleshooting (cont.)
If the Inventory period is still open then following steps can be done. 1. Go to WIP > Discrete > Close Discrete Jobs (Form)
2. Query the problematic closed job(s)
3. Menu > Tools > Unclose
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 34
[3] Troubleshooting (cont.)
Error ‘APP-WIP-25309’ ** When the error ‘APP-WIP-25309: There is an open Requisition or Purchase Order attached to this job/schedule’ occurs when closing a discrete job, there could be several possible reasons: 1. PO/Requisition Incorrect Status
The associated PO/Requisition must be in status ‘Finally Closed’ to enable jobs to close successfully.
2. Undelivered PO Quantity POs must be delivered to the shopfloor. Users need to perform transactions of type 'Deliver' from Receiving Transactions form.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 35
[3] Troubleshooting (cont.)
Error ‘APP-WIP-25309’ (cont.) 3. Code Issue
If jobs cannot be closed even though the associated Purchase Order is closed, this could be a bug in the pertinent file (e.g. wicdcl.opp).
4. Data Corruption Example: If cancel_flag = NULL in PO_REQUISITION_LINES_ALL. Purchase requisition status (cancel_flag) shows as NULL where this should be cancelled instead. Please log an SR to obtain a data fix.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 36
[4] Diagnostics
WIP Diagnostic wipjob11i (see Doc ID 1476250.1) ** This is SQL script that captures the job information from various tables. The output will be named after the wip_entity_id and will be called <wip_entity_id>.lst . The script takes job_name (wip_entity_name) and job_id (wip_entity_id) as inputs and generates a report. ** WIP Diagnostic wipjob11i shows important information to diagnose job closure data, such as: 1. Discrete Job Status 2. Pending or errorred transactions 3. Resource and material records
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 37
[4] Diagnostics (cont.)
The collector script wipjob11i is part of R12 and can be run via the Application ** Instructions for running the collector scripts are in the following documents: § Doc ID 732341.1: Work Order Collector Script § Doc ID 732343.1: Flow Collector script § Doc ID 732342.1: Repetitive Collector script
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 38
[4] Diagnostics (cont.)
Output of Diagnostics: Apps Check for Work in Process & Inventory ** Diagnostic: Apps Check Concurrent Request This can be run from either Order Management or Purchasing Responsibility § Use View / Requests / Submit a new request § Then type Diag and hit to bring up the report parameter § Up to 5 Applications can be entered into this request.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 39
[4] Diagnostics (cont.)
WIP Debug Log for Close Discrete Job concurrent program while closing jobs ** Steps to obtain WIP Debug log are: 1. FND: Debug Log Filename = (Make sure this is null) 2. FND: Debug Log Enabled = Yes 3. FND: Debug Log Level = Statement 4. FND: Debug Log Module = WIP% 5. Remember: select max(log_sequence) from fnd_log_messages; 6. Now do the test case 7. Get the log by:
select * from fnd_log_messages where log_sequence > &max_log_sequence; --get this from Step 5..
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 40
[4] Diagnostics (cont.)
Generating Trace and Detailed Log 1. Enable profile option MRP: DEBUG to YES 2. Enable the level 12 trace with waits and binds for the Job Close Concurrent program 3. Provide the unsorted trace as well as the tkprof 4. Also, provide the log file of the concurrent program
Note: § For guidelines on generating level 12 trace files see DOC ID 726039.1. If using this
method, ensure that the concurrent program definition does not have the trace option checked. Also be sure to log out of the application before running tkprof to ensure that all the information is dumped to the trace file.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 41
[5] Resources § Oracle® Work in Process User's Guide, Release 12, Section ‘Discrete Job Close’
§ Oracle® Cost Management User’s Guide, Release 12, Section ‘Job Close Costing’ § Information Center : Using Oracle Work In Process (Doc ID 1417745.2) § Work In Process - Discrete / Lot Based Job Data Collection Script (Doc ID 1476250.1)
§ Discrete Job or EAM Work Order remain stuck in Pending Close Status (Doc ID
158674.1)
§ Closing WIP Jobs Causes (WICDCL - Close Discrete Jobs) Causes WIP_PO_NOT_DELIVERED Message (Doc ID 1352980.1)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 42
[5] Resources (cont.) § Closing 'Failed Close' Discrete Jobs Using the Application (Not A Data Fix). Try this first
(Doc ID 422245.1)
§ WIP Close Discrete Job Program (WICDCL) Ends In "Error" Status (Doc ID 1394986.1)
§ WIP Jobs Are Closed But Need To Perform Further Transactions Against Them
(Doc ID 1302257.1)
§ How to Close Outside Processing (OSP) Discrete Jobs (Doc ID 1279878.1)
§ How To Get Level 12 Trace And FND Debug File For Concurrent Programs (Doc ID 726039.1)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 43
Summary
§ [1] Technical Overview § [2] Discrete Job Closure Flow § [3] Troubleshooting § [4] Diagnostics § [5] Resources
What we covered today
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 44
Questions & Answers
q To ask a question on the phone line, select *1 on your phone.
q To ask a question online, use the Q&A area at the top.
q Your question will be read aloud in the order received.
q Question can also be
asked on the My Oracle Support Communities
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 45
Top Articles and Community Links
§ Work In Process Information Center [ID 1417725.2].
§ Work In Process & Flow Manufacturing Advisor Webcast Calendar And Archive [ID 1319827.1]
§ All Advisor Webcasts [ID 1455888.1].
§ Continue the Discussion on the Work In Process & Flow Manufacturing My Oracle Support Community.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 46
Learn More
§ About Oracle Support Best Practices www.oracle.com/goto/proactivesupport
§ Get Proactive in My Oracle Support https://support. oracle.com | Doc ID: 432.1
§ Get Proactive Blog https://blogs.oracle.com/getproactive/
§ Ask the Get Proactive Team [email protected]
Available References and Resources to Get Proactive
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 47
My Oracle Support Community Collaborate with a large network of your industry peers, support professionals, and Oracle experts to exchange information, ask questions & get answers.
Visit the My Oracle Support Community now!!
1. Log into My Oracle Support.
2. Select the Community tab.
3. Start typing the community name in the Find a Community Quick Find field.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 48
Advisor Webcast Program
§ Register for upcoming live advisor webcasts.
§ Access past webcast recordings and presentation material.
§ Continue the discussion on a specific webcast topic.
§ Let us know what topics you would like presented in the communities or in the post webcast survey.
§ Doc Id 740966.1
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 49
Questions & Answers
q To ask a question on the phone line, select *1 on your phone.
q To ask a question online, use the Q&A area at the top.
q Your question will be read aloud in the order received.
q Question can also be
asked on the My Oracle Support Communities
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 50
THANK YOU
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 51
Top Related