oracle work in process (wip) - release...

23
Oracle Work In Process (WIP) - Release 11.5 Purpose of the document ................................................................................................................................ 3 What is needed for debugging? ...................................................................................................................... 3 Common Requirements......................................................................................................................... 3 Requirements specific to a Component ................................................................................................. 3 HOW TO GENERATE THE LOG AND TRACE FILES ................................................................................... 7 How to generate form trace? ................................................................................................................. 7 How to generate database trace? ......................................................................................................... 7 How to generate Forms Runtime Diagnostics (FRD)?........................................................................... 8 How to generate INV transaction log file in ONLINE cases? ................................................................. 8 How to generate INV txn log file in BACKGROUND cases? ................................................................. 8 How to generate WIP log files in ONLINE cases? ................................................................................. 9 How to generate WIP log files in BACKGROUND cases?..................................................................... 9 How to generate CTO debug log files?.................................................................................................10 STEPS TO GENERATE LOG AND TRACE FILES - COMPONENT WISE ...................................................11 WIPTXSFM – Move Transactions ........................................................................................................11 Online means ..................................................................................................................................11 Background means ..........................................................................................................................11 Steps to generate Log file in ONLINE cases ...................................................................................11 Steps to generate Log file in BACKGROUND cases .......................................................................12 WIPTXCMP – Completion Transactions...............................................................................................14 Online means ..................................................................................................................................14 Background means ..........................................................................................................................14 Steps to generate Log file in ONLINE cases ...................................................................................14 Steps to generate Log file in BACKGROUND cases .......................................................................15 WIPTXMAT – WIP Material Transactions.............................................................................................16 Online means ..................................................................................................................................16 Background means ..........................................................................................................................16 Steps to generate Log file in ONLINE cases ...................................................................................16 Steps to generate Log file in BACKGROUND cases .......................................................................17 WIPTXRSC – Resource Transactions ..................................................................................................18 WIPTXCFM – Work Order-less Completions .......................................................................................20 Online means ..................................................................................................................................20 Background means ..........................................................................................................................20 Steps to generate Log file in ONLINE cases ...................................................................................20 Steps to generate Log file in BACKGROUND cases .......................................................................21 MOBILE.....................................................................................................................................................22 DEBUGGING WIP TRANSACTION ISSUE

Upload: lamkiet

Post on 05-Feb-2018

258 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

Purpose of the document ................................................................................................................................ 3

What is needed for debugging? ...................................................................................................................... 3

Common Requirements......................................................................................................................... 3

Requirements specific to a Component................................................................................................. 3

HOW TO GENERATE THE LOG AND TRACE FILES ................................................................................... 7

How to generate form trace? ................................................................................................................. 7

How to generate database trace? ......................................................................................................... 7

How to generate Forms Runtime Diagnostics (FRD)?........................................................................... 8

How to generate INV transaction log file in ONLINE cases? ................................................................. 8

How to generate INV txn log file in BACKGROUND cases? ................................................................. 8

How to generate WIP log files in ONLINE cases?................................................................................. 9

How to generate WIP log files in BACKGROUND cases?..................................................................... 9

How to generate CTO debug log files?.................................................................................................10

STEPS TO GENERATE LOG AND TRACE FILES - COMPONENT WISE...................................................11

WIPTXSFM – Move Transactions ........................................................................................................11

Online means ..................................................................................................................................11

Background means..........................................................................................................................11

Steps to generate Log file in ONLINE cases ...................................................................................11

Steps to generate Log file in BACKGROUND cases .......................................................................12

WIPTXCMP – Completion Transactions...............................................................................................14

Online means ..................................................................................................................................14

Background means..........................................................................................................................14

Steps to generate Log file in ONLINE cases ...................................................................................14

Steps to generate Log file in BACKGROUND cases .......................................................................15

WIPTXMAT – WIP Material Transactions.............................................................................................16

Online means ..................................................................................................................................16

Background means..........................................................................................................................16

Steps to generate Log file in ONLINE cases ...................................................................................16

Steps to generate Log file in BACKGROUND cases .......................................................................17

WIPTXRSC – Resource Transactions..................................................................................................18

WIPTXCFM – Work Order-less Completions .......................................................................................20

Online means ..................................................................................................................................20

Background means..........................................................................................................................20

Steps to generate Log file in ONLINE cases ...................................................................................20

Steps to generate Log file in BACKGROUND cases .......................................................................21

