When costing a costing run in the background (Transaction:CK65), it is possible for you to write the costed materials to the job log.This makes it possible for you to display the sequence of the materials costed, which can be very useful in the event of a program termination.In most cases, you can determine the material that caused the program termination in this way.
As of Release 3.1I, message CK576, which is written to the job log during parallel processing of a costing run and which is used to check the work progress, is only written if it has been activated as described below.This prevents the job log from becoming unnecessarily large.If required, you can activate the message for analysis purposes.
Analysis tool for costing run in the background
To ensure that the costed materials are written to the job log when costing a costing run, proceed as follows (up to and including Release 4.6B):
Preparation:
- a) Include a variable with the value 'X' in table TVARV using Transaction SM31: Menu: 'System -> Services -> Table maintenance', enter table 'TVARV'; choose the 'Maintain' pushbutton and enter any variable name; set the 'Type' radiobutton to Parameter and choose the 'Create' button; enter the parameter value 'X' in the dialog window; choose the 'Save' and the 'Back' pushbutton.
Create a variant for costing a costing run:
- b) Main menu: Logistics -> Production -> Product costing -> Costing run -> Material -> Costing -> Proceed -> Background (Transaction: CK65) -> choose the 'Variants' pushbutton and enter any variant name; choose the 'Create' pushbutton and maintain the input fields 'Costing run' and 'Costing run date' on the next screen and go to the next screen by choosing the 'Continue' pushbutton; enter any text in the 'Description' field and select the 'Hidden' and 'Variable' checkboxes for parameter ANZMATNR; choose the 'Selection variable' pushbutton and enter the variable created under a) on the next screen; Save your entries and return to the screen 'Execute Report in Background'. There, enter SAPRCK10 in the 'Report names' field and the name of the just created variant in the 'Variant name'field.
Procedure as of Release 4.6B:
a) Call up Transaction STVARV, choose the "Display < > change" and the "Change" pushbutton; enter any variable name for parameter ANZMATNR and value X and choose 'Save'
b) CK40N costing process step, change parameters, choose the pushbutton variant attributes -> pushbutton "Display all selection criteria" -> set the selection variable indicator for ANZMATNR and choose the selection variable pushbutton -> enter the name of the created variable a) and choose 'Save'
In the job log, the following information is issued under the message number CK416 in the 'Message' column: Material number, plant and costing number (that is, the MBEW fields:MATNR, WERKS, KALN1).
To achieve as of Release 3.1I that the success message CK576 is written to the job log during parallel processing of a costing run in the background, proceed in the same way:Create a variable with any name and with parameter value 'X' in table TVARV. Assign this variable to parameter ANZBLOCK.The procedure is the same as described for parameter ANZMATNR above.
No comments:
Post a Comment