delta fico config.pdf

66
SAP ECC 5.00 July 2006 English T02 - Delta FI/CO Configuration

Upload: prashhinge

Post on 08-Nov-2014

146 views

Category:

Documents


6 download

DESCRIPTION

Delta FICO Config

TRANSCRIPT

Page 1: Delta FICO Config.pdf

SAP ECC 5.00

July 2006

English

T02 - Delta FI/CO Configuration

Page 2: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

SAP AGNeurottstr. 1669190 WalldorfGermany

Building Block Configuration Guide

Copyright

© Copyright 2006 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.

IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/OS, POWER, POWER5, OpenPower and PowerPC are trademarks or registered trademarks of IBM Corporation.

Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.

Oracle is a registered trademark of Oracle Corporation.

UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.

Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.

Java is a registered trademark of Sun Microsystems, Inc.

© SAP AG Page 2 of 66

Page 3: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.

MaxDB is a trademark of MySQL AB, Sweden.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

© SAP AG Page 3 of 66

Page 4: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Icons

Icon Meaning

Caution

Example

Note

Recommendation

Syntax

Typographic Conventions

Type Style Description

Example text Words or characters that appear on the screen. These include field names, screen titles, pushbuttons as well as menu names, paths and options.

Cross-references to other documentation.

Example text Emphasized words or phrases in body text, titles of graphics and tables.

EXAMPLE TEXT Names of elements in the system. These include report names, program names, transaction codes, table names, and individual key words of a programming language, when surrounded by body text, for example, SELECT and INCLUDE.

Example text Screen output. This includes file and directory names and their paths, messages, source code, names of variables and parameters as well as names of installation, upgrade and database tools.

EXAMPLE TEXT Keys on the keyboard, for example, function keys (such as F2) or the ENTER key.

Example text Exact user entry. These are words or characters that you enter in the system exactly as they appear in the documentation.

<Example text> Variable user entry. Pointed brackets indicate that you replace these words and characters with appropriate entries.

© SAP AG Page 4 of 66

Page 5: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Contents Delta FI/CO Configuration: Configuration Guide ............................................................................ 7 1 Purpose ....................................................................................................................................... 7 2 Preparation .................................................................................................................................. 7

2.1 Prerequisites ........................................................................................................................ 7 3 Configuration ............................................................................................................................... 8

3.1 Configuration Part1 .............................................................................................................. 8 3.1.1 FI Delta Configuration ..................................................................................................... 8

3.1.1.1 Creating Additional G/l Accounts .................................................................. 8 3.1.1.2 Defining Reason Code for Overpayment / Underpayment ............................ 9

3.2 Master Data .......................................................................................................................... 9 3.2.1 Creating Additional Primary Cost Elements .................................................................... 9 3.2.2 Creating Additional Secondary Cost Elements ............................................................. 10 3.2.3 Creating Cost Element Group ....................................................................................... 10 3.2.4 Changing Cost Element Group (Cost Element) ............................................................ 10 3.2.5 Creating Profit Center Groups ...................................................................................... 11 3.2.6 Manual Activity: Changing Profit Center Group - Structure ........................................... 11 3.2.7 Creating and Activating Profit Centers .......................................................................... 12 3.2.8 Creating Cost Center Groups (Level 1) ........................................................................ 12 3.2.9 Changing Cost Center Groups (Level 2) ....................................................................... 13 3.2.10 Creating Cost Centers ................................................................................................ 13 3.2.11 Creating Activity Types ............................................................................................... 13 3.2.12 Creating Activity Groups ............................................................................................. 14 3.2.13 Changing Activity Group (Activity Type) ..................................................................... 14 3.2.14 Activity Type Planning ................................................................................................ 14 3.2.15 Primary Cost Planning ................................................................................................ 15 3.2.16 Manual Activity: Calculating Planned Prices of Activity Types .................................... 17

3.3 Configuration Part2 ............................................................................................................. 18 3.3.1 Organizational Structure ............................................................................................... 18

3.3.1.1 Defining Plant .............................................................................................. 18 3.3.1.2 Changing Plant Name ................................................................................... 18

3.3.2 Product Cost Planning .................................................................................................. 19 3.3.2.1 Defining Origin Groups ............................................................................... 19 3.3.2.2 Defining Cost Component Structure ............................................................ 20 3.3.2.3 Activating Cost Component Structure ......................................................... 29 3.3.2.4 Maintaining Versions ................................................................................... 29 3.3.2.5 Checking Automatic Routing Selection ....................................................... 30

3.3.3 Cost Object Controlling ................................................................................................ 31 3.3.3.1 Defining Actual Splitting ............................................................................. 31 3.3.3.2 Manual Activity: Assigning Splitting Structure to Cost Centers ................. 32 3.3.3.3 Defining Valuation Variant for Goods Receipt ............................................ 34 3.3.3.4 Defining Results Analysis Key .................................................................... 34 3.3.3.5 Defining Results Analysis Versions ............................................................. 35 3.3.3.6 Defining Valuation Method ......................................................................... 36 3.3.3.7 Defining Line IDs ......................................................................................... 36 3.3.3.8 Defining Assignment .................................................................................... 37 3.3.3.9 Defining Update ........................................................................................... 39 3.3.3.10 Defining Posting Rules for Settling Work in Process ................................ 39 3.3.3.11 Defining Results Analysis Versions ........................................................... 40 3.3.3.12 Defining Default Variance Keys for Plants ................................................ 40

© SAP AG Page 5 of 66

Page 6: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.3.3.13 Activating Cross-Company Costing ........................................................... 41 3.3.3.14 Creating Source Structure .......................................................................... 41 3.3.3.15 Assigning Source Structure to Settlement Profile ...................................... 42 3.3.3.16 Assigning Valuation Variants to Plants ..................................................... 43 3.3.3.17 Maintaining User-defined Error Message .................................................. 43

3.3.4 Actual Costing/Material Ledger ..................................................................................... 44 3.3.4.1 Quantity/value Updating for Material Types ............................................... 44 3.3.4.2 Activating Material Ledger .......................................................................... 44 3.3.4.3 Assigning Currency Types to Material Ledger Types ................................ 45 3.3.4.4 Assigning Material Ledger Types to Valuation Area .................................. 46 3.3.4.5 Activating Actual Costing ............................................................................ 46 3.3.4.6 Activating Actual Cost Component Split ..................................................... 47 3.3.4.7 Maintaining Company Codes for MM ......................................................... 47 3.3.4.8 Setting Valuation Areas as Productive (Foreground) .................................. 48

3.3.5 System Enhancement Preparations ............................................................................. 49 3.3.5.1 Creating Package ......................................................................................... 49 3.3.5.2 Creating Function Group .............................................................................. 50 3.3.5.3 Creating Customer Enhancement Project ................................................... 51

3.3.6 System Enhancement for FI/CO ................................................................................... 52 3.3.6.1 Creating Program ZMILL_SINGLE_ORDER_PROCESS ......................... 52 3.3.6.2 Maintaining Table Entry CKMLMVADMIN .............................................. 53 3.3.6.3 Implementing the BAdI CUKO_PLANT_CHANGE ................................. 54 3.3.6.4 Modifying Program LCUKOFCP ............................................................... 55 3.3.6.5 Creating Function Module ZMIL_VALUATE_FORM_ORDER ............... 56 3.3.6.6 Modifying Function Module CKML_F_CKML1_PRICES_GET ............. 59 3.3.6.7 Modifying Program LCK21F0P .................................................................. 65

© SAP AG Page 6 of 66

Page 7: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Delta FI/CO Configuration: Configuration Guide

1 PurposeThe purpose of this document is to describe the general configuration steps required to manually set up the configuration within the system landscape that has already been installed using the corresponding installation or configuration guides for installation.

2 Preparation

2.1 Prerequisites

Building BlocksBefore you start installing this building block, the installation of the following building blocks must have been completed.

Building Blocks Comment

Baseline Building Blocks (Layer 0)

B32 – SAP Best Practices Installation

J02 - Organizational Structure

J03 - Financial Accounting

J08 - Controlling

J05 - Materials Management

J04 - Sales and Distribution

Baseline Building Blocks (Layer 1)

J06 - Production Planning and Control

Industry-Generic Building Blocks

N/A

© SAP AG Page 7 of 66

Page 8: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3 Configuration

3.1 Configuration Part1

3.1.1 FI Delta Configuration

3.1.1.1 Creating Additional G/l Accounts

UseThis step is used to create additional G/L accounts (compared to Baseline China) which are common used in Steel industry in China.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Financial Accounting → General Ledger → Master Records → G/L Accounts → Individual Processing → Centrally

Transaction Code FS00

2. On the Edit G/L Account Centrally screen, Choose Create to create each G/L accounts with reference to the BC Set /SMB31/FC68_B000_T02.

3. The following G/L accounts are created for company code BP01 and BP0X.

ChAc G/L account CoCd Short Text (EN) Long Text (ZH)CAZH 41020101 BP01 Roller exp. Roller expensesCAZH 41020201 BP01 Refractory material Refractory materialCAZH 41020901 BP01 Other auxiliary mat. Other auxiliary materialCAZH 44010901 BP01 Other energy Other energyCAZH 54011001 BP01 Raw material varianc Raw material varianceCAZH 54011002 BP01 SF variances Semi-finished goods varianceCAZH 54011003 BP01 FG variances Finished goods variancesCAZH 54012001 BP01 RM variance settlemt Raw material variance settlementCAZH 54012002 BP01 SF variance settlemt Semi-finished goods variance settlementCAZH 54012003 BP01 FG variance settlemt Finished goods variance settlement