MOBILE.....................................................................................................................................................22

DEBUGGING WIP TRANSACTION ISSUE

Page 2: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

For Mobile UI log files................................................................................................................................22

ATO AND CTO..........................................................................................................................................23

DEBUGGING WIP TRANSACTION ISSUE

Page 3: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

Purpose of the document The objective of this paper is to provide detailed instructions for generating log and trace files for debugging purposes.

What is needed for debugging?

Common Requirements

1. For all bugs, output of appscheck.sql showing all the WIP files. 2. For all datafix issues, Output of Wipjob11i.sql 3. For all performance issues, raw and tkprof output of the process. Also, please

provide sqltx output (stats.dmp and sqltx.txt) against the update statement. Refer to Metalink note 215187.1 that will guide you how to get them from the customer env.

4. Answer to “Has all recommended patches (RPL) been applied to the instance?” If not, why?

Requirements specific to a Component

DEBUGGING WIP TRANSACTION ISSUE

Page 4: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

Transaction Online mode Background mode Move Transaction

Forms Trace – raw and tkprof (with binds if possible) Forms Runtime Diagnostics (FRD) for UI Related issues Inventory Transaction Log Files For 11.5.10 and above, WIP log files

Move Worker Log file Inventory Transaction log file Database Trace of Move Worker – raw and tkprof

Material Transactions/ Completions

Forms Trace – raw and tkprof (with binds if possible) Forms Runtime Diagnostics (FRD) for UI Related issues Inventory Transaction Log Files For 11.5.10 and above, WIP log files For 11.5.9 and consigned inventory organizations, wip log file. No wip log file will be generated for non-consigned orgn. For ATO related issues, CTO debug file

Inventory Worker Log file Inventory Worker database trace – raw and tkprof WIP log file For ATO related issues, CTO debug file

WorkOrderLess Completions

Forms Trace – raw and tkprof (with binds if possible) Forms Runtime Diagnostics (FRD) for UI Related issues Inventory Transaction Log Files For 11.5.10 and above, WIP log files

Inventory Worker Log file Inventory Worker database trace – raw and tkprof WIP log file

Resource Transaction

There’s no online mode for resource txns, however if issues related to UI or performance, need Forms Trace – raw and tkprof (with binds if possible) Forms Runtime Diagnostics (FRD) for UI Related issues

Resource Worker Log file Resource Worker Database Trace file – raw and tkprof

DEBUGGING WIP TRANSACTION ISSUE

Page 5: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

Component Online mode Background mode Mobile (for all txns)

MWA server log file Same as desktop txns

Same as desktop txns

ATO_CTO For completion txns., CTO debug file Auto Create FAS log file Omse11i.sql output Database trace file – raw and tkprof

Open Interface / WIP Mass Load

N/A Dump of open interface tables for sample jobs/txns that are failing. Dump of errors from interface error tables Corresponding worker log files Corresponding worker database trace files – raw and tkprof Inventory Transaction Log files.

OSP

If issues found in receiving txns and RCV:Transaction Mode is ‘On-line’ , provide form trace of receiving transaction form If requisitions are not getting created, check WIP parameter “Requisition Creation Time”. If the value is ‘at operation’, provide form trace of move form. ‘at job/schedule release’, provide form trace of discrete job form.

If issues found in receiving txns and RCV:Transaction Mode is ‘Batch’ or ‘Concurrent’ provide Receiving txn worker log file Receiving txn database trace file. If requisitions are not getting created, check WIP parameter “Requisition Creation Time”. If the value is ‘at operation’, provide log files as indicated in move txns – background mode. ‘at job/schedule release’, provide log and trace for WIP concurrent exploder.

REPORT N/A Output of the report clearly indicating the problem

WORK_ORDER If UI related, FRD and form trace. If processing related, log and database trace file of the process

DEBUGGING WIP TRANSACTION ISSUE

Page 6: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

WORKBENCH

Job Creation / Scheduling Issues

If WIP:Discrete Job Definition Form is ‘Interactive Definition’, change it to ‘Concurrent Definition’ and follow steps for the Background Mode.

If WIP:Discrete Job Definition Form is ‘Concurrent Definition’ get us The log file of WIP Concurrent Exploder request Raw and tkprofed trace file of WIP Concurrent Explider

OTHERS/MISC Lead Time Calculation

N/A Log file for Concurrent request for LeadTime Calculation

