Entering content frameFunction documentation User-Defined Error Management in Cost Object Controlling Locate the document in its SAP Library structure

Use

User-defined error management allows you to alter the message type of messages. The system contains the following message types:

When a message is issued on an object during the execution of a function, you can recognize from the message type whether the object was processed successfully. The message type often determines whether the object can continue to be processed or not.

User-defined error management allows you to change the message type. For example, you can change a message from an error message to a warning message.

User-defined error management can be used in Cost Object Controlling in the following functions:

In Release 4.6A you can use user-defined error management to indirectly influence program execution in variance calculation for orders (manufacturing orders and product cost collectors).

User-defined error management can have different effects depending on whether you are performing the period-end closing activities with or without the multilevel worklist of the Schedule Manager (see below).

Prerequisites

Use user-defined error management in Customizing for Cost Object Controlling.

The following steps are available there:

Read the documentation available at each step before executing the function.

Features

After executing a function, you normally then examine the message log. From the list of messages in the log, you can view all messages that can be altered by user-defined error management.

User-Defined Error Management and Schedule Manager

The following information should be mentioned before the effects of user-defined error management on the Schedule Manager are described:

Example

The system issues the message CK 214 as an error message.

If this message is based on target cost version 0 in variance calculation, the processing status Error is set in the worklist of the Schedule Manager.

If this message is based on a target cost version in variance calculation that is not 0, the processing status Minor error is set in the worklist of the Schedule Manager.

Example

In variance calculation, if message KV 158 is based on a single production order, the system issues this message as an error message. The processing status Error is set in the worklist of the Schedule Manager.

In variance calculation, if this message is based on a product cost collector to which multiple production orders are assigned, the system issues a warning message. The processing status OK is set in the worklist of the Schedule Manager.

For more information on this example, see below.

If you are using the multilevel worklist of the Schedule Manager, the objects with the processing status Error for a processing step are not processed in the subsequent step. In many - if not all - cases, the processing status Error is set because a message was issued with the message type "E" (error). When calculating variances, you can use user-defined error management to influence the message type for a large number of messages In the worklist of the Schedule Manager, this can result in a different processing status being updated to the processing step. This enables you to ensure that objects are processed in the subsequent processing step, for example.

Example

A message was issued as an error message in variance calculation. The processing status Error is issued in the monitor of the worklists.