ChAc G/L account CoCd Short Text (EN) Long Text (ZH)CAZH 41020101 BP0X Roller exp. Roller expensesCAZH 41020201 BP0X Refractory material Refractory materialCAZH 41020901 BP0X Other auxiliary mat. Other auxiliary materialCAZH 44010901 BP0X Other energy Other energyCAZH 54011001 BP0X Raw material varianc Raw material varianceCAZH 54011002 BP0X SF variances Semi-finished goods varianceCAZH 54011003 BP0X FG variances Finished goods variancesCAZH 54012001 BP0X RM variance settlemt Raw material variance settlementCAZH 54012002 BP0X SF variance settlemt Semi-finished goods variance settlementCAZH 54012003 BP0X FG variance settlemt Finished goods variance settlement

© SAP AG Page 8 of 66

Page 9: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.1.1.2 Defining Reason Code for Overpayment / Underpayment

UseThis step is used to define reason code for company code BP0X.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Financial Accounting Account Receivable and Accounts Payable Business transactions Incoming Payments Incoming Payments Global Settings Overpayment/Underpayment Define Reason Codes

Transaction Code SPRO

2. In Company Code field, enter BP0X and confirm your entry with Enter.

3. On Change View “Classification of Payment Differences”: Overview screen, make the following entries:

4. Choose Save.

3.2 Master Data

3.2.1 Creating Additional Primary Cost Elements

UseThis step is used to create additional primary cost elements (compared to Baseline China) which are common used in Steel industry in China.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Element Accounting → Master Data → Cost Element → Individual Processing → Create Primary

Transaction Code KA01

© SAP AG Page 9 of 66

RCd Short text Long text

A1 销售商品及劳务的现金 销售商品、提供劳务收到的现金

Page 10: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

2. Refer to the variant file SMB31_KA01_O002_T02.TXT to create the required primary cost elements.

3.2.2 Creating Additional Secondary Cost Elements

UseThis step is used to create additional secondary cost elements (compared to Baseline China) which are common used in Steel industry in China.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Element Accounting → Master Data → Cost Element → Individual Processing → Create Secondary

Transaction Code KA06

2. Refer to the variant file SMB31_KA06_O003_T02.TXT to create the required secondary cost elements.

3.2.3 Creating Cost Element Group

UseThis step is used to create cost element groups.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Element Accounting → Master Data → Cost Element Group → Create

Transaction Code KAH1

2. Refer to the variant file SMB31_KAH1_O004_T02.TXT to create the required cost element groups.

3.2.4 Changing Cost Element Group (Cost Element)

UseThis step is used to assign cost elements to the cost element group.

Procedure

© SAP AG Page 10 of 66

Page 11: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Element Accounting → Master Data → Cost Element Group → Change

Transaction Code KAH2

2. Refer to the variant file SMB31_KAH1_O004_T02.TXT to assign cost elements to the cost element group.

3.2.5 Creating Profit Center Groups

UseThis step is used to create profit center groups.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Profit Center Accounting → Master Data → Profit Center Group → Create

Transaction Code KCH1

2. Refer to the variant file SMB31_KCH1_O006_T02.TXT to create profit center groups.

3.2.6 Manual Activity: Changing Profit Center Group - Structure

PrerequisitesThe profit center groups have been created.

This Process has to be done manually.

Procedure1. Access the transaction choosing one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Profit Center Accounting → Master Data → Profit Center Group → Change

Transaction Code KCH2

© SAP AG Page 11 of 66

Page 12: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

2. Set the Controlling Area as BP01 on the appearing dialog box. If no dialog box appears, on the Change Activity Type/Price Planning screen, choose Extras → Set Controlling Area from the menu. Enter BP01 in the Controlling Area field.

3. On the Change Profit Center Group: Initial Screen, make the following entries:

Field name User action and values Comments

Profit Center Group BPACC Or the highest level of the Profit Center Group defined by you

4. Choose Enter

5. On the Change Standard Hierarchy (Profit Center Group): Structure Screen, choose the highest level of the Profit Center Group and then choose Lower Level, enter the lower level Profit Center Group BP01, then choose Enter.

6. Repeat step 5 to enter another lower level profit center group BP0X. The structure should be like this:

BPACC BPAcc China

BP01 Company BP01

BP0X Company BP0X

7. Choose Save and Back

3.2.7 Creating and Activating Profit Centers

UseThis step is used to create and activate the profit centers.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Profit Center Accounting → Master Data → Profit Center → Individual Processing → Create

Transaction Code KE51

2. Refer to the variant file SMB31_KE51_O008_T02.TXT to create and activate the profit centers.

3.2.8 Creating Cost Center Groups (Level 1)

UseThis step is used to create the cost center groups.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Center Accounting → Master Data → Cost Center Group → Create

© SAP AG Page 12 of 66

Page 13: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Transaction Code KSH1

2. Refer to the variant file SMB31_KSH1_O009_T02.TXT to create the cost center groups.

3.2.9 Changing Cost Center Groups (Level 2)

UseThis step is used to change the hierarchy of the created cost center groups.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Center Accounting → Master Data → Cost Center Group → Change

Transaction Code KSH2

2. Refer to the variant file SMB31_KSH2_O010_T02.TXT to change the hierarchy of cost center groups.

3.2.10 Creating Cost Centers

UseThis step is used to create cost centers.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Center Accounting → Master Data → Cost Center → Create

Transaction Code KS01

2. Refer to the variant file SMB31_KS01_O012_T02.TXT to create cost centers.

3.2.11 Creating Activity Types

UseThis step is used to create activity type 8. Activity 1 and 2 which are to be used also has already been created in Baseline China.

Procedure

© SAP AG Page 13 of 66

Page 14: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Center Accounting → Master Data → Activity Type → Individual Processing → Create

Transaction Code KL01

2. Refer to the variant file SMB31_KL01_O014_T02.TXT to create cost centers.

3.2.12 Creating Activity Groups

UseThis step is used to create activity groups.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Center Accounting → Master Data → Activity Type Group → Create

Transaction Code KLH1

2. Refer to the variant file SMB31_KLH1_O015_T02.TXT to create cost centers.

3.2.13 Changing Activity Group (Activity Type)

UseThis step is used to assign activity type to activity group.

Procedure 1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Center Accounting → Master Data → Activity Type Group → Change

Transaction Code KLH2

2. Refer to the variant file SMB31_KLH2_O016_T02.TXT to create cost centers.

3.2.14 Activity Type Planning

UseThis step is used to enter the planned quantity for activities in cost centers.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP MenuAccounting → Controlling → Cost Center Accounting → Planning → Activity Output/Prices → Change

Transaction code KP26

© SAP AG Page 14 of 66

Page 15: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

2. Set the Controlling Area as BP01 on the appearing dialog box. If no dialog box appears, on the Change Activity Type/Price Planning screen, choose Extras -> Set Controlling Area from the menu. Enter BP01 in the Controlling Area field.

3. On the Change Activity Type/Price Planning screen, make the following entries:

Field name Description User action and values Comment

Version 0

From Period 1

To Period 12

Fiscal year planning fiscal year

Cost Center

to

or group

Single cost center, cost center range, or cost center group, for example

BP01

Activity Type

To

or group

Single activity type, activity type range, or activity type group, for example, BPSTEEL

4. Choose Overview Screen

5. On the Change Activity Type/Price Planning: Overview Screen, enter the following data for the corresponding combinations of cost center and activity type:

Field name Description User action and values Comment

Plan Activity Enter the planned activity type quantity for the whole planning year

6. Choose Next Combination, continue to finish the activity type quantity planning for all combination of cost centers and activity types.

Refer to the variant file SMB31_KP26_O017_T02.TXT for the activity planning data.

7. Choose Save.

Result

Planned activity quantities for the planning fiscal year are entered. Then you can go ahead with cost element/activity input planning.

3.2.15 Primary Cost Planning

UseIn this step, planned primary costs for activity types are entered. This is the basis of price calculation and primary cost component split.

Procedure

© SAP AG Page 15 of 66

Page 16: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation options:

SAP ERP MenuAccounting → Controlling → Cost Center Accounting → Planning → Cost and Activity Inputs → Change

Transaction code KP06

2. On the Change Cost Element/Activity Input Planning: Initial Screen, make the following entries:

Field name Description User action and values Comment

Version 0

From period 1

To period 12

Fiscal year planning fiscal year

Cost Center

to

or group

Single cost center, cost center range, or cost center group, for example, BP01

Activity Type

to

or group

Single activity type, activity type range, or activity type group, for example, BPSTEEL

Cost Element

to

or group

Single cost element, cost element range, or cost element group, for example, BP_Primary

3. Choose Overview Screen

4. On the Change Cost Element/Activity Input Planning: Overview Screen, make the following entries for corresponding combinations of cost center, activity type and cost element

Field name Description User action and values Comment

Activity Enter the activity type

Cost Element Enter the cost element

Plan Fixed Costs

Enter the planned value of the cost element

5. Choose Next Combination, continue to finish the activity type quantity planning for all combination of cost centers, activity types and cost elements.

Refer to the variant file SMB31_KP06_O018_T02.TXT for the primary cost planning data.

6. Choose Save.

Result Planned primary costs for activities of the planning fiscal year are entered. Then you can go ahead with price calculation.

© SAP AG Page 16 of 66

Page 17: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.2.16 Manual Activity: Calculating Planned Prices of Activity Types

UseThis step describes how to calculate the planned prices of activity types based on the planned data entered in the pervious two steps.

Prerequisites Planned activity quantities and primary costs have been entered.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Cost Center Accounting → Planning → Allocations → Price Calculation

Transaction code KSPI

2. On the Execute Plan Price Calculation: Initial Screen, enter the necessary data:

Field name Description User action and values Comment

Cost center group

BP_STEEL

Version 0

Period to Enter the single period or the period range

Fiscal Year Enter the fiscal year

Test Run Select it if you only need a test run

Detail Lists Select it if you want to see the details. It is recommended to do so.

3. Choose Execute

You can see the primary cost component split of the activity types by choosing Goto Components from the menu.

4. Choose Save.