OTHERS/MISC Close Jobs

Log file and trace files for Concurrent request for ‘Close Jobs’

Log file for Concurrent request for ‘Close Jobs’

OTHERS/MIS Purge Jobs

Log file and trace files for Concurrent request for ‘Purge Jobs’

Log file for Concurrent request for ‘Purge Jobs’

DEBUGGING WIP TRANSACTION ISSUE

Page 7: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

HOW TO GENERATE THE LOG AND TRACE FILES

How to generate form trace?

1. Open the form that has the problem. 2. Enable Trace. (Toolbar Menu: Help->Diagnostic->Trace->Trace with Binds). This

will give a note saying “You have enabled SQL tracing for this form….”. Please keep a note of the trace file name from this note.

3. Perform the transaction that causes the problem. (Reproduce issue). 4. Disable trace and exit form. 5. Get the trace file that is generated – both the raw trace and tkprof output with

explain plan.

How to generate database trace?

1. Open the concurrent program definition form. (Navigation: Concurrent ->

Program). 2. Query the program for which you need to enable the trace. For example, if you

need a database trace for move worker, then query on Program = “WIP Move Transaction Worker”

3. Check the “Enable Trace” checkbox and save. 4. Now, activate the move manager and note the request_id for the move worker.

Wait for move worker to complete. 5. Get the process_id of this request using the following query.

select oracle_process_id

from fnd_concurrent_requests

where request_id = &request_id;

6. Go to the directory where database trace files are generated. You can use the following query to find out this directory.

select value from v$parameter where name=’user_dump_dest’;

7. Search the tracefile that contains the process_id obtained in step 5. For example, check ls –l *123456* if 123456 was the process_id obtained in step 5.

Get the trace file that is generated – both the raw trace and tkprof output with explain plan.

DEBUGGING WIP TRANSACTION ISSUE

Page 8: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

How to generate Forms Runtime Diagnostics (FRD)?

FRD is enabled by passing two parameters to Forms: record=collect and log=/mydir/frd.log. Omitting the log parameter results in the FRD log file being written placed in the current directory (where the forms server was started from), and the log file name being constructed from the UNIX pid, eg. Collect_1234.txt Using the Application Release 11.5 standard CGI cartridge configuration file and base HTML, it is possible to pass the parameters in the URL, since records and collect are both defined in the appsweb.cfg file and the base HTML. For example, Please refer to the Metalink Note 150168.1 for additional information on generating the FRD.

How to generate INV transaction log file in ONLINE cases?

For all releases, set the following profiles:

1. INV: Debug Trace = Yes 2. INV: Debug Level = 11 3. INV: Debug File = <valid directory from v$parameter> 4. Perform the move transaction

You can use the following query to find out a valid directory. select value

from v$parameter

where name=’utl_file_dir’;

How to generate INV txn log file in BACKGROUND cases?

For all releases, set the following profiles:

1. INV: Debug Trace = Yes 2. INV: Debug Level = 11 3. INV: Debug File = <valid directory from v$parameter> 4. You can use the following query to find out a valid directory.

select value

from v$parameter

where name=’utl_file_dir’;

DEBUGGING WIP TRANSACTION ISSUE

Page 9: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

How to generate WIP log files in ONLINE cases?

For 11.5.10 and above, the WIP debug log files will be created if

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%

To get the log file, run the following SQL script. This will create an output called MoveON.txt

set pagesize 500

col message_text format a99

spool MoveON.txt

select message_text

from fnd_log_messages

where audsid=(select oracle_session_id

from fnd_concurrent_requests

where request_id =

&MOVE_TRNX_WORKER_REQUEST_ID)

order by log_sequence;

spool off;

For 11.5.9 and prior, there will be NO WIP log files generated for online cases.

How to generate WIP log files in BACKGROUND cases?

For 11.5.10 and above, the WIP debug log files will be created if

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%

To get the log file, run the following SQL script. This will create an output called MoveBG.txt

set pagesize 500

col message_text format a99

DEBUGGING WIP TRANSACTION ISSUE

Page 10: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

spool MoveBG.txt

select message_text

from fnd_log_messages

where audsid=(select oracle_session_id

from fnd_concurrent_requests

where request_id = &MOVE_TRNX_WORKER_REQUEST_ID)

order by log_sequence;

spool off;

For 11.5.9 and prior, the WIP debug log files will be created if

