WSH_DEBUG_SV

Using WSH_DEBUG_SV package for a better Debug method for Order Management and Shipping modules.

Use wsh_debug_sv.start_debugger procedure to get the debug messages at
Performance
Statement
Procedure
Event
Exception
Error
Unexpected Error level

Define the profile option WSH:Debug Enabled at User Level.
Define the profile option  WSH:Debug Level at one of the values mentioned above
The default value is at Procedure, but for the user level you can set this at any level.

Create a directory on the application server and set up a directory for the debug log.
Define the profile option WSH:Debug Log Directory  to the directory created.


When using in the code Define the parameters

      file_name                   VARCHAR2 (100);
      return_status               VARCHAR2 (10);
      msg_count                   NUMBER;
      msg_data                    VARCHAR2 (3000);


      wsh_debug_sv.start_debugger (file_name,
                                                        return_status,
                                                        msg_count,
                                                        msg_data);

wsh_debug_sv.stop_debugger;

Right before the end of the code use the stop_debugger . You can use dbms_output of fnd_file to display the file name to find out the log file and look in the directory defined above.

Comments

Popular posts from this blog

Create attachments and attach them to Sales Order Header or Order Lines

Link XLA Tables With AR Tables To Get Information From GL