Actual Costing (33Q - FR) : Test Script SAP S/4HANA Cloud - 12-10-21
Actual Costing (33Q - FR) : Test Script SAP S/4HANA Cloud - 12-10-21
Table of Contents
1 Purpose 3
2 Prerequisites 4
2.1 System Access 4
2.2 Roles 4
2.3 Master Data, Organizational Data and Other Data 4
2.4 Business Conditions 5
2.5 Preliminary Steps 5
2.5.1 Edit Activity Types 5
2.5.2 Update Activity Type Hierarchy and Cost Element Groups 6
2.5.3 Define/Update Splitting Structure 8
2.5.4 Change Material Price Determination for Material Ledger 10
2.5.5 Assign Movement Type Groups of Material Ledger 10
3 Overview Table 12
4 Test Procedures 13
4.1 Actual Cost Rate Calculation 13
4.2 Optional: Post WIP Quantity Document 14
4.3 Actual Costing Ledger Run 16
4.4 Material Price Analysis 19
4.5 Value Flow Monitor 21
4.6 Display Material Value Chain 22
This scope item enables actual costing for material inventory. Initially, all goods movements in a period are valuated based on standard price. All price and exchange rate differences for the
material are collected in the material ledger. Similarly, all confirmations are valuated based on a standard activity rate.
At the end of the period, an actual price (called the periodic unit price) is calculated for each material based on actual costs within the period and an actual activity rate is calculated based on the
actual costs for the cost center.
This calculated actual price can then be used to revalue inventory at period end. After you enter the activity actual rate manually, the actual activity price calculation supports revaluation of COGS
and WIP.
For actual costing, to calculate the periodic unit price for your materials, you need to activate actual costing in addition to material ledger. You also need to choose single-level/multilevel price
determination for your materials and use price control standard price for all materials you want to use in actual costing.
This document provides a detailed procedure for testing this scope item after solution activation, reflecting the predefined scope of the solution. Each process step, report, or item is covered in its
own section, providing the system interactions (test steps) in a table view. Steps that are not in scope of the process but are needed for testing are marked accordingly. Project-specific steps must
be added.
Values in this test script (decimal notation, date formats, and so on) are presented in U.S. standard notation. If your test system is set up to use a different notation, enter values as appropriate.
This section summarizes all the prerequisites for conducting the test in terms of systems, users, master data, organizational data, other test data and business conditions.
System Details
System Accessible via SAP Fiori launchpad. Your system administrator provides you with the URL to access the various apps assigned to your role.
2.2 Roles
Create business roles using the following business role templates delivered by SAP and assign them to your individual test users.
Alternatively, if available, you can use the following spaces delivered by SAP. You create a space with pages containing predefined essential apps and assign it to the business role. You then assign
this business role to your individual users.
For more information, refer to How to Create a Business Role for the Administrator in the product assistance for SAP S/4HANA Cloud.
BEI - Period-End Closing - Plant Must be run before this test script
Note You must perform the steps in the following Preliminary Steps section before you execute the test procedures.
Context
In this activity, you can change activity type master to 5 so that actual rate can be calculated automatically based on activity. This has to be done for actual rate calculation to work.
1 Log On Log on to the SAP Fiori launchpad as a Cost Accountant - Overhead. The SAP Fiori launchpad is
displayed.
2 Access App Open Manage Activity Types (F1605A). The Manage Activity Types
screen is displayed.
3 Select Activity Select the activity type row, for example, 1, 11, 3 or 2 that you would like to edit and choose the Edit button. The Activity Type view
Type appears.
4 Actual Price Make the following entry and choose the Save button:
Indicator ● Actual price indicator 5
Note Change activity types relevant for KSII (actual rate calculation) only. This change must not be done for
predelivered professional service activity types that start with T or U.
Note You can alternatively use the Manage Cost Rate Actual app if you want manual rate update. Make sure
the activity type master for the Act. price indicator field is set to 7 via the Manage Activity Types app.
Context
This activity updates activity type hierarchy and cost element groups. The activity type hierarchy is based on global hierarchy and not based on SET hierarchy.
1 Log On Log on to the SAP Fiori launchpad as a Cost Accountant - Overhead. The SAP Fiori launchpad
is displayed.
2 Access App Open Manage Global Hierarchies (F2918). The Manage Global
Hierarchies screen
displays.
3 Enter New Activity Make the following entry and choose the Go button: The YBGH_P00 - Activity
Type Hierarchy ● Hierarchy ID: YBGH_P00 Type Hierarchy screen
displays.
SAP predelivered content is shipped with empty groups from YBMF_P02 to YBMF_P08 with cost element groups
of same name. You are free to assign respective activity types and GLs to related groups and activity type groups
YBGHP2 to YBGHP8.
4 Update Activity Type Assign activity types to this activity type hierarchy. New master data is
Hierarchy from Note Assign activity types relevant for KSII (actual rate calculation) to this group. This change must not be done shown in Activity Type
YBGHP2 to YBGHP8 for predelivered Professional Service activity types that start with T or U. Hierarchy: New screen.
Note If some country/region has activated actual costing and others have not, you should use different activity
type for with and without actual costing. Only actual costing relevant activity type should be added to YBGHP2
through YBGHP8. Once this is done, you can use the Actual Cost Rate Calculation: Cost Center app to calculate
the rates used in actual costing month-end process step.
Note To assign cost elements to respective groups YBMF_P02 to YBMF_P08, use the Manage Cost Element Groups app.
Context
Splitting structure is used to split costs (belonging to cost centers) based on method activity types 12-Activity quantity, 22-Activity Quantity Planning and 0-No splitting. The assignments from YA1
to YA7 use rule YA1 with method 12, while the assignment YA8 uses rule YA2 with method 0. Each splitting rule is based on a splitting method. In Cloud, the splitting method used is 12-Activity
quantity. The splitting method indicates the way in which the costs are to be split.
You need to make sure that all the activity types relevant for actual rate calculation must be assigned to one of the activity type hierarchy under YBGH_P00. We predeliver empty nodes YBGHP1 to
YBGHP8 with cost element groups YBMF_P01 to YBMF_P08. You can calculate different rates, for example, Labor and Machine by assigning the respective activity and related GLs to different
predelivered groups. The predelivered splitting structure is as shown in the following table and you can see that the groups are empty. You can use the Manage Cost Element Groups app and
Manage Global Hierarchies apps to add your G/L and activity type respectively per your business requirements.
Table 2: Splitting Structure YA
Assignment Rule Cost Element Group Activity Type Hierarchy
1. Make sure that all the activity types relevant for actual rate calculation must be assigned to activity type hierarchy YBGHP2 to YBGHP8 via Manage Global Hierarchies.
2. Change Activity type master for the Act. price indicator field is set to 5 via the Manage Activity Types app so that the actual rate can be calculated automatically based on activity. This has to be
done for the actual rate calculation to work.
Note We recommend that if some country/region has activated actual costing and others have not, you should use different activity type for with and without actual costing. Only actual costing
relevant activity type must be added to YBGHP2 through YBGHP8. Once this is done, you can use the Actual Cost Rate Calculation: Cost Center app to calculate the rates that will be used in actual
costing month-end process step. Alternatively, you can use the Manage Cost rate actual app if you want a manual rate update and do not want to use the Actual Cost Rate Calculation app. Make
sure the Activity type master for the Act. price indicator field is set to 7 via the Manage Activity Types app.
This activity lets you update splitting structure used for actual cost rate calculation.
Procedure
Depending on your configuration environment for SAP S/4HANA Cloud, choose one of the following options:
Configure Your Solution:
1. Log on to the SAP Fiori launchpad as a Configuration Expert - Business Process Configuration.
2. Open Manage Your Solution (F1241).
3. If necessary, change the country by choosing Set Local Version.
4. Choose Configure Your Solution.
5. Search for Define Splitting Structure (104795).
6. For the displayed row, choose Details (>).
7. For the Define Splitting Structure row, choose Configure.
8. Continue with the procedure in the following table.
SAP Central Business Configuration:
1. Log on to the project experience in SAP Central Business Configuration.
2. In the Product-Specific Configuration phase, navigate to the Configuration Activities tab.
3. Search for the Define Splitting Structure activity and choose Go to to Activity to navigate directly to the SAP S/4HANA Cloud system. Log on to the SAP Fiori launchpad as a Configuration Expert
- Business Process Configuration.
4. Continue with the procedure in the following table.
1 Add/update Update or add assignment line for splitting structure YA, updated cost Note Activity type groups should be based on global hierarchy.
splitting structure element group, activity type group (only based on new global hierarchy), Note If you use YA3 method 22, it is a prerequisite that you
and change rule per your requirements. have plan data uploaded via Import Financial Plan Data (F1711)
The following predelivered splitting rules are provided that you can use in for the required cost center.
splitting:
● YA1with method 12-Activity quantity
Context
In this activity, you can change material price determination for Material Ledger. If you activate actual costing, you must set the price determination control to 3 for the materials that would be
part of the actual costing. Price determination 3 should be used only when actual costing is active and not without the scope item Actual Costing (33Q).
Note This step is a prerequisite before you start with any testing of actual costing scope even in starter systems.
Procedure
Test Step # Test Step Name Instruction Expected Result Pass / Fail / Comment
1 Log On Log on to the SAP Fiori launchpad as an Inventory Accountant. The SAP Fiori launchpad is displayed.
2 Access App Open Change Price Determination (CKMM). The Change Price Determination screen displays.
3 Select Activity Type Make the following entries: This selection depends on your business requirement.
Material Type: FERT or HALB
Plant: <your plant>
4 Program Definition Make the following entries and choose the Execute button:
Old Price Determination: 2
New Price Determination: 3
New Price Control: S
Test Run: Deselect
Purpose
This activity lets you assign movement type groups of material ledger to meet your business requirements.
Procedure
Depending on your configuration environment for SAP S/4HANA Cloud, choose one of the following options:
Configure Your Solution:
1. Log on to the SAP Fiori launchpad as a Configuration Expert - Business Process Configuration.
2. Open Manage Your Solution (F1241).
3. If necessary, change the country by choosing Set Local Version.
4. Choose Configure Your Solution.
5. Search for Assign Movement Type Groups of Material Ledger (104390).
6. For the displayed row, choose Details (>).
7. For the Assign Movement Type Groups of Material Ledger row, choose Configure.
8. Continue with the procedure in the following table.
SAP Central Business Configuration:
1. Log on to the project experience in SAP Central Business Configuration.
2. In the Product-Specific Configuration phase, navigate to the Configuration Activities tab.
3. Search for the Assign Movement Type Groups of Material Ledger activity and choose Go to Activity.
4. Continue with the procedure in the following table.
1 Add/update movement type Update or add movement type group CC or CF to movement type as per your Add or update movement type
group requirement. groups.
This scope item consists of several process steps provided in the table below.
If your system administrator has enabled spaces and pages on the SAP Fiori launchpad, the homepage will only contain the essential apps for performing the typical tasks of a business role.
You can find all other apps not included on the homepage using the search bar.
If you want to personalize the homepage and include the hidden apps, navigate to your user profile and choose App Finder.
Actual Cost Rate Calculation [page ] 13 Cost Accountant - Overhead Actual Cost Rate Calculation - Cost Centers (KSII)
Optional: Post WIP Quantity Document [page ] 14 Cost Accountant - Production Schedule Product Costing Jobs (F3683)
Actual Costing Ledger Run [page ] 16 Inventory Accountant Edit Actual Costing Runs (CKMLCP)
Material Price Analysis [page ] 19 Inventory Accountant Manage Material Valuations (F2680)
Value Flow Monitor [page ] 21 Inventory Accountant Material Value Flow Monitor (ML4HVFM)
Display Material Value Chain [page ] 22 Inventory Accountant Display Material Value Chain - Actual Costs (F4095)
This section describes test procedures for each process step that belongs to this scope item.
Test Administration
Test Case ID <X.XX> Tester Name Testing Date Enter a test date.
Business Role(s)
Responsibility <State the Service Provider, Customer or Joint Service Provider and Customer> Duration Enter a duration.
Purpose
In this activity, you execute actual price calculation. This means that the actual costs posted in a cost center would be divided by the actual quantity consumed in the cost center.
Procedure
1 Log On Log on to the SAP Fiori launchpad as a Cost Accountant - Overhead. The SAP Fiori launchpad displays.
2 Access the SAP Open Actual Cost Rate Calculation - Cost Centers (KSII). The Execute Actual Price Calculation:
Fiori App Initial Screen displays.
3 Cost Center Make the following entries and choose the Execute button:
Group Cost center group: 1210130
Period: <enter a period>
Fiscal Year: 2018
Test run: <Deselect>
Ledger: 0L
Note Rates must be calculated for each ledger separately, for example, first with 0L and repeat
the steps with any other standard ledgers you have such as 2L and 3L.
Actual Price calc: Periodic Price
Note Periodic and Cumulative price options are supported. Average price is not used in actual
costing.
Note As an alternative, you can also use the app Schedule Overhead Accounting Jobs and the template Actual Cost Rate Calculation for actual cost rate calculation.
Test Administration
Test Case ID <X.XX> Tester Name Testing Date Enter a test date.
Business Role(s)
Responsibility <State the Service Provider, Customer or Joint Service Provider and Customer> Duration Enter a duration.
As delivered in the scope item Event-Based Production Cost Posting (3F0), event-based WIP is posted together with event-based overhead at time of goods issue or confirmation and cleared at
goods receipt or technical completed. Event-based variance is calculated and posted when the order is final delivered or technical completed.
In addition, if scope item Actual Costing (33Q) is activated, WIP quantity document should be posted to actual costing to enable WIP revaluation in material ledger when activated. This is
implemented in product costing jobs by executing the WIP Quantity Posting for Actual Costing Revaluation template.
Note This step is only required if you use Event-Based Production Cost Posting (3F0) for event-based WIP and variance calculation with this scope item. If you are using Period-End Closing - Plant
(BEI) scope for periodic WIP and variance calculation, this step is not required as WIP Quantity is posted at period-end transaction via WIP calculation.
Procedure
Test Step Test Step Name Instruction Expected Result Pass / Fail /
# Comment
1 Log On Log on to the SAP Fiori launchpad as a Cost Accountant - The SAP Fiori launchpad displays.
Production.
2 Access the SAP Open Schedule Product Costing Jobs (F3683). The Application Jobs screen displays.
Fiori App
3 Create New Job Choose Create to create a new job. The New Job: WIP Quantity Posting for Actual Costing
Revaluation view displays.
4 Enter Data In the Job Template, select WIP Quantity Posting for Actual Costing
Revaluation.
Choose Step 2.
Under Scheduling Options, ensure that Start Immediately is
selected and choose Step 3.
Under Parameters, enter the following:
Company Code: 1210
Period: <enter a period>
Fiscal Year: <enter a year>
Deselect Test Run and choose Schedule.
5 Check Job Open the job log after the job is in finished status. WIP quantity documents are posted successfully.
Test Administration
Test Case ID <X.XX> Tester Name Testing Date Enter a test date.
Business Role(s)
Responsibility <State the Service Provider, Customer or Joint Service Provider and Customer> Duration Enter a duration.
Purpose
In this activity, edits to actual costing run are executed after all the period-end steps are done for scope item Period-End Closing - Plant - (BEI) or Event-Based Production Cost Posting - (3F0) to
calculate period unit price, which represents average actual cost for material or semi finished goods. This activity involves the following steps:
● Selection
● Preparation
● Settlement
● Post Closing
● Mark Prices
Note Before starting month-end step for actual costing, make sure you open a subsequent period. For example, if you want to close period 5, you must open period 6 first via the Close Period for
Material Master Records app using role Product Master Data Specialist and follow the steps in scope item Create New Open MM Posting Period (BNZ).
Procedure
1 Log on Log onto the SAP Fiori launchpad as an Inventory Accountant. The SAP Fiori launchpad displays.
Actual Costing (33Q_FR) PUBLIC
Test Procedures © 2021 SAP SE or an SAP affiliate company. All rights reserved. 16
Test Test Step Instruction Expected Result Pass / Fail /
Step Name Comment
#
2 Access the Open Edit Actual Costing Runs (CKMLCP). The Costing Cockpit: Actual Costing - Change/Execute screen displays.
SAP Fiori App
3 Create Run Choose More > Edit-Create/Edit costing template button, make the This is a one-time activity that must be created starting with 2105 for
Template following entries and choose Create: each standard Ledger like 0L and 2L OR 3L separately.
Run Template: 14100518 This step is mandatory before run can be created. The same template is
Valid From: <for example, 01/01/2021> used in subsequent months.
On the Create Run Template dialog box that appears, enter ledger 0L (for Note You could delete the template and create a new one. The template
example) and press Enter. can only be changed if a run has not yet been assigned. If you want to
change a template to which a run already belongs, you must choose
Select the Ledger Run Type (Single Period Run or Year-to-Date Run) based
Modify and enter a future date. You can then change the new version of
on your business needs.
the template (with the new validity date).
Note For Single Period Run, the system selects periodic price from actual
Note The template is used to determine the assigned company codes or
cost rated while for Year-to-Date Run, the system seelcts cumulative price
plants. This assignment can no longer be changed in the run. If you only
from actual cost rate.
want to have specific plants of a company code, you must switch to plant
Select Parameter for Closing Posting, Revaluate materials, and Set CO selection when creating the template. The default setting for the
account Assignment. template and hence our recommendation is to select the company
Choose the Company code Assignment tab. Choose the > (Details) button codes.
to move company code from the available company code section to the
assigned company code section and choose Save. You can also choose the
More (…) button to select Assign Plants.
Note You must create template by Ledger separately. For example, if you
have additional standard Ledger 2L or 3L in FI, you need to create the
actual costing template for each ledger. Repeat steps for each valid ledger.
4 Create Make the following entries and choose the Create Costing Run button: The Create ML Costing Run/Run Reference dialog box displays.
Costing Run Costing run: 14100518
Period: 05 2018
Run template: <Select the template created in the
previous step>
Press Enter.
In the dialog box that appears, enter ledger 0L and press Enter.
5 Continue Choose the Continue button. The Costing Cockpit: Actual Costing - Change/Execute screen displays.
6 Plant Based on the template selection, if company code is selected then all
Assignment plants from that company are preselected here or if you have selected
tab specific plants in the template then only those plants show up here.
8 Selection row On the Selection row, choose the Change Parameters button. On the Costing Run is executed.
Costing Cockpit: Actual Costing - Change/Execute screen, deselect
Background Processing and then choose Save.
Choose Back.
Choose Execute, which displays in the Execute column.
9 Preparation On the Preparation row, choose the Lock button to unlock. Choose the Costing Run is executed.
row Change Parameters button. On the Costing Cockpit: Actual Costing - Note If you activate Actual Costing after you have posted material in
Change/Execute screen, deselect Background Processing. previous period, you will run into an error. You can then select Allow
Choose Save. Open Status for Previous Period > Exceptional Processing > F1 . This will
Choose Back, and choose Execute. set the initial inventory at standard price and perform the calculation for
previous period as well. This selection is also relevant when the previous
period is not closed properly and needs recalculation.
10 Settlement On the Settlement row, choose the Lock button to unlock. Choose the This step covers single-level and multi-level price determination, work in
row Change Parameters button. On the Costing Cockpit: Actual Costing - progress (WIP), cost of goods sold (COGS) revaluation, and reports them
Change/Execute screen, deselect Background Processing. Keep the other as separate documents.
sections as is.
Choose Save.
Choose Back, and choose Execute.
11 Post Closing On the Post Closing row, choose the Lock button to unlock and then The Edit Variants view displays.
row choose the Change Parameters button.
13 Mark Prices Set Validity of Marking as Beginning of Following Period and If you update Period Unit Price monthly, then you must run Mark Prices
deselect Background Processing. step. In case you run the whole year with the same standard price then
you do not need to run this step. It is an optional step based on
customer's business needs.
Note To view results of actual costing run amounts for all material in one report, use the Display Actual Costing Result (F6073) app.
Test Administration
Test Case ID <X.XX> Tester Name Testing Date Enter a test date.
Responsibility <State the Service Provider, Customer or Joint Service Provider and Customer> Duration Enter a duration.
Purpose
This report app helps you view inventory value, new price, and flow of value change.
Procedure
1 Log on Log onto the SAP Fiori launchpad as an Inventory Accountant. The SAP Fiori launchpad displays.
2 Access the SAP Open Manage Material Valuations (F2680). The Manage Material Valuations (F2680) screen displays.
Fiori App
3 Material Make the following entries and choose the Go button: The Current Material Valuations view displays.
Valuations Material: FG126
Plant: 1210
4 Select the Select the desired line item and choose Material Price Analysis. The Material Price Analysis screen displays. You can enter the
Material Period/Year and review the inventory details.
5 Report The report containing the movement price, total stock, and other
information related to the material displays.
Test Administration
Test Case ID <X.XX> Tester Name Testing Date Enter a test date.
Business Role(s)
Responsibility <State the Service Provider, Customer or Joint Service Provider and Customer> Duration Enter a duration.
Purpose
In this activity, you can monitor the material quantity. After the material ledger period-end closing, differences that cannot be explained or that have to be balanced, remain on the price
difference accounts. You use the Value Flow Monitor to analyze these differences, and explanation of the differences/deltas that are calculated during Actual Costing and how the
differences/deltas are handled and rolled up to the next level.
Procedure
Test Step # Test Step Name Instruction Expected Result Pass / Fail / Comment
1 Log on Log onto the SAP Fiori launchpad as an Inventory Accountant. The SAP Fiori launchpad displays.
2 Access the SAP Fiori App Open Material Value Flow Monitor (ML4HVFM). The Value Flow Monitor screen displays.
3 Value Flow Monitor Make the following entries and choose the Execute button: The quantity monitor displays.
Company Code: 1210
Period: 05
Year: 2018
Test Administration
Test Case ID <X.XX> Tester Name Testing Date Enter a test date.
Business Role(s)
Responsibility <State the Service Provider, Customer or Joint Service Provider and Customer> Duration Enter a duration.
Purpose
This activity focuses on a graphical display of the entire value chain for the material value chain - actual costs. You can also select the tabular view and export to Excel for additional analysis.
Procedure
Test Step Test Step Name Instruction Expected Result Pass / Fail /
# Comment
1 Log On Log onto the SAP Fiori launchpad as an Inventory The SAP Fiori launchpad displays.
Accountant.
2 Access the SAP Fiori App Open Display Material Value Chain - Actual Costs The Display Material Value Chain screen displays.
(F4095).
3 Display Material Value Make the following entries and choose the Go button: The screen provides an overview of the material, value and
Chain Fiscal Period From: <MM.YYYY> quantity.
Example Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options.
Textual cross-references to other documents.
EXAMPLE Technical names of system objects. These include report names, program names, transaction codes, table names, and key concepts of a programming language when
they are surrounded by body text, for example, SELECT and INCLUDE.
Example Output on the screen. This includes file and directory names and their paths, messages, names of variables and parameters, source text, and names of installation,
upgrade and database tools.
Example Exact user entry. These are words or characters that you enter in the system exactly as they appear in the documentation.
<Example> Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system.
EXAMPLE Keys on the keyboard, for example, F 2 or E N T E R .