1. TP: WIP Concurrent Message Level = Message Level 2 2. TP: WIP Debug Directory = <valid directory from v$parameter>

You can use the following query to find out a valid directory. select value

from v$parameter

where name=’utl_file_dir’;

3. TP:WIP Debug File = <valid filename> 4. MRP: Debug Mode = Yes

How to generate CTO debug log files?

For all releases, CTO debug log will be created if OM: Debug Level = 5. Note:

1. Log file will be generated in the last directory specified in v$parameter select value

from v$parameter

where name=’utl_file_dir’;

2. File name generated will be of format ctoDDHH24MISS.dbg where DD is the date, HH24MISS is the hour, minute and seconds.

DEBUGGING WIP TRANSACTION ISSUE

Page 11: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

STEPS TO GENERATE LOG AND TRACE FILES - COMPONENT WISE

TRANSACTIONS There are 5 forms available for performing WIP transactions.

Form Name Form Function Navigation Path WIPTXSFM Move Transactions WIP Move Transactions Move

Transactions

WIPTXCMP Completion Transactions

WIP Material Transactions Completion Transactions

WIPTXMAT WIP Material Transactions

WIP Material Transactions WIP Material Transactions

WIPTXRSC Resource Transactions

WIP Resource Transactions Resource Transactions

WIPTXCFM Work Order-less Completions

WIP Material Transactions Work Order-less Completions

WIPTXSFM – Move Transactions

Online means TP: WIP Move Transaction = Online processing TP: INV Transaction processing mode = Online Processing

Background means

TP: WIP Move Transaction = Background processing TP: INV Transaction processing mode = Background Processing

Steps to generate Log file in ONLINE cases

11.5.10 and later 1. Enable the INV and WIP profiles for debugging. 2. Go to the Move transaction form, and perform the move transaction, click on

save button. After the form comes back with the following message ‘Shop Floor transaction(s) completed’, click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql

DEBUGGING WIP TRANSACTION ISSUE

Page 12: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

script: set pagesize 500

col message_text format a99

spool MoveON.txt

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the MoveON.txt generated from the above sql script 4. Upload the INV transaction log file from the directory specified in INV: Debug

file profile option.

11.5.9 and prior 1. Enable the INV and WIP profiles for debugging. 2. Go to the Move transaction form, and perform the move transaction, click on

save button. After the form comes back with the following message ‘Shop Floor transaction(s) completed’.

3. Upload the INV transaction log file from the directory specified in INV: Debug file profile option.

Note: If you are having difficulties generating debug log files for ONLINE cases, please set the profiles to background and provide the logs.

Steps to generate Log file in BACKGROUND cases

11.5.10 and later 1. Enable the INV and WIP profiles for debugging. 2. Go to the Move transaction form, and perform the move transaction, click on

save button. After the form comes back with the following message ‘Shop Floor transaction(s) completed’, click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql script:

set pagesize 500

col message_text format a99

spool MoveBG.txt

DEBUGGING WIP TRANSACTION ISSUE

Page 13: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the MoveBG.txt generated from the above sql script 4. Upload the INV transaction log file from the directory specified in INV: Debug

file profile option.

11.5.9 and prior 1. Set the INV and WIP debug profiles. 2. Launch the Move Transaction Interface Manager. 3. Go to the Move transaction form, and perform the move transaction, click on

save button. After the form comes back with the following message ‘Shop Floor transaction(s) completed’. The move worker will process the records from WMTI.

4. Upload the Move Worker concurrent log file. 5. Upload the INV transaction log file from the directory specified in INV: Debug

file profile option.

DEBUGGING WIP TRANSACTION ISSUE

Page 14: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

WIPTXCMP – Completion Transactions

Online means TP: WIP Completion Material Processing = Online processing TP: INV Transaction processing mode = Online Processing

Background means

TP: WIP Completion Material Processing = Background processing TP: INV Transaction processing mode = Background Processing

Steps to generate Log file in ONLINE cases

11.5.10 and later 1. Enable the INV and WIP profiles for debugging. 2. Go to the WIP Material Transactions form, and perform a Completion

Transactions click on Done button. After the form comes back with the following message ‘WIP completion transaction(s) completed’, click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql script:

set pagesize 500

col message_text format a99

spool CompON.txt

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the CompON.txt generated from the above sql script 4. Upload the INV transaction log file from the directory specified in INV: Debug

file profile option.