In your opinion, the error is not serious enough that the object should not be processed in the next processing step. For this reason, you use user-defined error management to set a lower message type for the message (for example, "W" (warning). In doing so, you ensure that the object does not receive the processing status Error for the processing step in the worklist due to this message. The object then enters the subsequent processing step.

For information on the use of user-defined error management in variance calculation, see below and in the following sections:

Work in Process in Product Cost by Period

Variance Calculation

User-Defined Error Management in Variance Calculation

User-defined error management can be used in the variance calculation process in cases such as the following:

Checking the Task List Type, Task List Group, and Group Counter

In the standard system, when scrap variances are determined the system checks whether the cost estimate used to calculate target costs is based on the same task list type, task list group, and group counter as those in the routing specified in the production version (in repetitive manufacturing) or manufacturing order (in order-related production and process manufacturing).

If you want the system to check whether the task list type and the task list group are the same, but not the group counter, assign the message type "blank" to error message KV 181. If the task list type and task list group do not match, messages KV 179 and KV 158 are issued. The system always checks whether the task list type and the task list group match. In the standard system, KV 179 is issued as an information message, and KV 158 as an error message.

Checking Reporting Point Structures and Milestone Structures

In the standard system, the system checks the following when scrap variances are determined:

If you don’t want the system to check the correspondence of reporting point structures or milestone structures, define error message KV 158 as a warning message or information message, or assign the message to the message type "blank." If KV 158 is no longer an error message, variance calculation will continue to run. However, no scrap variances can be calculated.

If KV 181 and KV 158 are issued as error messages and you are using the worklist of the Schedule Manager, the relevant objects receive the processing status Error in the Worklist of the Schedule Manager. The cause of the error must be eliminated and the function performed again. Because no data were updated to the object, you cannot transfer data to other application components when you settle (such as to Financial Accounting).

If you assign messages to a lower message type (such as a warning message), the object (such as the product cost collector) is not listed in the worklist of the Schedule Manager as a faulty object.

No Target Costs Calculated

No target costs are calculated in situations such as the following:

The system issues message KV 151.

If the message is issued as an error message, remaining variances are reported.

If the message is issued as an information message or warning message, all variance categories are reported.

Variance Calculation for Product Cost Collectors

If more than one manufacturing order is assigned to a product cost collector, a faulty manufacturing order can prevent the processing of a product cost collector to which a large number of manufacturing orders are assigned.

In the standard system, the following messages are defined such that they do not prevent the processing of the product cost collector in the Schedule Manager. This ensures that the messages in the standard system are issued with message type "W" (warning) even if target cost version 0 is calculated. In the worklist of the Schedule Manager, the object does not receive the processing status Error in the relevant processing step. This ensures that the object enters the next processing step. If you want the processing status Error to be issued for the object and processing step, change the message type to "E" (error).

The following sections contain a detailed description of how the message type influences the processing status in the worklist, on the basis of messages KV 158 and KV 181 and the processing of product cost collectors.

If you have defined messages KV 158 and KV 181 as error messages and have assigned multiple manufacturing orders to a product cost collector, no work in process or scrap variances can be calculated for any of the subsequent manufacturing orders from the point the error message is issued for a manufacturing order. For this reason no work in process can be calculated and no scrap variances can be updated for a product cost collector, even if only one manufacturing order does not meet the requirements.

If messages KV 158 and KV 181 are issued with a low message type, work in process or unplanned scrap can be calculated in the above case on the basis of all other manufacturing orders assigned to the product cost collector. A partial scrap variance is reported for the product cost collector. This partial scrap variance can be settled to other application components.

In the standard system, messages KV 158 and KV 181 for the product cost collector are issued as a warning message.

Note

The trustworthiness of the reported scrap variances is reduced in this case.

Examples of Messages in Variance Calculation That Can Be Influenced by User-Defined Error Management

Msg

Default message type w/o Schedule Manager*

Default message type with Schedule Manager*

Default processing status in Schedule Manager

Message type modifiable?

Minimum message type

KV 201

E

Blank (message not issued)**

Not relevant

Yes

None

BS 005***

E

E

Error

No

E

KV 239***

E

E

Error

No

E

CK 214

E

E

Error / Minor error ****

Yes

None

KV 158

E (W)*****

E (W)*****

Error / Minor error ****

Yes

None

This list is not necessarily complete. A complete list of messages available in user-defined error management for the relevant function can be found in Customizing for Cost Object Controlling (see under Prerequisites).

* These default settings apply to individual processing and collective processing without the Schedule Manager. Settings for user-defined error management can be made independently for individual processing and for collective processing.

Settings made for user-defined error management in collective processing affect both collective processing in the worklist of the Schedule Manager and collective processing outside the worklist.

** For the messages that are not issued in the worklist of the Schedule Manager in the standard system (with processing status Not relevant), you must change the message type in collective processing to "W" so that the message is issued in the worklist. Note that the message is then also changed to "W" for collective processing outside the worklist.

*** Processing is not continued. The error must be corrected.

**** If the message is issued for target cost version 0, the processing status Error is set in the worklist of the Schedule Manager. If the message is issued for a target cost version other than 0, the processing status Minor error is set in the worklist of the Schedule Manager.

***** The default message type depends on the scenario. If the message is for a manufacturing order that is being processed, it is issued as an error message if it references target cost version 0. If the message is for a product cost collector, it is issued as a warning message even if it references target cost version 0.

Note

If you can't identify the cause of the error in collective processing (whether in the Schedule Manager or not), process the object in the individual processing mode. More message may be issued in the individual processing mode than in the collective processing mode.

See also:

Message Log

Editing and Printing the Log

 

 

 

Leaving content frame