Result The planned prices of activity types are calculated with primary cost component split. Then sales order costs, production order costs and material price analysis (material ledger) can be displayed with primary cost component split.

© SAP AG Page 17 of 66

Page 18: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.3 Configuration Part2

3.3.1 Organizational Structure

3.3.1.1 Defining Plant

UseThe purpose of this activity is to define plant BP0Y. The plant is an operating area or branch within a company. The plant is embedded in the organizational structure as follows:

• The plant is assigned to a single company code. A company code can have several plants.

• Several storage locations in which material stocks are managed can belong to a plant.

• A single business area is assigned to a plant and to a division.

• A plant can be assigned to several combinations of sales organization and distribution channel.

• A plant can have several shipping points. A shipping point can be assigned to several plants.

• A plant can be defined as a maintenance planning plant.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Enterprise Structure → Definition → Logistics-General → Define, copy, delete, check plant

Transaction Code SPRO

2. On the Choose Activity screen, choose activity Copy, delete, check plant.

3. On the next screen, choose Organizational object -> Copy Org. Object from the menu.

4. On the appearing dialog box, in the From Plant field, enter BP0X and in the To Plant field, enter BP0Y.

5. Confirm any messages.

6. Go back to the configuration menu.

3.3.1.2 Changing Plant Name

UseThis step is used to change the short text of the plants. These two plants are created in Baseline Package.

Procedure1. Access the activity using one of the following navigation options:

© SAP AG Page 18 of 66

Page 19: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

SAP ERP IMG Menu Enterprise Structure → Definition → Logistics-General → Define, copy, delete, check plant

Transaction Code SPRO

2. Choose the plant, then choose Details.

3. Maintain the description of the plants as following:

Plant Name 1 Name 2

BP01 炼钢,连铸,热轧,连铸连扎产线

Hot Rolling Lines

BP0X 冷轧,镀锌,彩涂产线 Cold Rolling Lines

BP0Y 精整产线 Finishing Lines

4. Save your entries.

5. Go back to the configuration menu.

3.3.2 Product Cost Planning

3.3.2.1 Defining Origin Groups

UseThis step is used to define origin groups.

Procedure1. Access the activity using one of the following navigation options::

SAP ERP IMG Menu Controlling → Product Cost Controlling → Product Cost Planning → Basic Settings for Material Costing → Define Origin Groups

Transaction Code OKZ1

2. In the appearing dialog box, make the following entry:

Field name User action and values Description

Controlling Area BP01

3. On the Change View “Origin Groups”: Overview screen, choose New Entries. Then make the following entries:

Field name User action and values Field name User action and values

Name OTHER MATERIAL

其它物料

Origin Group 0000

Name SCRAP

废料

Origin Group 0101

Name IRON

Origin Group 0102

© SAP AG Page 19 of 66

Page 20: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field name User action and values Field name User action and values

Name ALLOY

合金

Origin Group 0103

Name GALVANIZING MATERIAL

镀锌材料

Origin Group 0X01

Name SURFACE TREATMENT

表面处理

Origin Group 0X02

Name COATING MATERIAL

涂层材料

Origin Group 0X03

Name HRC

热轧板

Origin Group 0X21

3.3.2.2 Defining Cost Component Structure

Use The purpose of this activity is to define cost component structure.

The Chinese text should be maintained in ZH system.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Product Cost Planning → Basic Settings for Material Costing → Define Cost Component Structure

Transaction Code OKTZ

2. On the Change View “Cost Component Structure”: Overview screen, choose New Entries and make the following entry:

Field User action and values Description

Cost Comp. Str Z1

Name EN BP Steel-Primary

Name ZH BP 钢铁

3. Select the cost component structure Z1, choose Cost Components with Attributes.

4. On the next screen, choose New Entries and make the following entries:

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 101 RM: Scrap 原材料: 废料

Control Tab

Cost Share Variable Costs

© SAP AG Page 20 of 66

Page 21: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 102 RM: Iron 原材料: 铁

Control Tab

Cost Share Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 103 RM: Alloy 原材料: 合金

Control Tab

Cost Share Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 104 RM: Galvanizing 原材料: 镀锌

Control Tab

Cost Share Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 105 RM: Surface treatmt 原材料: 表面处理

Control Tab

Cost Share Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 106 RM: Coating 原材料: 涂层

Control Tab

Cost Share Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 109 RM: Others 原材料: 其他

Control Tab

Cost Share Variable Costs

© SAP AG Page 21 of 66

Page 22: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 119 Semi-Finished Goods

半成品

Control Tab

Cost Share Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 121 Roller 轧辊消耗

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 122 Refractory material 耐火材料

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 129 Other auxiliary mat. 其他辅助材料

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 131 Water 水

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 132 Electricity 电

Control Tab

Cost Share Fixed and Variable Costs

© SAP AG Page 22 of 66

Page 23: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 133 Gas 煤气

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 139 Other energy 其他能源

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 141 Salary & welfare 工资&福利

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 151 Depreciation 折旧费

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 152 Maintenance 维修费

Control Tab

Cost Share Fixed and Variable Costs

Field User action and values Description (EN) Description (ZH)

Cost Comp. Str. Z1

Cost Comp. 199 Other costs 其他费用

Control Tab

Cost Share Fixed and Variable Costs

© SAP AG Page 23 of 66

Page 24: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

5. Select all component then choose Assignment: Cost Component - Cost Element Interval and make the following entries:

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41010101

Origin Group 0101

To cost elem. 41010301

Cost Component 101 RM: Scrap

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41010101

Origin Group 0102

To cost elem. 41010301

Cost Component 102 RM: Iron

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41010101

Origin Group 0103

To cost elem. 41010301

Cost Component 103 RM: Alloy

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41010101

Origin Group 0X01

To cost elem. 41010399

Cost Component 104 RM: Galvanizing

Field User action and values Description

Cost Comp. Str. Z1

© SAP AG Page 24 of 66

Page 25: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Chat of Accts CAZH

From cost el. 41010101

Origin Group 0X02

To cost elem. 41010399

Cost Component 105 RM: Surface treatmt

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41010101

Origin Group 0X03

To cost elem. 41010399

Cost Component 106 RM: Coating

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41010101

Origin Group

To cost elem. 41010301

Cost Component 109 RM: Others

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41010401

Origin Group

To cost elem. 41010401

Cost Component 119 Semi-Finished Goods

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41020101

© SAP AG Page 25 of 66

Page 26: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Origin Group

To cost elem. 41020101

Cost Component 121 Roller

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41020201

Origin Group

To cost elem. 41020201

Cost Component 122 Refractory material

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 41020901

Origin Group

To cost elem. 41020901

Cost Component 129 Other auxiliary mat.

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 44010101

Origin Group

To cost elem. 44010101

Cost Component 131 Water

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 44010201

Origin Group

To cost elem. 44010201

© SAP AG Page 26 of 66

Page 27: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Cost Component 132 Electricity

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 44010301

Origin Group

To cost elem. 44010399

Cost Component 133 Gas

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 44010901

Origin Group

To cost elem. 44010901

Cost Component 139 Other energy

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 42010201

Origin Group

To cost elem. 42020199

Cost Component 141 Salary & welfare

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el. 43010401

Origin Group

To cost elem. 43020399

Cost Component 151 Depreciation

Field User action and values Description

© SAP AG Page 27 of 66

Page 28: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Chat of Accts CAZH

From cost el. 44030101

Origin Group

To cost elem. 44030101

Cost Component 152 Maintenance

Field User action and values Description

Cost Comp. Str. Z1

Chat of Accts CAZH

From cost el.

Origin Group

To cost elem.

Cost Component 199 Other costs

6. Choose Save.

7. Then choose Assignment: Organiz. Units - Cost Component Struct and make the following entries:

Field User action and values Description

Company Code BP01

Plant ++++

Costing Variant ++++

Valid from 01.01.2005

Cost Comp Structure (Main CCS)

Z1 BP Steel-Primary

Field User action and values Description

Company Code BP0X

Plant ++++

Costing Variant ++++

Valid from 01.01.2005

Cost Comp Structure (Main CCS)

Z1 BP Steel-Primary

8. Choose Save.

9. Choose Back.

10. Go back to the initial screen, choose Active and Prim. Cost Comp. Split.

© SAP AG Page 28 of 66

Page 29: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Cost Comp. Str. Z1

Active

Prim. Cost Comp. Split

Name BP Steel-Primary

11. Choose Save

12. Choose Back.

3.3.2.3 Activating Cost Component Structure

Use The purpose of this activity is to activate cost component structure.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Product Cost Planning → Basic Settings for Material Costing → Define Cost Component Structure

Transaction Code OKTZ

2. On the Change View “Cost Component Structure”: Overview screen, choose New Entries and make the following entry:

Field name User action and values Description

Cost Comp. Str. Z1

Active

Prim. Cost Comp. Split

Name BP Steel-Primary

3. Choose Save

4. Choose Back.

3.3.2.4 Maintaining Versions

UseThe purpose of this activity is to maintain versions.

Procedure

© SAP AG Page 29 of 66

Page 30: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → General Controlling → Organization → Maintain Versions → Controlling Area Settings → Settings for Each Fiscal Year

Transaction Code SPRO

2. Select Version 0 and choose Controlling Area Settings.

3. Select Version 0 and choose Settings for Each Fiscal Year.

4. Double-click current year and future years one by one.

5. Choose Price calculation tab and make the following entries:

Field User action and values Description

Cost Comp. Str. Z1 BP Steel-Primary

3.3.2.5 Checking Automatic Routing Selection

UseThe purpose of this activity is to change automatic routing selection rule

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Product Cost

Planning → Material Cost Estimate with Quantity Structure → Settings for Quantity Structure Control → Routing Selection → Check Automatic Routing Selection

Transaction Code OPJF

2. On the Change View “Automatic Selection”: Overview screen, modify the default values as below:

ID SP Task List Type

Plan Usage Description Stat Description of the status

01 1 N 1 Production 3 Released for costing

01 2 N 1 Production 4 Released (general)

© SAP AG Page 30 of 66

Page 31: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

You can only change the default status one by one.

3. Choose Save.

4. Choose Back.

3.3.3 Cost Object Controlling

3.3.3.1 Defining Actual Splitting

UseThe purpose of this activity is to define actual splitting.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Cost Center Accounting → Actual Postings → Period-End Closing → Activity Allocation → Splitting → Define Splitting Structure

Transaction Code OKES

2. Double-click Splitting rules.

3. On the Change View “Splitting rules”: Overview screen, choose New Entries and make the following entry:

Field User action and values Description

Rule 1

Text No splitting

Meth. 0 No splitting

4. Choose Save.

5. Double-click splitting structures.

6. On the next screen, choose New Entries and make the following entry:

Field User action and values Description

Structure S1

Text BP Steel Actual Splitting

7. Select Structure S1 and double-click Assignments.

8. Choose New Entries and make the following entries:

Field User action and values Description

Assgnmnt S01

Text Labor

Rule 1 No splitting

© SAP AG Page 31 of 66

Page 32: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Assgnmnt S02

Text Machine

Rule 1 No splitting

Field User action and values Description

Assgnmnt S03

Text Production Exp

Rule 1 No splitting

9. Select each assignment then choose Selection for assignment and enter the following data:

Assignment S01

Field Labels From Value Group

Cost Element BP_LABOR

Activity Type 1

Assignment S02

Field Labels From Value Group

Cost Element BP_MACHINE

Activity Type 2

Assignment S03

Field Labels From Value Group

Cost Element BP_PRD

Activity Type 8

3.3.3.2 Manual Activity: Assigning Splitting Structure to Cost Centers

UseThe purpose of this activity is to assign splitting structure to cost centers.

Procedure

© SAP AG Page 32 of 66

Page 33: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation option:

SAP ERP IMG Menu Controlling → Cost Center Accounting → Actual Postings → Period-End Closing → Activity Allocation → Splitting → Assign Splitting Structure to Cost Centers

Transaction Code OKEW

2. On the Splitting: Assignment of Cost Center to Splitting Structure screen, make the following entries:

Field User action and values Description

Cost center group BP_STEEL BP Steel

All versions

Fiscal Year 2006

3. Choose Change.

4. Select the following cost centers and splitting structure S1, then choose Assign:

Cost Ctr Name Year