11.5.9 and prior 1. Enable the INV and WIP profiles for debugging. 2. Go to the WIP Material Transactions form, and perform a Completion

Transactions click on Done button. After the form comes back with the following message ‘WIP completion transaction(s) completed’

DEBUGGING WIP TRANSACTION ISSUE

Page 15: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

3. Upload the INV transaction log file from the directory specified in INV: Debug file profile option.

Note: If you are having difficulties generating debug log files for ONLINE cases, please set the profiles to background and provide the logs.

Steps to generate Log file in BACKGROUND cases

11.5.10 and later 1. Enable the INV and WIP profiles for debugging. 2. Go to the WIP Material Transactions form, and perform a Completion

Transactions click on Done button. After the form comes back with the following message ‘WIP completion transaction(s) completed’, click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql script:

set pagesize 500

col message_text format a99

spool CompBG.txt

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the CompBG.txt generated from the above sql script 4. Make sure material transaction manager is running. Once the material worker

completes, upload the worker log file.

11.5.9 and prior 1. Set the INV and WIP debug profiles. 2. Launch the Inventory Material Transaction Manager. 3. Go to the WIP Material Transactions form, and perform a Completion

Transactions click on Done button. After the form comes back with the following message ‘WIP completion transaction(s) completed’. The material transaction worker will process the records.

4. Upload the Material Transaction Worker log file.

DEBUGGING WIP TRANSACTION ISSUE

Page 16: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

WIPTXMAT – WIP Material Transactions

Online means TP: WIP Material Transaction Form = Online processing TP: INV Transaction processing mode = Online Processing

Background means

TP: WIP Material Transaction Form = Background processing TP: INV Transaction processing mode = Background Processing

Steps to generate Log file in ONLINE cases

11.5.10 and later

1. Enable the INV and WIP profiles for debugging. 2. Go to the WIP Material Transactions form, and perform a Material

Transactions (Component Issue) click on Done button. After the form comes back with the following message ‘Material transaction(s) completed’, click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql script:

set pagesize 500

col message_text format a99

spool MatON.txt

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the MatON.txt generated from the above sql script 4. Upload the INV transaction log file from the directory specified in INV: Debug

file profile option.

11.5.9 and prior 1. Enable the INV and WIP profiles for debugging. 2. Go to the WIP Material Transactions form, and perform a Material

Transactions (Component Issue) click on Done button. After the form comes back with the following message ‘Material transaction(s) completed’.

DEBUGGING WIP TRANSACTION ISSUE

Page 17: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

3. Upload the INV transaction log file from the directory specified in INV: Debug file profile option.

Note: If you are having difficulties generating debug log files for ONLINE cases, please set the profiles to background and provide the logs.

Steps to generate Log file in BACKGROUND cases 11.5.10 and later

1. Enable the INV and WIP profiles for debugging. 2. Go to the WIP Material Transactions form, and perform a Material Transactions

(Component Issue) click on Done button. After the form comes back with the following message ‘Material transaction(s) completed’, click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql script:

set pagesize 500

col message_text format a99

spool MatBG.txt

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the MatBG.txt generated from the above sql script 4. Invoke the material transaction manager. Once the material worker completes,

upload the worker log file.

11.5.9 and prior 1. Set the INV and WIP debug profiles. 2. Launch the Inventory Material Transaction Manager. 3. Go to the WIP Material Transactions form, and perform a Completion

Transactions click on Done button. After the form comes back with the following message ‘WIP completion transaction(s) completed’. The material transaction worker will process the records.

4. Upload the Material Transaction Worker log file.

DEBUGGING WIP TRANSACTION ISSUE

Page 18: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

WIPTXRSC – Resource Transactions

The resource transactions are processed in batch, they are populated in wip_cost_txn_interface table. The cost Manager processes resource transactions.

Cost Manager controls the following processes.

Cost Manager CMCTCM The Cost Manager invokes the material cost manager and if WIP is installed, the resource cost manager.

Material cost transaction worker

CMCMCW This subroutine polls the transaction table for uncosted transactions, and costs them by calling the cost_trx library function.

Actual Cost Worker

CMCACW This actual cost worker processes material transactions that are assigned by the actual cost manager in chronological order based on the transaction_date and transaction_id. Depending on the transaction origination (INV or WIP), the appropriate cost processing routine will be invoked.

Resource Cost Worker

CMCCTW Processes transactions that are assigned by the transaction manager through the group_id. The type specifies the type of transactions within a group.

TYPE 1 - Resource / OSP

Overhead Cost Worker

CMCOCW processes transactions that are assigned by the transaction manager through the group_id. The type specifies the type of transactions within a group.

TYPE 2 - Overhead

Operation Yield Processor

CSTPOYLD CSTPOYLD.process_op_yield

DEBUGGING WIP TRANSACTION ISSUE

Page 19: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

To Enable Debug for Cost Manager, Stop the Cost Manager and set the following profile options, and relaunch the Cost Manager.

MRP:Debug Mode = Yes

CST:Cost update debug level to = Full

Please provide the Cost Manager, Material Cost Transaction worker, Resource Cost Worker, and Overhead Cost worker concurrent log files.

DEBUGGING WIP TRANSACTION ISSUE

Page 20: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

WIPTXCFM – Work Order-less Completions

Online means TP: WIP Work Order-less Completion Transaction Form = Online processing TP: INV Transaction processing mode = Online Processing Background means TP: WIP Work Order-less Completion Transaction Form = Background processing TP: INV Transaction processing mode = Background Processing Steps to generate Log file in ONLINE cases

11.5.10 and later 1. Enable the INV and WIP profiles for debugging. 2. Go to the Work Order less Transactions form, and perform a WOL

Completion Transaction click on Save button. Click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql script:

set pagesize 500

col message_text format a99

spool WolON.txt

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the WolON.txt generated from the above sql script 4. Upload the INV transaction log file from the directory specified in INV: Debug

file profile option.

11.5.9 and prior There was no online mode for WOL completions in 11.5.9 and prior.

Note: If you are having difficulties generating debug log files for ONLINE cases, please set the profiles to background and provide the logs.

DEBUGGING WIP TRANSACTION ISSUE

Page 21: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

Steps to generate Log file in BACKGROUND cases

11.5.10 and later 1. Enable the INV and WIP profiles for debugging. 2. Go to the Work Order less Transactions form, and perform a WOL

Completion Transaction click on Save button. Click on Help About Oracle Application and find the ‘AUDSID’ and the value associated with it, run the following sql script:

set pagesize 500

col message_text format a99

spool WolBG.txt

select message_text

from fnd_log_messages

where audsid=&audsid

order by log_sequence;

spool off

3. Upload the WolBG.txt generated from the above sql script 4. Activate the material transaction manager. Once the material worker

completes, upload the worker log file.

11.5.9 and prior 1. Set the INV and WIP debug profiles. 2. Launch the Inventory Material Transaction Manager. 3. Go to the Work Order less Transactions form, and perform a WOL

Completion Transaction click on Save button. The material transaction worker will process the records.

4. Upload the Material Transaction Worker log file.

DEBUGGING WIP TRANSACTION ISSUE

Page 22: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

MOBILE

For Mobile UI log files Do the following:

1. Open $MWA_TOP/secure/mwa.cfg. 2. Note the directory specified for mwa.logdir. If is is invalid / not writable, please

correct it. 3. Set mea.Systemlog = system.log 4. Set mwa.Loglevel = trace 5. Set mwa.enableLogLocation=Yes 6. mwa.MaxLogFileSize=10000000

Start mobile server on a new port for logging a particular transaction, connect to this new port, perform the transaction, reproduce the issue, exit from the mobile device and bring down the port. The following log files will be available in the location specified under wma.logdir <portno>/System.log <portno>.WIP.log <portno>.INV.log <portno>.WMS.log Based on the type of transaction performed, only some of the above list of log files could be generate and that is normal. For generating trace for mobile transactions, see Metalink note 277655.1. For mobile transaction errors Set the appropriate transaction profiles similar to transactions using forms application.

DEBUGGING WIP TRANSACTION ISSUE

Page 23: Oracle Work In Process (WIP) - Release 11ebizproconsulting.com/blogs/wp-content/uploads/2009/07/WIPHowTo... · Oracle Work In Process (WIP) - Release 11.5 Purpose of the document

Oracle Work In Process (WIP) - Release 11.5

ATO AND CTO

1. Enable the following debug profiles MRP: Debug = Yes OM: Debug Level = 5

2. Run auto-create final assembly program (WIP: Discrete -> AutoCreate Orders) and provide the concurrent request log file.

3. Also, provide the CTO Debug log file.

DEBUGGING WIP TRANSACTION ISSUE