BP01_01 steel making(Convert 2006

BP01_02 CC for Convertor 2006

BP01_03 steel making EAF 2006

BP01_04 CC for EAF 2006

BP01_05 steel making CSP(Con 2006

BP01_06 continuous strip prod 2006

BP01_07 Reheating furnace 2006

BP01_08 hot rolling mill 2006

BP01_09 HRC picking 2006

BP0X_01 pickling line 2006

BP0X_02 cold rolling mill 2006

BP0X_03 Electronical galva 2006

BP0X_04 color coating line 2006

BP0X_05 continuous annealing 2006

BP0X_06 skin pass mill 2006

BP0X_07 Parkerizing 2006

BP0X_08 Chromate Passivating 2006

BP0X_09 Oiling 2006

BP0Y_01 slitting and cutting 2006

BP0Y_02 Sheet packaging 2006

BP0Y_03 Strip slitting line 2006

BP0Y_04 Strip / coil packagi 2006

5. Choose Save.

6. Choose Back.

© SAP AG Page 33 of 66

Page 34: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.3.3.3 Defining Valuation Variant for Goods Receipt

UseThe purpose of this activity is to define goods received valuation for order delivery.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Define Goods Received Valuation for Order Delivery

Transaction Code SPRO

2. Choose New Entries and make the following entries:

Field User action and values Description

Val. Area BP01

Company name BP炼钢公司

Val. Var. 007 Production Order: Actual

Field User action and values Description

Val. Area BP0X

Company name BP 轧钢公司

Val. Var. 007 Production Order: Actual

Field User action and values Description

Val. Area BP0Y

Company name BP 轧钢公司

Val. Var. 007 Production Order: Actual

3. Choose Save.

4. Choose Back.

3.3.3.4 Defining Results Analysis Key

UseThe purpose of this activity is to define results analysis key.

Procedure

© SAP AG Page 34 of 66

Page 35: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation option

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing → Work in Process → Define Results Analysis Keys

Transaction Code OKG1

2. Choose New Entries and make the following entry:

Field User action and values Description

RA Key FERT

Text WIP Calculation for Production Orders

3. Choose Save.

4. Choose Back.

3.3.3.5 Defining Results Analysis Versions

UseThe purpose of this activity is to define results analysis versions.

Procedure1. Access the activity using one of the following navigation option:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing → Work in Process → Define Results Analysis Versions

Transaction Code OKG9

2. Choose New Entries , select controlling area BP01, RA Version 0 and make the following entries:

Field User action and values Comments

CO Area BP01

RA Version 0

Transfer to Financial Accounting Do not select “Transfer to

Financial Accounting” in this step. Do it after “Define Posting Rules for Settling Work in Process” is finished.

Technical RA Cost Element

93100140

3. Choose Save.

4. Choose Back.

© SAP AG Page 35 of 66

Page 36: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.3.3.6 Defining Valuation Method

UseThe purpose of this activity is to define actual costs valuation method for WIP.

Procedure1. Access the activity using one of the following navigation option:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing Work in Process → Define Valuation Method (Actual Costs)

Transaction Code OKGC

2. On the next screen, choose New Entries.

3. On the appearing dialog box, choose Actual costs.

4. Make the following entries and choose , and Valuation Method is created automatically.

Field User action and values Description

CO Area BP01

RA Version 0

RA Key FERT

5. Choose Save.

6. Choose Back.

3.3.3.7 Defining Line IDs

UseThe purpose of this activity is to define line IDs for WIP calculation.

Procedure1. Access the activity using one of the following navigation options

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing → Work in Process → Define Line Ids

Transaction Code SPRO

2. Choose New Entries and make the following entries:

Field User action and values Description

CO Area BP01

Line ID COP

Name Primary costs

Field User action and values Description

CO Area BP01

© SAP AG Page 36 of 66

Page 37: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Line ID COS

Name Secondary costs

Field User action and values Description

CO Area BP01

Line ID SET

Name Settled costs

3. Choose Save.

4. Choose Back.

3.3.3.8 Defining Assignment

UseThe purpose of this activity is to assign cost elements to line IDs.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling Cost Object Controlling → Product Cost by Order → Period-End Closing → Work in Process → Define Assignment

Transaction Code OKGB

2. Choose New Entries and make the following entries:

Field User action and values Description

CO Area BP01

RA Version 0

Marked Cost Element 004+++++++

Origin ++++

Debit/Credit Indic. +

Vble/Fixed Indic. +

Accounting Indicator ++

Valid-From Period 001.1997

ReqToCap COP

Field User action and values Description

CO Area BP01

RA Version 0

© SAP AG Page 37 of 66

Page 38: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Marked Cost Element 0049++++++

Origin ++++

Debit/Credit Indic. +

Vble/Fixed Indic. +

Accounting Indicator ++

Valid-From Period 001.1997

ReqToCap SET

Field User action and values Description

CO Area BP01

RA Version 0

Marked Cost Element 009+++++++

Origin ++++

Debit/Credit Indic. +

Vble/Fixed Indic. +

Accounting Indicator ++

Valid-From Period 001.1997

ReqToCap COS

Field User action and values Description

CO Area BP01

RA Version 0

Marked Cost Element 00943+++++

Origin ++++

Marked Cost Center ++++++++++

Debit/Credit Indic. +

Vble/Fixed Indic. +

Accounting Indicator ++

Valid-From Period 001.1997

ReqToCap COP

3. Choose Save.

4. Choose Back.

© SAP AG Page 38 of 66

Page 39: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.3.3.9 Defining Update

UseThe purpose of this activity is to specify the results analysis cost element under which the work in process and (under some circumstances) the reserves for unrealized costs are updated.

Procedure

1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing → Work in Process → Define Update

Transaction Code OKGA

2. On the Change View “Updata of WIP and Results Analysis” screen, choose New Entries and make the following entries:

COAr Vsn RA Key LID Creation

BP01 0 FERT COP K WIP 93100110

Reserves 93100150

BP01 0 FERT COS N

BP01 0 FERT SET A

3. Choose Save.

4. Choose Back.

3.3.3.10 Defining Posting Rules for Settling Work in Process

UseThe purpose of this activity is to define posting rules for settling work in process.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing → Work in Process → Define Posting Rules for Settling Work in Process

Transaction Code OKG8

2. On the Change View “Assignment of Cost Elements for WIP and Results Analysis” screen, choose New Entries and make the following entries:

Field User action and values Description

CO Area BP01

Company Code BP01

© SAP AG Page 39 of 66

Page 40: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

RA Version 0

RA category WIPR

Record number 0

P&L Acct 49090901

BalSheetAcct 12450101

Field User action and values Description

CO Area BP01

Company Code BP0X

RA Version 0

RA category WIPR

Record number 0

P&L Acct 49090901

BalSheetAcct 12450101

3. Choose Save.

4. Choose Back.

3.3.3.11 Defining Results Analysis Versions

UseThe purpose of this activity is to define results analysis versions.

Procedure

1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing → Work in Process → Define Results Analysis Versions

Transaction Code OKG9

2. Double-click the line for controlling area BP01, RA Version 0. Then select check box Transfer to Financial Accounting.

3. Choose Save.

4. Choose Back.

3.3.3.12 Defining Default Variance Keys for Plants

UseThe purpose of this activity is to define Default Variance Keys for Plants.

© SAP AG Page 40 of 66

Page 41: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Period-End Closing → Variance Calculation → Define Default Variance Keys for Plants

Transaction Code OKVW

2. Do not assign any variance key to plant BP01/BP0X/BP0Y.

3.3.3.13 Activating Cross-Company Costing

UseThe purpose of this activity is to Activate Cross-Company Costing.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Product Cost Planning → Selected Functions in Material Costing → Activate Cross-Company Costing

Transaction Code OKYV

2. On the Change View “Cross-Company Costing“: Overview screen, choose New Entries and make the following entries:

Controlling Area Costing Type Valuation Variant Cost Across company codes

BP01 01 001

BP01 06 006

BP01 07 007

BP01 18 001

BP01 18 003

3. Choose Save.

4. Choose Back.

3.3.3.14 Creating Source Structure

UseThe purpose of this activity is to create source structure.

Procedure

© SAP AG Page 41 of 66

Page 42: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Sales Order → Period-End Closing → Settlement → Create Source Structure

Transaction Code OKEU

2. On the Change View “Source structures”: Overview screen, choose New Entries and make the following entries:

Field User action and values Description

Structure Z1

Text Order Combination

3. Choose Structure Z1 and double-click Assignment.

4. On the Change View “Assignments”: Overview screen, choose New Entries and make the following entries:

Field User action and values Description

Assgnmnt Z1

Text New Order

5. Choose Assgnmnt Z1 then double-click Source and make the following entries:

Field User action and values Description

From Value 40000000

To Value 99999999

6. Choose Save.

7. Choose Back.

3.3.3.15 Assigning Source Structure to Settlement Profile

UseThe purpose of this activity is to assign source structure to settlement profile.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Sales Order → Period-End Closing → Settlement → Create Settlement Profile

Transaction Code SPRO

2. On the Change View “Settlement Profile”: Overview screen, double-click settlement profile PP01.

3. On the Change View “Settlement Profile”: Details screen, make the following entry:

Field User action and values Description

Source structure Z1

4. Choose Save.

© SAP AG Page 42 of 66

Page 43: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

5. Choose Back.

3.3.3.16 Assigning Valuation Variants to Plants

UseThe purpose of this activity is to assign valuation variants to plants.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Sales Order → Preliminary Costing and Order BOM Costing → Product Costing for Sales Order Items/Order BOMs → Costing Variants for Product Costing → Check Valuation Variants for Product Costing

Transaction Code OKY0

2. Double-click Valuation Variant 001 Planned Valuation: Mat.

3. On the Change View “Valuation Variants”: Details screen, choose Valuation Variant/Plant.

4. Assign valuation variant 001 to plant BP01, plant BP0X and plant BP0Y.

5. Choose Save.

6. Choose Back.

3.3.3.17 Maintaining User-defined Error Message

UseThe purpose of this activity is to maintain user-defined error message.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Cost Object Controlling → Product Cost by Order → Manufacturing Orders → User-Defined Error Management → Specify User-Def. Msg Types for Preliminary Costing of Manufacturing Orders

Transaction Code OPR4_PPCO

2. Select Message 221 and choose Details.

3. Choose on the appearing dialog box for Customizing request.

4. Choose I (Issue as Information Message).

5. Choose Save.

6. Choose Back.

© SAP AG Page 43 of 66

Page 44: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.3.4 Actual Costing/Material Ledger

3.3.4.1 Quantity/value Updating for Material Types

UseIn the setting, the standard material types are copied from valuation area 0001 to the valuation areas that were created (BP01, BP0X, and BP0Y).

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Logistics General Material Master Basic Settings Material Types Define Attributes of Material Types

Transaction Code SPRO

2. Choose material type FERT, HALB, ROH one by one and double-click Quantity/value updating

3. Select Qty Updating and Value updating in the relevant valuation area. Make the following entries:

Valuation area

Material Type

Qty Updating

Value Updating

Pipeline mandatory

Pipeline allowed

BP01 FERT X X

BP01 HALB X X

BP01 ROH X X

BP0X FERT X X

BP0X HALB X X

BP0X ROH X X

BP0Y FERT X X

BP0Y HALB X X

BP0Y ROH X X

4. Choose Save.

5. Choose Back.

3.3.4.2 Activating Material Ledger

UseThe purpose of this activity is to activate material ledger.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG menu Controlling → Product Cost Controlling → Actual Costing/Material Ledger → Activate Valuation Areas for Material Ledger

Transaction Code OMX1

2. Double-click Activate Material Ledger.

© SAP AG Page 44 of 66

Page 45: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3. On the Change View “Activation of Material Ledger”: Overview screen, make the following entries.

Valuation Area Company code ML act. Price dterm.

BP01 BP01 3

BP02 BP01 3

BP03 BP01 3

BP0X BP0X 3

BP0Y BP0X 3

Valuation Area BP02 and BP03 are defined in Baseline China. These two plants in company code BP01 won’t be used in BP Steel. However, to avoid any Material Ledger problem, material ledger should be activated in the whole company code. Thus a couple of activities below are also required for plant BP02 and BP03.

4. Choose Save.

5. Choose Back.

3.3.4.3 Assigning Currency Types to Material Ledger Types

UseThe purpose of this activity is to assign currency types to material ledger types.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Actual Costing/Material Ledger → Assign Currency Types to Material Ledger Types

Transaction Code OMX2

2. On the Change View “Define material ledger type”: Overview screen, make the following entries:

Field User action and values Description

ML Type 0000

CT from FI Deselect

CO CrcyTyp Deselect

Manual Select

Description Standard: CT from FI & CO

3. Confirm any information messages.

4. Choose ML Type: 0000 and double-click Define individual characteristics.

5. On the next screen, choose New Entries and make the following entries:

© SAP AG Page 45 of 66

Page 46: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field User action and values Description

Crcy type 10 Company code currency

6. Choose Save.

7. Choose Back.

3.3.4.4 Assigning Material Ledger Types to Valuation Area

UseThe purpose of this activity is to assign material ledger types to valuation area.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Actual Costing/Material Ledger → Assign Material Ledger Types to Valuation Area

Transaction Code OMX3

2. Execute the activity and enter the following data:

Field User action and values Description

Valuation area BP01

Mat. Ledger type 0000

Field User action and values Description

Valuation area BP0X

Mat. Ledger type 0000

Field User action and values Description

Valuation area BP0Y

Mat. Ledger type 0000

3. Choose Save.

4. Choose Back.

3.3.4.5 Activating Actual Costing

UseThe purpose of this activity is to activate actual costing.

Procedure

© SAP AG Page 46 of 66

Page 47: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Actual Costing/Material Ledger → Actual Costing → Activate Actual Costing

Transaction Code SPRO

2. Execute the activity and double-click Activate Actual Costing.

3. Enter the following data:

Plant Act. costing Act. activi

BP01 2

BP02 2

BP03 2

BP0X 2

BP0Y 2

4. Choose Save.

5. Choose Back.

3.3.4.6 Activating Actual Cost Component Split

UseThe purpose of this activity is to activate actual cost component split.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP IMG Menu Controlling → Product Cost Controlling → Actual Costing/Material Ledger → Actual Costing →Activate Actual Cost Component Split

Transaction Code SPRO

2. Execute the activity and choose “ActCstCmpSplit Active” for plant BP01, BP02, BP03, BP0X and BP0Y.

3.3.4.7 Maintaining Company Codes for MM

UseThe purpose of this activity is to Maintain Company Codes for Materials Management.

Procedure1. Access the activity using one of the following navigation options:

© SAP AG Page 47 of 66

Page 48: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

SAP ERP IMG Menu Logistics - General Material Master Basic Settings Maintain Company Codes for Materials Management

Transaction Code OMSY

2. Make the following data entries:

Company code

Current year Current period

Allow Posting to Previous Period

BP01 current year Current period

X

BP0X current year Current period

X

3. Select Save and Back.

ResultYou have maintained company code for MM.

3.3.4.8 Setting Valuation Areas as Productive (Foreground)

UseThe purpose of this activity is to set valuation areas as productive.

Before this activity, it is recommended to use transaction code CKM9 to check the Material Ledger relevant settings. Meanwhile, the organizational structure and other MM settings should be checked carefully. Generally, deactivating material ledger is problematic. Therefore perform this step only when you make sure all above configurations are correctly completed.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Accounting → Controlling → Product Cost Controlling → Actual Costing/Material Ledger → Environment → Production Startup → Set Valuation Areas as Productive

Transaction Code CKMSTART

2. On the SAPRCKMJ screen, make the following entries:

Field name User action and values

Description Comments

Plant BP01

to BP03 All plants in company code BP01 will be set as productive

© SAP AG Page 48 of 66

Page 49: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Field name User action and values

Description Comments

Test run Deselect this checkbox until test run is successful

Valuation Area BP02 and BP03 are defined in Baseline China. These two plants in company code BP01 won’t be used in BP Steel. However, to avoid any Material Ledger problem, material ledger should be activated in the whole company code.

3. Choose Execute.

4. Choose Back to the SAPRCKMJ screen, make the following entries:

Field name User action and values Description Comments

Plant BP0X

to BP0Y All plants in company code BP0X will be set as productive

Test run Deselect this checkbox until test run is successful

5. Choose Execute

3.3.5 System Enhancement Preparations

3.3.5.1 Creating Package

UseThe purpose of this activity is to create package (former development class) as the object directory of new repository objects for system enhancement.

This activity creates development object, which is cross client, please make sure you have registered as a developer in SAPNet or CSS system to get an access key.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Overview → Object Navigator

Transaction Code SE80

2. Choose Edit Object.

3. In the appearing Object Selection dialog box, select tab Development Coordination. Make the following entries:

Field Entry Description

Package ZSTL_R3

© SAP AG Page 49 of 66

Page 50: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

4. Choose Create (F5).

5. In the Package Builder: Create Package dialog box, maintain following attribute

Field Entry Description

Short Text BP Steel China

6. Accept default value of other attribute, then choose Create.

7. Specify the workbench change request number in the upcoming Prompt for local Workbench request dialog box, and then choose Continue.

ResultYou have created package specified for BP Steel China, this package will be the container for development objects to be created in later steps.

3.3.5.2 Creating Function Group

UseThe purpose of this activity is to create function group as the container of function modules to be created for system enhancement.

This activity creates cross client object.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Overview → Object Navigator

Transaction Code SE80

2. Choose Edit Object.

3. In the Object Selection dialog box, switch to tab Function Group.

4. Input as following:

Field Entry Description

Group name ZSTL_R3

8. Choose Create (F5).

9. In the popup Create Function Group dialog box, maintain following attribute

Field Entry Description

Short Text BP Steel China Function Group

10. Accept default value of other attributes; then choose Save.

11. In the popup Create Object Directory Entry dialog box, make the following entry:

Field Entry Description

Package ZSTL_R3 The one you created in the previous step

© SAP AG Page 50 of 66

Page 51: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

12. Accept default value of other attributes, then choose Save.

13. Specify the workbench change request number in the popup Prompt for local Workbench request dialog box, and then choose Continue. You should get information message “Function group ZSTL_R3 created”.

ResultYou have created function group ZSTL_R3 under package ZSTL_R3. It will be used as the container of function modules to be created in later steps.

3.3.5.3 Creating Customer Enhancement Project

UseThe purpose of this activity is to create a project which groups customer exits to be implemented for system enhancement.

This activity creates cross client object.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Utilities → Enhancement → Project Management

Transaction Code CMOD

2. On the Project Management of SAP Enhancements screen, make the following entries:

Field Entry Description

Project ZSTL_R3

3. Choose Create.

4. On the Attributes of Enhancement Project ZSTL R3 screen, make the following entries:

Field Entry Description

Short Text BP Steel China Enhancement

5. Choose Save.

6. In the Create Object Directory Entry dialog box, specify attributes:

Field Entry Description

Package ZSTL_R3 The one you created in former step

7. Accept default value of other attributes, then choose Save.

8. Specify the workbench change request number in the upcoming Prompt for local Workbench request dialog box, and then choose Continue. You should get success message “Attribute of project ZSTL_R3 saved”.

ResultYou have created project ZSTL_R3 for customer enhancement. It will be used as the container of customer exits to be implemented in later steps.

© SAP AG Page 51 of 66

Page 52: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3.3.6 System Enhancement for FI/CO

3.3.6.1 Creating Program ZMILL_SINGLE_ORDER_PROCESS

UseThis activity helps you overcome actual costing issue.

This activity is one of the correction steps included in SAP Note 908639. Check this note for detailed information before you perform this activity. It creates cross-client object.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Development → ABAP Editor

Transaction Code SE38

2. On the ABAP Editor: Initial Screen, make the following entries:

Field name User action and values Description

Program ZMILL_SINGLE_ORDER_PROCESS

3. Choose Create.

4. On the next screen, make the following entries:

Field name User action and values Description

Title Program to be used in actual costing order connection as user-routine

Type Subroutine pool S

Status Customer Production Program K

Application Cost accounting K

Fixed point arithmetic Selected

Unicode checks active Selected

5. Choose Save.

6. In the Create Object Directory Entry dialog box, specify attributes:

Field name Entry Description

Package ZSTL_R3 The one you created in former step

7. Accept default value of other attributes, then choose Save.

8. Specify the workbench change request number in the Prompt for local Workbench request dialog box, and choose Continue. You will get information message Attribute for program ZMILL_SINGLE_ORDER_PROCESS saved.

9. On the ABAP Editor: Change Subroutine pool ZMILL_SINGLE_ORDER_PROCESS screen, replace the source ABAP code with the following one:

*&---------------------------------------------------------------------*

© SAP AG Page 52 of 66

Page 53: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

*& Subroutine pool ZMILL_SINGLE_ORDER_PROCESS*&*&---------------------------------------------------------------------**&*&*&---------------------------------------------------------------------*

PROGRAM ZMILL_SINGLE_ORDER_PROCESS.

data: f_Mbew type mbew.

form fix_order USING i_werks TYPE WERKS_D i_matnr TYPE MATNR i_aufnr TYPE AUFNR CHANGING e_user_name TYPE CKML_SPEZ_NAME e_user_change TYPE BOOLE_D.

* read valuation type CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING MATNR = i_matnr BWKEY = i_werks BWTAR = ' ' IMPORTING WMBEW = f_mbew EXCEPTIONS OTHERS = 1.

* valuation type Y means use batch valuation with production order* costing for new batches if f_mbew-bwtty = 'Y'. e_user_name = i_aufnr. e_user_change = 'X'. endif.

endform.

10. Choose Active. Make sure you get information message Object activated.

3.3.6.2 Maintaining Table Entry CKMLMVADMIN

UseThe purpose of this activity it to work together with last activity in order to overcome actual costing issue.

This activity is correction steps included in SAP Note 908639 and 668400. Check these notes for detailed information before you perform this activity. It is client dependent.

Procedure

© SAP AG Page 53 of 66

Page 54: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Development → ABAP Dictionary

Transaction Code SE11

2. On the ABAP Editor: Initial Screen, make the following entries:

Field name User action and values Description

Database table CKMLMVADMIN

3. Choose Display and choose Utilities →Table Contents → Create Entries from the menu.

4. On the next screen, make the following entries:

Field name User action and values Description

Key MGV-PROC-BWTAR

5. Choose Save and Back.

6. Choose Utilities →Table Contents → Create Entries from the menu.

7. On the next screen, make the following entries:

Field name User action and values Description

Key UE_FPROC

Data FIX_ORDER,ZMILL_SINGLE_ORDER_PROCESS The name of subroutine and program name you created in previous step

8. Choose Save.

9. Choose Activate and Back.

3.3.6.3 Implementing the BAdI CUKO_PLANT_CHANGE

UseThis BAdI helps you to implement the sales order costing BOM explosion cross plant with variant configuration.

This activity is one of the correction steps included in SAP Note 494500. Check this note for detailed information before you perform this activity. It creates cross-client object.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Utilities → Business Add-Ins → Implementation

Transaction Code SE19

© SAP AG Page 54 of 66

Page 55: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

2. On the Business Add-Ins: Initial Implementation Maintenance Screen, enter the Implementation Name Z_CUKO_PLANT_CHANGE.

3. Choose Create and give the definition name CUKO_PLANT_CHANGE.

4. In the Implementation Short Text field, enter Change of plant in multi-level configuration.

5. On the Interface tab, enter ZCL_IM_CUKO_PLANT_CHANGE in the field Name of implementing class.

6. Double-click method CUKO_SET_CHANGE_PLANT_FLAG to implement the method.

7. Choose Yes to confirm the pop up message.

8. On the Create Object Directory Entry screen, enter ZSTL_R3 in the Package field.

9. Accept default values for other attributes, then choose Save.

10. Specify the workbench change request number in the Prompt for local Workbench request dialog box, then choose Continue. You should get information message Implementation Z_CUKO_PLANT_CHANGE was saved.

11. On the Class Builder : Class ZCL_IM_CUKO_PLANT_CHANGE Change screen, replace the source ABAP code with following:

METHOD if_ex_cuko_plant_change~cuko_set_change_plant_flag. ev_allow_plant_change = 'X'.

ENDMETHOD.

12. Choose Activate.

13. Choose Continue in the Inactive Objects for XXX dialog box.

14. Choose Back.

15. On the Business Add-In Builder: Change Implementation Z_CUKO_PLANT_CHANGE screen, choose Active business add-in implementation. You will get information message BAdI implementation Z_CUKO_PLANT_CHANGE has been activated!

16. Choose Back.

ResultYou have implemented the Business Add-In CUKO_PLANT_CHANGE and make it activated in the system.

3.3.6.4 Modifying Program LCUKOFCP

UseThis activity helps you to realize sales order costing BOM explosion cross plant with variant configuration.

This activity is one of the correction steps included in SAP Note 494500. Check this note for detailed information before you perform this activity. It creates cross-client object.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Development → ABAP Editor

Transaction Code SE38

© SAP AG Page 55 of 66

Page 56: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

2. On the ABAP Editor: Initial Screen, enter the following data:

Field name Description User action and values

Program LCUKOFCP

Source code X

3. Choose Change.

4. Modify the Include LCUKOFCP with the following source code:

*&---------------------------------------------------------------------**& Include LCUKOFCP **&---------------------------------------------------------------------*

* Special switch for orderbom DATA:*{ REPLACE SCDK900339 1*\ gv_change_plant_allowed TYPE c VALUE space. gv_change_plant_allowed TYPE c VALUE 'X'.*} REPLACE

* Explode all special procurement keys "691267 DATA: "691267*{ REPLACE SCDK900339 2*\ gv_explode_all_sobsl TYPE c VALUE space. "691267 gv_explode_all_sobsl TYPE c VALUE 'X'. "691267

*} REPLACE

5. Choose Activate and go back.

3.3.6.5 Creating Function Module ZMIL_VALUATE_FORM_ORDER

UseThe purpose of this activity is to update material standard price from production order costing for make to stock production.

This activity is one of the correction steps included in SAP Note 904252. Check this note for detailed information before you perform this activity. It creates cross-client object.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Development → Function Builder

Transaction Code SE37

2. On the Function Builder: Initial Screen, enter the following data:

Field name Description User action and values

Function Module

ZMIL_VALUATE_FROM_ORDER

© SAP AG Page 56 of 66

Page 57: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

3. Choose Create.

4. On the screen Create Function Module, enter following data:

Field name Description User action and values

Function group The function group you created in previous step, e.g. ZSTL_R3

Short text Modification for valuation of a single batch

5. Choose Enter to confirm the attribute.

6. On the Function Builder: Change ZMIL_VALUATE_FROM_ORDER screen, choose Import tab, maintain the following import parameters:

Parameter Name

Type Associated Type Default value

AUFNR_IMP LIKE AUFK-AUFNR

MATNR_IMP LIKE MBEW-MATNR

PLANT_IMP LIKE MARC-WERKS

PEINH_IMP TYPE PEINH

BWTAR_IMP TYPE BWTAR_D

7. Choose Export tab, maintain the following export parameter:

Parameter Name

Type Associated Type Default value

OPREIS_EXP TYPE STPRS

8. Choose Source code tab, copy the following ABAP source code into your function module:

FUNCTION ZMIL_VALUATE_FROM_ORDER.*"----------------------------------------------------------------------*"*"Local Interface:*" IMPORTING*" REFERENCE(AUFNR_IMP) LIKE AUFK-AUFNR*" REFERENCE(MATNR_IMP) LIKE MBEW-MATNR*" REFERENCE(PLANT_IMP) LIKE MARC-WERKS*" REFERENCE(PEINH_IMP) TYPE PEINH*" REFERENCE(BWTAR_IMP) TYPE BWTAR_D*" EXPORTING*" REFERENCE(OPREIS_EXP) TYPE STPRS*"----------------------------------------------------------------------

* excerpt from LCK36FAZ lines 643ff* derive value of oder costing for goods receipt of batches* tables: afpo, aufk. DATA: BEGIN OF f_prices, gpreis LIKE ckkalktab-gpreis, fpreis LIKE ckkalktab-fpreis, hwaer LIKE ckkalktab-hwaer, ctyp_ko LIKE tka01-ctyp, opreis LIKE ckkalktab-opreis, opreifx LIKE ckkalktab-opreifx, fwaer_kpf LIKE ckkalktab-fwaer_kpf, ctyp_bu LIKE tka01-ctyp, wertn LIKE ckkalktab-wertn, wrtfx LIKE ckkalktab-wrtfx, losgr LIKE cosla-lst001, wrtfw_kpf LIKE ckkalktab-wrtfw_kpf, wrtfw_kfx LIKE ckkalktab-wrtfw_kfx,

© SAP AG Page 57 of 66

Page 58: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

peinh LIKE ckkalktab-peinh, peinh_2 LIKE ckkalktab-peinh_2, bwst LIKE mbew-lbwst, bwst3 LIKE mbew-lbwst, END OF f_prices.

data: k_rc like sy-subrc, f_org_elements LIKE ckiwerk, f_aufk like aufk, f_afpo like afpo, h_umwrk like mseg-werks, f_Mbew type mbew, k_peinh_div_losgr TYPE f, k_meeht LIKE ckkalktab-meeht, k_objnr like aufk-objnr.

* read valuation type CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING MATNR = matnr_imp BWKEY = plant_imp BWTAR = ' ' IMPORTING WMBEW = f_mbew EXCEPTIONS OTHERS = 1.

* valuation type Y means use batch valuation with production order* costing for new batches check f_mbew-bwtty = 'Y'.

import A to h_umwrk from memory ID 'UMWRK'. if not h_umwrk is initial.* read valuation type from delivering plant. CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING MATNR = matnr_imp BWKEY = h_umwrk BWTAR = bwtar_imp IMPORTING WMBEW = f_mbew EXCEPTIONS OTHERS = 1.

OPREIS_EXP = f_mbew-stprs.

else. CALL FUNCTION 'CK_F_ORG_ELEMENTS_PLANT' EXPORTING werk = plant_imp IMPORTING organisationselemente = f_org_elements EXCEPTIONS OTHERS = 5.

IF NOT aufnr_imp IS INITIAL. SELECT SINGLE * FROM aufk into f_aufk WHERE aufnr = aufnr_imp. CHECK sy-subrc = 0. SELECT * FROM afpo into f_afpo WHERE aufnr = aufnr_imp AND matnr = matnr_imp. EXIT. ENDSELECT. CHECK sy-subrc = 0.

* 4.1.2.3 Objektnummer sitzt bei Kuppelprodukten in der Position ... IF NOT f_afpo-objnp IS INITIAL. k_objnr = f_afpo-objnp.* 4.1.2.4 ... sonst im Auftragskopf. ELSE.

© SAP AG Page 58 of 66

Page 59: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

* AUFK wird im check_order_status gefüllt k_objnr = f_aufk-objnr. ENDIF.

CHECK NOT k_objnr IS INITIAL. PERFORM co_object_costs_summarize IN PROGRAM saplck10 USING f_org_elements-kokrs k_objnr 'PPS' '0' "yet only legal valuation CHANGING f_prices-wertn f_prices-wrtfx f_prices-wrtfw_kpf f_prices-losgr k_meeht.

CHECK NOT f_prices-losgr IS INITIAL.

* ENDIF.

* Weiter nur mit nichtnegativen und mindestens einem positiven Wert CHECK f_prices-wrtfw_kpf GT 0 OR f_prices-wertn GT 0. CHECK f_prices-wrtfw_kpf GE 0 AND f_prices-wertn GE 0.

* Buchungskreiswährung f_prices-wrtfw_kfx = f_prices-wrtfx * f_prices-wrtfw_kpf / f_prices-wertn. k_peinh_div_losgr = peinh_imp / f_prices-losgr. f_prices-peinh = peinh_imp. f_prices-opreis = f_prices-wrtfw_kpf * k_peinh_div_losgr. f_prices-opreifx = f_prices-wrtfw_kfx * k_peinh_div_losgr.

f_prices-bwst = '2' . "y_bwst-fauf. endif. OPREIS_EXP = f_prices-opreis. endif.

ENDFUNCTION.

9. Choose Activate and Back.

ResultYou have created the function module ZMIL_VALUATE_FROM_ORDER, which will be used in the next step to derive standard price from production order costing for make to stock production.

3.3.6.6 Modifying Function Module CKML_F_CKML1_PRICES_GET

UseThe purpose of this activity it to work together with previous activity to derive standard price from production order costing for make to stock production.

This activity is one of the correction steps included in SAP Note 904252. Check this note for detailed information before you perform this activity. It creates cross-client object.

This step modifies SAP standard program, it requires access key for the objects. Register the object to be changed in SAPNet or CSS system to get the access key.

© SAP AG Page 59 of 66

Page 60: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Development → Function Builder

Transaction Code SE37

2. On the Function Builder: Initial Screen, enter the following data:

Field name Description User action and values

Function Module CKML_F_CKML1_PRICES_GET

3. Select Change, choose tab Source Code, then make the following modifications to the function module:

...

ELSE.

MOVE-CORRESPONDING mat_spec TO t_prs.

t_prs-curtp = y_curtp_lc.

LOOP AT t_curtp WHERE curtp = t_prs-curtp.

t_prs-text = t_curtp-text.

t_prs-waers = t_curtp-waers.

ENDLOOP.

APPEND t_prs.

ENDIF. "mlmaa = y_x

* Falls ein Sonderbestandskennzeichen sitzt und das Material jetzt

* dynamisch angelegt wird, die Kalkulation aufrufen,

* die ggf. den Bewertungspreis vorgibt und die zugehörige Schichtung

* (falls existent) mittels MLCCS_DYN_COSTSPLIT_PARK bei uns parkt.

*>>> start of delete <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

IF ( NOT mat_spec-rmbew IS INITIAL "Neues Segment MBEW

OR NOT mat_spec-rebew IS INITIAL "Neues Segment EBEW

OR NOT mat_spec-rqbew IS INITIAL ) "Neues Segment QBEW

AND NOT mat_spec-sobkz IS INITIAL "Sonderbestand...

AND mat_spec-kzbws = 'M' "...bewertet

AND mat_spec-lbwst IS INITIAL "noch keine lfd. Kalk.

AND ( call_by_mmim = y_x "Aufruf durch Bestandsf.

OR call_by_mmiv = y_x ). "Aufruf durch Reprü

* Für die 10-er Währung kommt der Preis aus der MBEW, "Note 385680

* deshalb mit MBWST=3 vorbelegen. Parallelwährungen "Note 385680

* sind jedoch umgerechnet, LBWST bleibt hier initial. "Note 385680

IF e_ml_reference_found IS INITIAL.

LOOP AT t_prs WHERE curtp = '10'.

"Note 385680

t_prs-lbwst = '3'.

"Note 385680

MODIFY t_prs.

"Note 385680

ENDLOOP.

"Note 385680

ELSE.

LOOP AT t_prs.

t_prs-lbwst = '3'.

© SAP AG Page 60 of 66

Page 61: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

MODIFY t_prs.

ENDLOOP.

ENDIF.

* Der Parameter NO_MBEW_IMP muß immer gesetzt sein !!! "Note 546865

CALL FUNCTION 'CK36_STANDARD_PRICE_GET'

EXPORTING

psdat_imp = mat_spec-budat

no_mbew_imp = 'X'

s_send_data_to_ml_imp = 'X'

TABLES

t_cki_prs = t_prs

EXCEPTIONS

no_valuation = 2.

IF sy-subrc = 0.

PERFORM preise_umrechnen

TABLES t_prs

t_curtp.

LOOP AT t_prs.

* Gleiche Preise auch im Vormonat und Vorjahr

t_prs-vmstp = t_prs-stprs.

t_prs-vmver = t_prs-verpr.

t_prs-vmpei = t_prs-peinh.

t_prs-vjstp = t_prs-stprs.

t_prs-vjver = t_prs-verpr.

t_prs-vjpei = t_prs-peinh.

MODIFY t_prs.

IF mat_spec-mlmaa = y_x. "ML aktiv

READ TABLE t_ckmlpr WITH KEY kalnr = mat_spec-kaln1

curtp = t_prs-curtp.

IF sy-subrc = 0.

t_ckmlpr-lbwst = t_prs-lbwst.

t_ckmlpr-lplpr = t_prs-lplpr.

t_ckmlpr-lplpx = t_prs-lplpx.

t_ckmlpr-peinh = t_prs-peinh.

MODIFY t_ckmlpr INDEX sy-tabix.

ELSE.

MESSAGE e099 WITH 'CKML_F_CKML1_PRICES_GET' '1' sy-subrc.

ENDIF.

* Preise in allen Perioden setzen

LOOP AT t_ckmlcr WHERE kalnr = mat_spec-kaln1

AND curtp = t_prs-curtp

AND ( ( poper = poper

AND bdatj = mat_spec-lfgja )

OR ( poper = vpoper

AND bdatj = vbdatj )

OR ( poper = vjpoper

AND bdatj = vjbdatj ) ).

t_ckmlcr-stprs = t_prs-stprs.

t_ckmlcr-pvprs = t_prs-verpr.

t_ckmlcr-peinh = t_prs-peinh.

MODIFY t_ckmlcr.

© SAP AG Page 61 of 66

Page 62: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

ENDLOOP.

IF sy-subrc NE 0.

MESSAGE e099 WITH 'CKML_F_CKML1_PRICES_GET' '2' sy-subrc.

ENDIF.

ENDIF.

ENDLOOP.

IF mat_spec-mlmaa = y_x. "ML aktiv

CALL FUNCTION 'CKMS_BUFFER_WRITE'

EXPORTING

write_mode = 'N' "modify_new

TABLES

t_ckmlpr = t_ckmlpr

t_ckmlpp = t_ckmlpp "P9CK132410

t_ckmlcr = t_ckmlcr.

READ TABLE t_prs INDEX 1.

CALL FUNCTION 'MLCCS_DYN_COSTSPLIT_TRANSFORM'

EXPORTING

i_kalnr = mat_spec-kaln1

i_mlast = mat_spec-mlast

i_bwkey = mat_spec-bwkey

i_lbwst = t_prs-lbwst

TABLES

it_ckmlcr = t_ckmlcr.

ENDIF.

* Entfällt, da LBWST oben schon vorbelegt "Note 385680

* ELSE. "Note 385680

* LOOP AT t_prs. "Note 385680

* t_prs-lbwst = '3'. "Note 385680

* MODIFY t_prs. "Note 385680

* ENDLOOP. "Note 385680

ENDIF.

*>>> end of delete <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

*>>> start of insert <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

*********{ START OF INSERTION for CM Project ****************************

****************************************************************************

DATA: h_new_price_set. "mark that a new price was set

IF ( NOT mat_spec-rmbew IS INITIAL "Neues Segment MBEW

OR NOT mat_spec-rebew IS INITIAL "Neues Segment EBEW

OR NOT mat_spec-rqbew IS INITIAL ) "Neues Segment QBEW

AND mat_spec-lbwst IS INITIAL "noch keine lfd. Kalk.

AND ( call_by_mmim = y_x "Aufruf durch Bestandsf.

OR call_by_mmiv = y_x ). "Aufruf durch Reprü

IF NOT mat_spec-sobkz IS INITIAL AND mat_spec-kzbws = 'M'.

IF e_ml_reference_found IS INITIAL.

LOOP AT t_prs WHERE curtp = '10'. "Note 385680

t_prs-lbwst = '3'. "Note 385680

MODIFY t_prs. "Note 385680

ENDLOOP. "Note 385680

ELSE.

LOOP AT t_prs.

t_prs-lbwst = '3'.

© SAP AG Page 62 of 66

Page 63: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

MODIFY t_prs.

ENDLOOP.

ENDIF.

CALL FUNCTION 'CK36_STANDARD_PRICE_GET'

EXPORTING

psdat_imp = mat_spec-budat

no_mbew_imp = 'X'

s_send_data_to_ml_imp = 'X'

TABLES

t_cki_prs = t_prs

EXCEPTIONS

no_valuation = 2.

IF sy-subrc = 0.

h_new_price_set = 'X'.

ENDIF.

ELSE.

IF mat_spec-rmbew = 'X'.

"**in case of batch valuation valuate with value of order costing

CALL FUNCTION 'ZMIL_VALUATE_FROM_ORDER'

EXPORTING

aufnr_imp = mat_spec-aufnr

matnr_imp = mat_spec-matnr

plant_imp = mat_spec-werks

peinh_imp = mat_spec-peinh

bwtar_imp = mat_spec-bwtar

IMPORTING

opreis_exp = t_prs-stprs.

IF NOT t_prs-stprs IS INITIAL.

t_prs-lbwst = '2'.

MODIFY t_prs INDEX 1.

h_new_price_set = 'X'.

ENDIF.

ENDIF.

ENDIF.

IF NOT h_new_price_set IS INITIAL.

PERFORM preise_umrechnen

TABLES t_prs

t_curtp.

LOOP AT t_prs.

t_prs-vmstp = t_prs-stprs.

t_prs-vmver = t_prs-verpr.

t_prs-vmpei = t_prs-peinh.

t_prs-vjstp = t_prs-stprs.

t_prs-vjver = t_prs-verpr.

t_prs-vjpei = t_prs-peinh.

MODIFY t_prs.

IF mat_spec-mlmaa = y_x. "ML aktiv

READ TABLE t_ckmlpr WITH KEY kalnr = mat_spec-kaln1

curtp = t_prs-curtp.

IF sy-subrc = 0.

© SAP AG Page 63 of 66

Page 64: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

t_ckmlpr-lbwst = t_prs-lbwst.

t_ckmlpr-lplpr = t_prs-lplpr.

t_ckmlpr-lplpx = t_prs-lplpx.

t_ckmlpr-peinh = t_prs-peinh.

MODIFY t_ckmlpr INDEX sy-tabix.

ELSE.

MESSAGE e099 WITH 'CKML_F_CKML1_PRICES_GET' '1' sy-subrc.

ENDIF.

LOOP AT t_ckmlcr WHERE kalnr = mat_spec-kaln1

AND curtp = t_prs-curtp

AND ( ( poper = poper AND bdatj = mat_spec-lfgja )

OR ( poper = vpoper AND bdatj = vbdatj )

OR ( poper = vjpoper AND bdatj = vjbdatj ) ).

t_ckmlcr-stprs = t_prs-stprs.

t_ckmlcr-pvprs = t_prs-verpr.

t_ckmlcr-peinh = t_prs-peinh.

MODIFY t_ckmlcr.

ENDLOOP.

IF sy-subrc NE 0.

MESSAGE e099 WITH 'CKML_F_CKML1_PRICES_GET' '2' sy-subrc.

ENDIF.

ENDIF.

ENDLOOP.

IF mat_spec-mlmaa = y_x. "ML aktiv

CALL FUNCTION 'CKMS_BUFFER_WRITE'

EXPORTING

write_mode = 'N' "modify_new

TABLES

t_ckmlpr = t_ckmlpr

t_ckmlpp = t_ckmlpp "P9CK132410

t_ckmlcr = t_ckmlcr.

READ TABLE t_prs INDEX 1.

CALL FUNCTION 'MLCCS_DYN_COSTSPLIT_TRANSFORM'

EXPORTING

i_kalnr = mat_spec-kaln1

i_mlast = mat_spec-mlast

i_bwkey = mat_spec-bwkey

i_lbwst = t_prs-lbwst

TABLES

it_ckmlcr = t_ckmlcr.

ENDIF.

ENDIF.

****************************************************************************

*********} END OF INSERTION for CM Project *******************************

*>>> end of insert <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

*TS Subcontracting Japan: Block insert start

ELSEIF NOT mat_spec-robew IS INITIAL

AND mat_spec-xobew = y_x

AND mat_spec-lbwst IS INITIAL

AND ( call_by_mmim = y_x OR

© SAP AG Page 64 of 66

Page 65: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

call_by_mmiv = y_x ).

CALL FUNCTION 'CK36_STANDARD_PRICE_GET'

...

4. Choose Activate and Back.

ResultYou have changed the function module CKML_F_CKML1_PRICES_GET, which works together with function module ZMIL_VALUATE_FROM_ORDER to extract standard price from production order costing for make to stock production.

3.3.6.7 Modifying Program LCK21F0P

UseThe purpose of this activity it to work together with previous two activities to extract standard price from production order costing for make to stock production.

This activity is one of the correction steps included in SAP Note 904252. Check this note for detailed information before you perform this activity. It creates cross-client object.

Procedure1. Access the activity using one of the following navigation options:

SAP ERP Menu Tools → ABAP Workbench → Development → ABAP Editor

Transaction Code SE38

2. On the ABAP Editor: Initial Screen, enter the following data:

Field name Description User action and values

Program LCK21F0P

Source code X

3. Choose Change.

4. Make the following modifications to the report :

*& FORM VALUATION_WITH_MACK2*& …… DATA: k_conv TYPE i VALUE 2, s_losfx TYPE c. DATA: lf_matstratinforec LIKE ckmaterialsubstrat, "SBeRoh l_table_length TYPE i. "SBeRoh CONSTANTS: c_k TYPE c VALUE 'K'. "Aufrufer: Vorkalkulation

f_kalktab_save = f_kalktab_r.

* Sonderabwicklung Warenzugang bei S-Preissteuerung **>>>> START OF DELETION <<<<<* IF NOT i_we IS INITIAL AND f_mack2_i-vprsv = 'S'.*>>>> END OF DELETION <<<<<<<*>>>> START OF INSERTION <<<<* enable valuation of single batches with order costing (BWTTY = Y)IF NOT i_we IS INITIAL AND f_mack2_i-vprsv = 'S'and not f_mack2_i-bwtty = 'Y'.

© SAP AG Page 65 of 66

Page 66: Delta FICO Config.pdf

SAP Best Practices T02 - Delta FI/CO Configuration: Configuration Guide

*>>>> END OF INSERTION <<<<<<

5. Choose Activate and Save.

© SAP AG Page 66 of 66